I am attempting to launch a wpf application using Process.Start
. When I launch the process by double-clicking it in explorer.exe
, it l
I fixed the problem this way:
Process proc = new Process();
proc.StartInfo.FileName = programPath;
proc.StartInfo.WorkingDirectory = Path.GetDirectoryName(programPath);
proc.Start();
The trick was to set the working directory to the path of the WPF application, rather than the working directory of the launching application.