Hi,
In order to create a MSI which uninstalls other MSI packages, you can follow these steps:
- you create a new project
- in the "Product Details" page you check the "Do not register the product with Windows Installer" option
- in the "Upgrades" page you set the MSI installations that will be uninstalled by the new MSI
- in the "Registry" page you create a registry value (it doesn't matter where or what value it has)
- in the "Organization" page you select the component (there is only one)
- in the "General" section you set the "Condition" field to "1=2" (a condition which will always be false)
This package will uninstall the MSI installations set in the "Upgrades" page and it will install nothing because it has a single component (the registry key) that always has a false installation condition.
However, if the installation you want to remove are not MSI-based (they are not created by using the Windows Installer technology) then you can uninstall it only by using a custom action. You can read more about custom actions here:
http://www.advancedinstaller.com/user-g ... -page.html
This custom action can call the Uninstaller of the old installation (if it has one), or it can search an remove all the resources of the installation (I'm not sure how exactly this custom action would look like, but I'm sure it can be done).
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging