Set UseShellExecute true for runas to work

This commit is contained in:
Jaex 2019-01-01 03:45:01 +03:00
parent c2bcf9b897
commit 3d5490215a
2 changed files with 2 additions and 2 deletions

View file

@ -156,7 +156,7 @@ private void RunInstaller()
{
FileName = DownloadLocation,
Arguments = "/UPDATE",
UseShellExecute = false
UseShellExecute = true
};
if (InstallType == InstallType.Silent)

View file

@ -1072,7 +1072,7 @@ public static void RunShareXAsAdmin(string arguments)
{
FileName = Application.ExecutablePath,
Arguments = arguments,
UseShellExecute = false,
UseShellExecute = true,
Verb = "runas"
};