Upgrade on revision number

May 13, 2016 at 7:56 AM
This probably falls into common msi/wix discussion, but hope it's ok to ask here as I use Wix# for my projects.

I know I msi can perform an auto upgrade when the major or minor version is increased when the MajorUpgradeStrategy field is specified. Works great.
But is it possible to have it upgrade when changing the revision number (4th digit)?

Major.Minor.Build.Revision
E.g. 1.1.0.45 -> 1.1.0.46 = do auto upgrade.

Best regards
Flemming Appelon Christiansen
Coordinator
May 14, 2016 at 2:19 PM
The problem is caused by the MSI design flaw. MSi only analyses the first three version fields. I am not joking, this is how outdated MSI architecture is.
The only way around is to useAllowSameVersionUpgrades. Read more here: http://wixtoolset.org/documentation/manual/v3/xsd/wix/majorupgrade.html

And you do in in Wix# like this:
project.MajorUpgrade = new MajorUpgrade
{
    AllowSameVersionUpgrades = true,
    ...
Marked as answer by pilbro on 5/30/2016 at 5:23 AM