Auto updater tweaks

This commit is contained in:
Serge
2024-01-12 19:35:10 +01:00
parent 4ab7ceb837
commit 00dc6a6ca3
5 changed files with 15 additions and 54 deletions

View File

@@ -1,4 +1,5 @@
using System.Diagnostics;
using GHelper.Helpers;
using System.Diagnostics;
using System.Net;
using System.Reflection;
using System.Text.Json;
@@ -130,6 +131,7 @@ namespace GHelper.AutoUpdate
cmd.StartInfo.CreateNoWindow = true;
cmd.StartInfo.FileName = "powershell";
cmd.StartInfo.Arguments = command;
if (ProcessHelper.IsUserAdministrator()) cmd.StartInfo.Verb = "runas";
cmd.Start();
}
catch (Exception ex)