Quantcast
Channel: wixsharp Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1354

New Post: always remove a previous version

$
0
0
I have added 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."
};
Have a look at MajorUpgrade sample.

Viewing all articles
Browse latest Browse all 1354

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>