Просмотр исходного кода

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

Lucas Fernandes Nogueira 3 лет назад
Родитель
Сommit
1948ae53fd

+ 5 - 0
.changes/fix-wix-reinstallmode.md

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

+ 2 - 2
tooling/bundler/src/bundle/windows/templates/main.wxs

@@ -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" />