Installshield - you need to remove products with a "bad" update code

We have an installshield product in which we had the same update code throughout the project life cycle. One way or another, the release came out with a new Upgrade code, so now we are starting to see several entries in the applications for adding and removing our clients.

Is there a way (install a script, maybe?) To go through and check the product for a different Upgrade code and remove it if it does not correspond to the current one (we will go back to reset back to the old one and NEVER change it again!)?

Thank you in advance for your time!

+3
source share
3 answers

, UpgradeCode. MajorUpgrade ( Upgrade), , UpgradeCode, .

+5

, . , , script, , script.

+1

, . VS 2005 MSI, - . " ", , RemovePreviousVersions. , Upgrade Table, rouge.

InstallShield, VS, .

VS 2005 ( , ), Microsoft Orca ( MS , ). Windows SDK, . : http://msdn.microsoft.com/en-us/library/aa370557%28v=vs.85%29.aspx

MSI , Upgrade . , . , : http://msdn.microsoft.com/en-us/library/aa372379%28VS.85%29.aspx

I created a new line with updated code that I wanted to delete, with the correct version numbers, with attribute 4 (msidbUpgradeAttributesIgnoreRemoveFailure) and ActionProperty from PREVIOUSVERSIONSINSTALLED.

If I understand this correctly, I basically told MSI that, in combination with the RemovePreviousVersions checkbox, it will consider this other update code and remove it. This worked in my case, so hopefully some of them will help you.

Good luck

+1
source

Source: https://habr.com/ru/post/1790541/


All Articles