[wix-users] How to downgrade a file to an older version in a patch?

Patterson, Brent bcpatterson at xactware.com
Wed Nov 16 14:37:23 PST 2016


It looks like it uninstalls the old version after the new one is installed.  Is this because of this value in MajorUpgrade: Schedule="afterInstallExecute"?

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Rob Mensching
Sent: Wednesday, November 16, 2016 3:31 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] How to downgrade a file to an older version in a patch?

As always a verbose log file should show.

_____________________________________________________________
 Short replies here. Complete answers over there: http://www.firegiant.com/


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Patterson, Brent
Sent: Wednesday, November 16, 2016 2:29 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] How to downgrade a file to an older version in a patch?

The issue is that the patches are uninstallable, so we can't ask them to do that.

I tried the major update approach (changed Product ID value to a new GUID, and incremented the version for MSI, and tweaking the bootstrapper to allow installation if "Obsolete" install is detected instead of showing uninstall like before).  I created a new installer (not patch) that contains the correct files, but when I install it, the newer version of third party DLL is still there, while everything else is up to date to correct version.  What am I missing?  Why isn't it removing the entire install before reinstalling, which is what major updates are supposed to do?

This is what I have for MajorUpdate element in MSI:

<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." Schedule="afterInstallExecute" AllowDowngrades="no" />

I thought "AllowDowngrades" prevents an older MSI from removing a newer MSI's install.  Is this interfering with components as well?

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

________________________________

Xactware's opt-in mailing list allows you to receive Xactware News that is of interest to you. Visit my.xactware.com today to join or to update your email preferences!

________________________________

This email is intended solely for the recipient. It may contain privileged, proprietary or confidential information or material. If you are not the intended recipient, please delete this email and any attachments and notify the sender of the error.




More information about the wix-users mailing list