Big WiX3 update doesn't work

I have a major update that I'm trying to do, but it just doesn't work. He simply installs a new program along with the old one. They are in different directories (since I changed the directory structure with the new version), so there are no conflicts, but the old one must be erased so that my product functions properly.

<Property Id="UPGRADE_NEEDED" Secure="yes" /> <Property Id="SAME_OR_NEWER_VERSION" Secure="yes" /> <InstallExecuteSequence> <RemoveExistingProducts After="InstallFinalize" /> </InstallExecuteSequence> <Upgrade Id="{PUT-YOUR-GUID-HERE}"> <UpgradeVersion Minimum="5.1.3" OnlyDetect="yes" IncludeMinimum="yes" Property="SAME_OR_NEWER_VERSION" /> <UpgradeVersion Minimum="5.1" Maximum="5.1.3" Language="1033" Property="UPGRADE_NEEDED" MigrateFeatures="yes" IncludeMinimum="yes" /> 

These are my update items (with remote GUID, of course). If anyone finds where the problem is, I would really appreciate it.

+4
source share
1 answer

There are some general rules for updating that need to be done:

  • Old and new products must have the same UpgradeCode values ​​and different ProductCode values.

  • Old and new products should have the same values ​​for InstallAllUsers [i.e. for a machine, installation cannot update the user installation and vice versa.]

  • Setting up a new Version product (installation project, nothing to do with the version file) should be higher.

  • All installation versions (again, not file versions) must be 1.0 or greater.

More information on how to properly implement the update using WiX can be found in this thread:

How to implement WiX installer update?

+6
source

All Articles