From 9a8f8fc815209494bbab2a63629705400f7a02e4 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Fri, 22 Jul 2022 12:07:15 -0300 Subject: [PATCH] Revert "feat(updater): use full path to msiexec" (#4739) --- .changes/msiexec-full-path.md | 5 ----- core/tauri/src/updater/core.rs | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) delete mode 100644 .changes/msiexec-full-path.md diff --git a/.changes/msiexec-full-path.md b/.changes/msiexec-full-path.md deleted file mode 100644 index 1cb2276b081..00000000000 --- a/.changes/msiexec-full-path.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tauri": patch ---- - -Use full path to `msiexec.exe` in the updater. diff --git a/core/tauri/src/updater/core.rs b/core/tauri/src/updater/core.rs index 13a7c5ae1ee..303c6099455 100644 --- a/core/tauri/src/updater/core.rs +++ b/core/tauri/src/updater/core.rs @@ -802,7 +802,7 @@ fn copy_files_and_run( "Start-Process", "-Wait", "-FilePath", - "C:\\Windows\\system32\\msiexec.exe", + "msiexec", "-ArgumentList", ]) .arg("/i,") @@ -814,7 +814,7 @@ fn copy_files_and_run( if powershell_install_res.is_err() { // fallback to running msiexec directly - relaunch won't be available // we use this here in case powershell fails in an older machine somehow - let _ = Command::new("C:\\Windows\\system32\\msiexec.exe") + let _ = Command::new("msiexec.exe") .arg("/i") .arg(found_path) .args(msiexec_args)