How to transfer third party file to WiX MSI
We have a third party dll that was in version 1.0 in version 5.0 of our application.
In version 6.0 of our application, we updated the third party dll to version 2.0. But this caused problems for the application and we wanted to rollback.
So, in version 6.1 of our application, we wanted to revert to version 1.0 of the third party dll. But Windows Installer sees this component as a version greater than the one in the MSI and doesn't want to update it.
How to rollback a third-party dll in version 6.1 of our product?
source to share
If your upgrade needs to follow component rules, you should look for both upgrade Dlls (with the same guid component) as transitive components, unwanted with false condition and the other with true. Of course, both will be in the same place. False will cause the older version to be missing. This should work fine with the patch.
If you want to make a major upgrade, this is much easier. RemoveExistingProducts sequence early (for example, after InstallInitialize) and all old files will be removed and then new ones are installed, and file overwrite rules will not be used.
source to share