Skip to content

Commit 5fc6a45

Browse files
authored
Fix different MSI builds with same version not triggering removal of existing installation (beeware#99)
1 parent 65d676f commit 5fc6a45

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

{{ cookiecutter.format }}/{{ cookiecutter.app_name }}.wxs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616

1717
<Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
1818

19+
<MajorUpgrade
20+
DowngradeErrorMessage="A newer version of [ProductName] is already installed."
21+
AllowSameVersionUpgrades="yes"
22+
Schedule="afterInstallInitialize" />
23+
1924
<Icon Id="ProductIcon" SourceFile="icon.ico" />
2025

2126
<!-- Add/Remove Programs settings -->

0 commit comments

Comments
 (0)