mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-04-22 15:40:31 -04:00
Small fixes [stage]
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user