mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
UseShellExecute on ElevateToAdmin.
This commit is contained in:
parent
6f0f8d5710
commit
e2c2f1942b
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user