I am trying to run an exe from C#
ProcessStartInfo si = new ProcessStartInfo
(
ExePath, InputImageFilePath +" "+
numericUpDownResize.Value +" "+
numericUpDownPad.Value+" "+
numericUpDownWindow.Value
);
si.UseShellExecute = true;
si.CreateNoWindow = true;
si.WindowStyle = ProcessWindowStyle.Normal;
si.Verb = "runas";
Process process = Process.Start(si);
process.WaitForExit();
int indexOfLastSlash = ExePath.LastIndexOf(@"\");
string outputFilePath = ExePath.Substring(0, indexOfLastSlash);
OutputImage = new Bitmap(outputFilePath + @"\output.jpg");
When I run the exe from command line prompt, it works fine as expected and the JPEG is created. But when I try the C# program, after allowing the program run once through UAC, I see the command line prompt open and display the status. But the output image is not produced.
Is there something that I miss?
Update
After adding the Manifest as suggested by Moxplod, I was going through the security settings. Does the highlighted box I have shown need to be checked green like the other few?

Does program produce output image in the current directory? Because you are checking for image in the directory that contains executable which may be different from current directory.