Added extra launch parameter for DS4Updater

Tell DS4Updater to attempt to autolaunch DS4W as normal user
Related to issue #1113
This commit is contained in:
Travis Nickles 2020-03-14 19:38:47 -05:00
parent 942342d3f9
commit 90f5a1b5d7

View File

@ -180,7 +180,14 @@ Properties.Resources.DS4Update, MessageBoxButton.YesNo, MessageBoxImage.Question
using (Process p = new Process())
{
p.StartInfo.FileName = System.IO.Path.Combine(Global.exedirpath, "DS4Updater.exe");
p.StartInfo.Arguments = "-autolaunch";
bool isAdmin = Global.IsAdministrator();
List<string> argList = new List<string>();
argList.Add("-autolaunch");
if (!isAdmin)
{
argList.Add("-user");
}
p.StartInfo.Arguments = string.Join(" ", argList);
if (Global.AdminNeeded())
p.StartInfo.Verb = "runas";