So here is my issue:
I have start a .bin file, which is just a .exe, renamed to .bin, with administrator privileges.
Here is what I have:
PSI.FileName = "Client.bin";
PSI.WorkingDirectory = Directory.GetCurrentDirectory();
PSI.UseShellExecute = false;
PSI.Verb = "runas";
Process.Start(PSI);
I also have the requireAdministrator set in the manifest.
I have to set UseShellExecute to false, seeing is that is the only way I can find that starts the .bin as a .exe. However, according Here, runas, and the manifest only are used when UseShellExecute is set to true.
Question: How to start a non .exe process, with elevated privileges?