[wix-users] How to allow version downgrade
Rob Mensching
rob at firegiant.com
Fri Jan 18 05:21:07 PST 2019
FYI. My experience with downgrades is that lots of unexpected things don't work well. I know that isn't terribly helpful but be prepared to look for really screwy behaviors.
_____________________________________________________________
Short replies here. Complete answers over there: http://www.firegiant.com/
-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Edwin Castro via wix-users
Sent: Friday, January 18, 2019 12:30 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Edwin Castro <egcastr at gmail.com>
Subject: Re: [wix-users] How to allow version downgrade
The MajorUpgrade element is for your msi while the error log is for your bootstrapper. Perhaps you need to tell the bootstrapper application that your msi could downgrade a higher version or your chosen bootstrapper application does not support msi downgrades.
I personally do not allow downgrades so I don't have real experience to share. But I wonder if you need to change the Schedule attribute. I think afterInstallExecute will not allow downgrades because your new files would be lower version than the current files and would not be replaced. Make sure to check the versions of your files post downgrade to ensure you're actually getting what you want.
--
Edwin G. Castro
On Thu, Jan 17, 2019, 23:20 Swatantra Yadav via wix-users < wix-users at lists.wixtoolset.org wrote:
> Hello All,
>
> I am trying to build an installer that would allow both upgrade to
> higher version as well downgrade to older version.
>
> So I added the below to wxs file:
> <MajorUpgrade AllowDowngrades="yes" IgnoreRemoveFailure="yes"
> MigrateFeatures="yes" Schedule="afterInstallExecute" />
>
> While upgrade works perfectly fine, the downgrade from new version to
> old version is failing. I get the below error in error.log:
>
> [475C:00D4][2019-01-17T23:02:25]e000: Error 0x80070666: Cannot install
> a product when a newer version is installed.
>
> In the new installer I have added an additional new component and have
> new condition for higher .Net framework version. Those are the only
> two changes from the old installer.
>
> How can I make this downgrade work?
>
> Thanks
> Swat
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list