简体   繁体   中英

update an already existing install

How to update an already existing install of a product with a new install package? Right now when there is an already installed version on my PC, the setup package says that another version was already installed and just exists. So I have to uninstall the old version and install the new one. But I want the new version to upgrade the old version to new version. How do I do that? I know that the product code must match. I think there is something to do with the upgrade code also. Both answers for visual studio setup projects and wix setup projects are welcome, but I think that there is the same principle beyond them all.

No, to make the install package upgrade itself, the ProductCode must be different in each package. UpgradeCode must match.

You should also configure <Upgrade> element or use <MajorUpgrade> in WiX.

For an example, look at Checking for Oldies section in the WiX tutorial:

You need to keep your Upgrade code constant across the whole project.

Also, WIX will consider only Major and Minor version changes.

Check out this site WIX Upgrades

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM