I need to reinstall the version. I found a solution:
http://stackoverflow.com/questions/11732290/how-do-i-make-a-wix-msi-always-remove-a-previous-version
But I ran into a problem in Compiler.cs:1292 WixSharp.Compiler.ProcessUpgradeStrategy
I wished to make it in the property for VersionRange.
http://stackoverflow.com/questions/11732290/how-do-i-make-a-wix-msi-always-remove-a-previous-version
But I ran into a problem in Compiler.cs:1292 WixSharp.Compiler.ProcessUpgradeStrategy
1284 if (project.MajorUpgradeStrategy.PreventDowngradingVersions != null)
1285 {
1286 VersionRange versions = project.MajorUpgradeStrategy.PreventDowngradingVersions;
1287
1288 var upgradeVersion = upgradeElement.AddElement(
1289 new XElement("UpgradeVersion",
1290 new XAttribute("Minimum", ExpandVersion(versions.Minimum)),
1291 new XAttribute("IncludeMinimum", versions.IncludeMinimum.ToYesNo()),
1292 new XAttribute("OnlyDetect", "yes"),
1293 new XAttribute("Property", "NEWPRODUCTFOUND")));
1294
I need a "upgradeVersion" without attribute "OnlyDetect".I wished to make it in the property for VersionRange.