Skip to content

Commit 858b351

Browse files
authored
fix(windows): fix command bug in update elevated task (fix #11216) (#11217)
1 parent 4475fbb commit 858b351

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changes/fix-elevated-update-cmd.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-bundler": patch:bug
3+
---
4+
5+
On Windows, fixed command arguments for `bundle -> windows -> msi -> elevatedUpdateTask`. to work with spaces in `productName`

crates/tauri-bundler/src/bundle/windows/msi/update-task.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<Actions Context="Author">
3838
<Exec>
3939
<Command>cmd.exe</Command>
40-
<Arguments>/c "%SYSTEMROOT%\System32\msiexec.exe /i %TEMP%\\{{product_name}}.msi {{msiexec_args}} /promptrestart"</Arguments>
40+
<Arguments>/c ^"%SYSTEMROOT%\System32\msiexec.exe /i "%TEMP%\\{{product_name}}.msi" {{msiexec_args}} /promptrestart^"</Arguments>
4141
</Exec>
4242
</Actions>
4343
</Task>

0 commit comments

Comments
 (0)