Skip to content

Commit

Permalink
fix(updater): Use escaped installer path to start the nsis updater (#727
Browse files Browse the repository at this point in the history
)

Port of v1 change: tauri-apps/tauri#7956
  • Loading branch information
FabianLars authored Nov 15, 2023
1 parent 1b98b85 commit 9db40a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/updater-escaped-path.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
updater: patch
---

Use escaped installer path to start the nsis updater to prevent crashes if app name contained spaces.
2 changes: 1 addition & 1 deletion plugins/updater/src/updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ impl Update {
Command::new(powershell_path)
.args(["-NoProfile", "-WindowStyle", "Hidden"])
.args(["Start-Process"])
.arg(found_path)
.arg(installer_arg)
.arg("-ArgumentList")
.arg(
[
Expand Down

0 comments on commit 9db40a6

Please sign in to comment.