Upgrading a WiX generated package with major version zero

你说的曾经没有我的故事 提交于 2019-11-29 17:23:40

As long as your upgrade code is stable between releases, you just need the upgrade table properly authored to be inclusive of the version you want to upgrade.

What construct do you use to implement your major upgrade? Do you use the MajorUpgrade element? It should pretty much work straight out of the box:

<MajorUpgrade Schedule="afterInstallInitialize" 
              DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit." 
              AllowDowngrades="no" AllowSameVersionUpgrades="no" />

Perhaps you are using old-style major upgrade elements: How to implement WiX installer upgrade?.

You should provide us with your WiX snippet that you use to implement major upgrades.

I would make sure that the max version specified in your Upgrade table is the same as the setup version you are currently installing.


Some Links:

Answers:

Documentation:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!