Skip to content

Commit

Permalink
UseShellExecute on ElevateToAdmin.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Apr 21, 2020
1 parent 6f0f8d5 commit e2c2f19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Desktop.Win/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public ICommand ElevateToAdminCommand
var commandLine = Win32Interop.GetCommandLine().Replace(" -elevate", "").Replace("\"", "");
var psi = new ProcessStartInfo(commandLine);
psi.Verb = "RunAs";
psi.UseShellExecute = true;
Process.Start(psi);
Environment.Exit(0);
}
Expand Down

0 comments on commit e2c2f19

Please sign in to comment.