feat(updater): use full path to msiexec (#4738)

This commit is contained in:
Lucas Fernandes Nogueira 2022-07-22 11:59:57 -03:00 committed by GitHub
parent 9af43134e1
commit f116ee6a12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
Use full path to `msiexec.exe` in the updater.

View File

@ -802,7 +802,7 @@ fn copy_files_and_run<R: Read + Seek>(
"Start-Process",
"-Wait",
"-FilePath",
"msiexec",
"C:\\Windows\\system32\\msiexec.exe",
"-ArgumentList",
])
.arg("/i,")
@ -814,7 +814,7 @@ fn copy_files_and_run<R: Read + Seek>(
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("msiexec.exe")
let _ = Command::new("C:\\Windows\\system32\\msiexec.exe")
.arg("/i")
.arg(found_path)
.args(msiexec_args)