Skip to content

Commit 1948ae5

Browse files
authored
fix(bundler): only reinstall missing or != version files, closes #4122 (#4125)
1 parent 61e3765 commit 1948ae5

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.changes/fix-wix-reinstallmode.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-bundler": patch
3+
---
4+
5+
Change the MSI reinstall mode so it only reinstall missing or different version files.

tooling/bundler/src/bundle/windows/templates/main.wxs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
SummaryCodepage="!(loc.TauriCodepage)"/>
2727

2828
<!-- https://docs.microsoft.com/en-us/windows/win32/msi/reinstallmode -->
29-
<!-- force all files to be reinstalled; rewrite all registry entries; reinstall all shortcuts -->
30-
<Property Id="REINSTALLMODE" Value="amus" />
29+
<!-- reinstall if the file is missing or a different version is present; rewrite all registry entries; reinstall all shortcuts -->
30+
<Property Id="REINSTALLMODE" Value="dmus" />
3131

3232
{{#if allow_downgrades}}
3333
<MajorUpgrade AllowDowngrades="yes" Schedule="afterInstallInitialize" />

0 commit comments

Comments
 (0)