upgrade version using WIX

Lipo

I've made an installer using the WIX toolset (3.10). I'd like to enable upgrades but I can't make it work. Every time I run the msi it installs another version. I can't figure out what's wrong. can anyone advise?

<Product Id="*"
       Name="$(var.PRODUCTNAME)"
       Language="1033"
       Version="$(var.PRODUCTVERSION)"
       Manufacturer="Manufacturer"
       UpgradeCode="UPGRADE_CODE"
       >
<Package InstallerVersion="200"
         Compressed="yes"
         InstallScope="perMachine" />

<MajorUpgrade Schedule="afterInstallInitialize"
              AllowDowngrades="no"
              AllowSameVersionUpgrades="no"
              DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate EmbedCab="yes" />
Brian Sutherland

AllowSameVersionUpgrades="yes" will probably fix this. When you test upgrades you need to either always update the version (one of the first 3 parts) between installers or just allow the same version upgrades.

from the wix website

When set to no (the default), installing a product with the same version and upgrade code (but different product code) is allowed and treated by MSI as two products. When set to yes, WiX sets the msidbUpgradeAttributesVersionMaxInclusive attribute, which tells MSI to treat a product with the same version as a major upgrade.

So your install thinks these two installs are separate things even though they share the same upgrade code which is why you get 2 copies in your add remove programs list.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Wix Minor Upgrade patch doesn't change version when created using Purely Wix (v3.10.3.3007)

WIX upgrade only the version and not the installed files

Wix major upgrade, replace files regardless of newer file version

MSI WIX: Creating minor upgrade patch by using 2 MSI's

How to Upgrade OpenCV to Specific Version Using Pip?

WIX not installing components during upgrade

WiX: Replace sub directory on upgrade

How to implement WiX installer upgrade?

Upgrade Visual Studio Setup to WiX

Modifying product version in Wix

How to upgrade minor version of angular using angular cli

How to upgrade to latest version of java JDK using homebrew cask?

How to upgrade new version of eclipse instead of using new downloaded package

Wix product code, upgrade code and component GUID

Wix Custom BA properly handle upgrade

WiX - Doing a major upgrade on a multi instance install

Change upgrade location with silent installation of WiX Installer

Product files not deleting after WIX upgrade

WiX Upgrade element doesn't execute on repair

Wix Installer - Preserve Application Pool User on Upgrade

WiX Custom Bootstrapper Application Installer Upgrade

How does one upgrade ubuntu (any version to latest version) using an ISO image?

Migrate Wix Project to version 4.0

Detect newer version of Wix bootstrapper

how to show the version number when we hover on the .msi file using WIX

How to include files that changed but have the same version number into MSP using WiX Pyro?

How can we bundle and install lower version of dotnet core using Wix Sharp?

Upgrade Ionic to latest version

Upgrade version of Postgres