[wix-users] Cannot update the currently installed product to a newer version (the third version component is changed)
Tigran Galoyan
tigran.galoyan at gmail.com
Mon Apr 27 12:44:48 PDT 2020
Hi Jacob,
But I don't change the Major or minor versions, those stay "1.10". I change
only the 3rd and 4th. The forth is ignored anyways, but the 3rd changes. So
once we have a major upgrade we will bump up the first component of the
version from 1 to 2 and we'll also change the Product Id, but for now we
don;t need it. However, we should still be able to upgrade the product
having the 3rd component increased.
Thanks,
Tigran
On Mon, Apr 27, 2020 at 3:23 PM Hoover, Jacob <Jacob.Hoover at greenheck.com>
wrote:
>
> 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/
>
> 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