Have you tried debugging the program?
One thing that would help with this is to form the full path to the exe you are trying to launch.
So instead of
Code:
string installPath = Properties.Settings1.Default.path2;
//MessageBox.Show(nstallPath);
Process.Start(installPath + "WoW.exe");
Try
Code:
string installPath = Properties.Settings1.Default.path2;
var fullPath = Path.Concat(installPath, "wow.exe");
if( !File.Exists(fullPath) )
{
MessageBox.Show(fullPath);
return;
}
Process.Start(fullPath);
To debug, click on the if( !File.Exists(fullPath) ) line with the mouse and press F9 to set a breakpoint.
Then press F5 to start debugging. When the program stops on that line, hover the mouse over the fullPath variable.
Does it look like what is expected? Keep in mind on windows, a file path will look something like
Code:
C:\my program folder\sub folder\wow.exe