[wix-users] Cannot update the currently installed product to a newer version (the third version component is changed)

Hoover, Jacob Jacob.Hoover at greenheck.com
Mon Apr 27 12:23:48 PDT 2020


https://docs.microsoft.com/en-us/windows/win32/msi/changing-the-product-code

If you want a MajorUpgrade, you need to change the product code.

From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Tigran Galoyan via wix-users
Sent: Monday, April 27, 2020 2:19 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Tigran Galoyan <tigran.galoyan at gmail.com>
Subject: [wix-users] Cannot update the currently installed product to a newer version (the third version component is changed)

Hi,

I have installed my product version e.g. 1.10.1511.2574 and now when I try
to install version 1.10.1525.0722 of the same product it gives an error
"another version of this product is already installed installation of this
version cannot continue ...".

My Product Id and UpgradeCode attributes have constant GUID values. The
Package Id attribute has * value for auto generation.

Without MajorUpgrade element declaration I get that error when installing
the next version.

When adding the MajorUpgrade with the following attributes and values I get
the same error.

<MajorUpgrade AllowSameVersionUpgrades="no" AllowDowngrades="no"
DowngradeErrorMessage="A newer version of [ProductName] is already
installed."
Disallow="yes" DisallowUpgradeErrorMessage="An older
version of [ProductName] is already installed. Uninstall it first." />

When changing the AllowSameVersionUpgrades attribute value to YES I still
get the same error.

<MajorUpgrade AllowSameVersionUpgrades="yes" AllowDowngrades="no"
DowngradeErrorMessage="A newer version of [ProductName] is already
installed."
Disallow="yes" DisallowUpgradeErrorMessage="An older
version of [ProductName] is already installed. Uninstall it first." />

The description of AllowSameVersionUpgrades clearly indicates that MSI
ignores the forth version component, but in my case the existing 3rd
component is 1511 and for the new one it's 1525, so it increased, why would
it then doesn't allow me to upgrade?

Thanks for the support.

Best,
Tigran

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/<http://www.firegiant.com>
NOTE: This email was received from an external source. Please use caution when opening links or attachments in the message.



More information about the wix-users mailing list