Skip to content

Commit 4b6a602

Browse files
authored
fix(updater): Use escaped installer path when starting the updater msi (#8234)
* fix(updater): Use escaped installer path when starting the updater msi Continuation of #7956 * fix build
1 parent 92bc7d0 commit 4b6a602

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri': 'patch:bug'
3+
---
4+
5+
Escape path of the updater msi to avoid crashing on installers with spaces.

core/tauri/src/updater/core.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ fn copy_files_and_run<R: Read + Seek>(
844844
"-ArgumentList",
845845
])
846846
.arg("/i,")
847-
.arg(msi_path_arg)
847+
.arg(&msi_path_arg)
848848
.arg(format!(", {}, /promptrestart;", msiexec_args.join(", ")))
849849
.arg("Start-Process")
850850
.arg(current_exe_arg)
@@ -858,7 +858,7 @@ fn copy_files_and_run<R: Read + Seek>(
858858
);
859859
let _ = Command::new(msiexec_path)
860860
.arg("/i")
861-
.arg(found_path)
861+
.arg(msi_path_arg)
862862
.args(msiexec_args)
863863
.arg("/promptrestart")
864864
.spawn();

0 commit comments

Comments
 (0)