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

Rob Mensching rob at firegiant.com
Wed Nov 16 09:56:52 PST 2016

As you are finding, it is very hard to go backwards in time. Early major upgrade may be only real approximation of going back in time.

 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 9:47 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] How to downgrade a file to an older version in a patch?

Hello all,

We've ran into a problem with a third-party dll that requires us to downgrade to an older version (i.e. 5.0 to 4.0).  The patch that upgrades it is already released, so we can't just undo the change.  So this patch needs to remove the newer version and put in the older version in its place.

I searched the WiX discussion and internet for methods of doing this.  I tried different ideas, but they all didn't work.  Here's what I tried:

Remove the component containing the dll, and add the dll as a companion file in another component.  This resulted in files not actually getting updated.

Replace the component's "File" element with "RemoveFile" and adding a new component that adds the file back.  This merely resulted in the file getting deleted, but not restored.

Changed component's "transitive" value from "no" to "yes".  Didn't do anything.

These are the constraints we have to work around: We cannot open up the dll and alter its version number.  We cannot rename the dll.  Is there a valid method?  Or do we need to release two patches, one to remove the file, and one to add it back?


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.

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

More information about the wix-users mailing list