Skip to content

Commit

Permalink
fix(bundler): AllowSameVersionUpgrades on WiX, closes #2211 (#2428)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog authored Aug 14, 2021
1 parent aa0828f commit dd5e1ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changes/bundler-msi-upgrade-same-version.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri-bundler": patch
---

Change the WiX config to allow upgrading installation with same version instead of duplicating the application.
5 changes: 2 additions & 3 deletions tooling/bundler/src/bundle/windows/templates/main.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -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" />

Expand Down

0 comments on commit dd5e1ed

Please sign in to comment.