Skip to content

Commit

Permalink
Autoupdate tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Dec 24, 2023
1 parent 4f3ae43 commit 3afe0d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/AutoUpdate/AutoUpdateControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async void AutoUpdate(string requestUri)
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
Expand Down

0 comments on commit 3afe0d8

Please sign in to comment.