Problem with MSI Upgrade?
I got an exe and in the install instructions it is mentioned to uninstall the previous versions. Installers of previous versions are provided.
If you try to install the new exe where old one is already there it shows that this upgrades the older one and do you want to continue.
But, when I install the msi which I've extracted from the latest version Exe it shows that another version of the same product is already there and installation cannot continue. Please uninstall them from add or remove programs.
I extracted the msi's from the old 2 exe and found that product code and upgrade code is same for them.
I added in the upgrade table version min =null and version max=the version of the previous application attributes =2
Please help me how to uninstall the old 2 versions and install new version.
Thanks in advance
Answers (1)
Try with this in Upgrade Table
UpgradeCode - UpgradeCode of Previous Version
VersionMin - NULL
VersionMax - ProductVersion of Current MSI
Language - ProductLanguage of Previous Version
Attributes - 512
REMOVE - NULL
ActionProperty - Unique Public Property.. (This will be added to SecureCustomProperties in Property table)
Keep RemoveExistingProducts standard action in between the InstallValidate and InstallInitialise actions in Execute Immidate