[wix-users] How to allow version downgrade

Edwin Castro egcastr at gmail.com
Fri Jan 18 00:30:04 PST 2019

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/

More information about the wix-users mailing list