So here is my problem:
I ran a .bin file, which is just a .exe file, 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 a requireAdministrator installed in the manifest.
I need to set UseShellExecute to false, because this is the only way to find which runs .bin as .exe. However, according to Here , runas and the manifest are used only when UseShellExecute is set to true.
Question: How to start a process without .exe with elevated privileges?
source
share