I have added
Have a look at MajorUpgrade sample.
VersionRange.OnlyDetect
so now you can set it if required. Though I am not sure Upgrade
element it is the best way for this. This element is a way over-engineered. Even WiX team has replaced it with MajorUpgrade
, which does almost the same thing as Wix# MajorUpgradeStrategy
. The property AllowSameVersionUpgrades
probably does what you need:project.MajorUpgrade = new MajorUpgrade { AllowSameVersionUpgrades = true, Schedule = UpgradeSchedule.afterInstallInitialize, DowngradeErrorMessage = "A later version of [ProductName] is already installed. Setup will now exit." };