Upgrading an MSI with same product code and Upgrade code
I have an application B with version 12.10, there is an older version of this application i.e 11.20, with the same product code and Upgrade code. while deploying in SCCM I created 2 deployment types
1) Installation of my 12.10 version MSI and MST
2) VBScript to Uninstall the older version (11.20) and added this as the dependency for step 1 installation.
So while testing the application, the older version is removed, but failed to install the current version.
I tried using the upgrade code in Upgrade table in MST, that dint work for me. Also added Custom action to remove older version, that too failed.
Could someone please help me with a VB script to detect the previous version is present and uninstall it and install the current version.
Kindly help in this case.
Thanks in advance.
Answer Chosen by the Author
Anyway you're on the right track, you need to added the info to the UPGRADE table, and then move around the REMOVEEXISTINGPRODUCTS in the InstallExecute sequence so it removes old product before installing the new product - sorry I haven't worked with MSI's for about a year so my msi foo is a bit crap at the moment.