Use just the app. name,you don't need the path,just tell the users to put the launcher in game folder.
Hello MPGH,
I want to make an Crossfire Launcher for my Injector.
But the Launcher does not work very well.
I always get an error.
I have Windows 7 64-Bit
I use this code :
But nothing happensCode:Process.Start("C:\Program Files (x86)\Z8Games\CrossFire\CF_G4box.exe")
Or I use this code :
But then comes an Error "Failed to load url of Version.ini."Code:Process.Start("C:\Program Files (x86)\Z8Games\CrossFire\patcher_cf.exe")
Can anyone say me what I do wrong.
Use just the app. name,you don't need the path,just tell the users to put the launcher in game folder.
No. The best and easiest way to get the correct location is just reading the registry.
Find the name or it will just crashCode:Dim Reg As RegistryKey = Registry.LocalMachine Dim RegKey As RegistryKey Dim MyValue As String RegKey = Reg.OpenSubKey("SOFTWARE\Crossfire") MyValue = RegKey.GetValue("{{{{What ever the name is}}}") RegKey.Close() 'Wont fully work
I dont have crossfire so I'm not 100% sure crossfire has registries that will work for this, but most games do.
____
also I dont think it'stryCode:Process.Start("C:\Program Files (x86)\Z8Games\CrossFire\CF_G4box.exe")Code:Process.Start("C:\Program Files\Z8Games\CrossFire\CF_G4box.exe")
Question ALL statements! ?[img]https://i360.photobucke*****m/albums/oo45/blood188/Untitled-3.jpg?t=1284590977[/img]You're in denial that you're in denial. ?
or
and start the .exe as ADMINCode:System.Diagnostics.Process.Start("C:\Program Files\Z8Games\CrossFire\CF_G4box.exe")