UseShellExecute on ElevateToAdmin.

This commit is contained in:
Jared Goodwin 2020-04-21 13:19:20 -07:00
parent 6f0f8d5710
commit e2c2f1942b

View File

@ -75,6 +75,7 @@ namespace Remotely.Desktop.Win.ViewModels
var commandLine = Win32Interop.GetCommandLine().Replace(" -elevate", "").Replace("\"", "");
var psi = new ProcessStartInfo(commandLine);
psi.Verb = "RunAs";
psi.UseShellExecute = true;
Process.Start(psi);
Environment.Exit(0);
}