Преглед на файлове

fix(bundler): `AllowSameVersionUpgrades` on WiX, closes #2211 (#2428)

Lucas Fernandes Nogueira преди 4 години
родител
ревизия
dd5e1ede32
променени са 2 файла, в които са добавени 7 реда и са изтрити 3 реда
  1. 5 0
      .changes/bundler-msi-upgrade-same-version.md
  2. 2 3
      tooling/bundler/src/bundle/windows/templates/main.wxs

+ 5 - 0
.changes/bundler-msi-upgrade-same-version.md

@@ -0,0 +1,5 @@
+---
+"tauri-bundler": patch
+---
+
+Change the WiX config to allow upgrading installation with same version instead of duplicating the application.

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

@@ -26,9 +26,8 @@
                  InstallScope="perMachine"
                  SummaryCodepage="{{ascii_codepage}}"/>
 
-         <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed."
-                  MigrateFeatures="yes" />
-
+        <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed."
+          AllowSameVersionUpgrades="yes" />
 
         <Media Id="1" Cabinet="app.cab" EmbedCab="yes" />