From cb76a5effaa4fb7f14564cd2b117cf308d751512 Mon Sep 17 00:00:00 2001 From: FabianLars Date: Wed, 15 Nov 2023 12:55:51 +0100 Subject: [PATCH] fix(updater): Use escaped installer path to start the nsis updater Port of v1 change: https://github.com/tauri-apps/tauri/pull/7956 --- .changes/updater-escaped-path.md | 5 +++++ plugins/updater/src/updater.rs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changes/updater-escaped-path.md diff --git a/.changes/updater-escaped-path.md b/.changes/updater-escaped-path.md new file mode 100644 index 0000000000..75661ff49d --- /dev/null +++ b/.changes/updater-escaped-path.md @@ -0,0 +1,5 @@ +--- +updater: patch +--- + +Use escaped installer path to start the nsis updater to prevent crashes if app name contained spaces. diff --git a/plugins/updater/src/updater.rs b/plugins/updater/src/updater.rs index 4a6b352ab5..06dc3bfe22 100644 --- a/plugins/updater/src/updater.rs +++ b/plugins/updater/src/updater.rs @@ -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( [