Small fixes [stage]

This commit is contained in:
crschnick 2025-04-03 14:31:56 +00:00
parent b591fa2b5a
commit 83992fd477
2 changed files with 4 additions and 3 deletions

View file

@ -97,9 +97,10 @@ public class AppInstaller {
toRun = "start \"XPipe Updater\" /min cmd /c \"" + ScriptHelper.createExecScript(ShellDialects.CMD, sc, command)
+ "\"";
} else {
toRun =
toRun = sc.getShellDialect() == ShellDialects.POWERSHELL ?
"Start-Process -WindowStyle Minimized -FilePath powershell -ArgumentList \"-ExecutionPolicy\", \"Bypass\", \"-File\", \"`\""
+ ScriptHelper.createExecScript(ShellDialects.POWERSHELL, sc, command) + "`\"\"";
+ ScriptHelper.createExecScript(ShellDialects.POWERSHELL, sc, command) + "`\"\"" :
"start \"XPipe Updater\" /min powershell -ExecutionPolicy Bypass -File \"" + ScriptHelper.createExecScript(ShellDialects.POWERSHELL, sc, command) + "\"";
}
sc.command(toRun).execute();
}

View file

@ -1 +1 @@
16.0-11
16.0-12