mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-28 23:42:13 +12:00
Set UseShellExecute true for runas to work
This commit is contained in:
parent
c2bcf9b897
commit
3d5490215a
2 changed files with 2 additions and 2 deletions
|
@ -156,7 +156,7 @@ private void RunInstaller()
|
|||
{
|
||||
FileName = DownloadLocation,
|
||||
Arguments = "/UPDATE",
|
||||
UseShellExecute = false
|
||||
UseShellExecute = true
|
||||
};
|
||||
|
||||
if (InstallType == InstallType.Silent)
|
||||
|
|
|
@ -1072,7 +1072,7 @@ public static void RunShareXAsAdmin(string arguments)
|
|||
{
|
||||
FileName = Application.ExecutablePath,
|
||||
Arguments = arguments,
|
||||
UseShellExecute = false,
|
||||
UseShellExecute = true,
|
||||
Verb = "runas"
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue