Autoupdate tweaks

This commit is contained in:
Serge
2023-12-24 16:14:06 +01:00
parent 4f3ae43c3b
commit 3afe0d8e1a

View File

@@ -119,7 +119,7 @@ namespace GHelper.AutoUpdate
Logger.WriteLine(zipName);
Logger.WriteLine(exeName);
string command = $"Start-Sleep -Seconds 1; Expand-Archive \"{zipName}\" -DestinationPath . -Force; Remove-Item \"{zipName}\" -Force; \".\\{exeName}\"; ";
string command = $"Start-Sleep -Seconds 1; $ErrorActionPreference = \"Stop\"; Expand-Archive \"{zipName}\" -DestinationPath . -Force; Remove-Item \"{zipName}\" -Force; \".\\{exeName}\"; ";
Logger.WriteLine(command);
try