fix(bundler): only reinstall missing or != version files, closes #4122 (#4125)

This commit is contained in:
Lucas Fernandes Nogueira
2022-05-15 05:02:19 -07:00
committed by GitHub
parent 61e37652b9
commit 1948ae53fd
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"tauri-bundler": patch
---
Change the MSI reinstall mode so it only reinstall missing or different version files.

View File

@@ -26,8 +26,8 @@
SummaryCodepage="!(loc.TauriCodepage)"/>
<!-- https://docs.microsoft.com/en-us/windows/win32/msi/reinstallmode -->
<!-- force all files to be reinstalled; rewrite all registry entries; reinstall all shortcuts -->
<Property Id="REINSTALLMODE" Value="amus" />
<!-- reinstall if the file is missing or a different version is present; rewrite all registry entries; reinstall all shortcuts -->
<Property Id="REINSTALLMODE" Value="dmus" />
{{#if allow_downgrades}}
<MajorUpgrade AllowDowngrades="yes" Schedule="afterInstallInitialize" />