In order to do this you can create a MSI that uninstalls the two MSI packages. This MSI will install nothing and it will be launched by a custom action.
Here are the steps for creating this MSI:
- you create a new project
- in the "Product Details" page you check the "Do not register the product with Windows Installer" option
- in the "Install Parameters" page you check the "Limit to basic user interface (simple progress and error handling)" 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 TEST
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.
In your main Advanced Installer project you will run this MSI as an immediate custom action scheduled under the "InstallFinalize" standard action. The custom action will be "Asynchronous execution, do not wait for return" and the "Execution Condition" will be REMOVE="ALL".
Regards,
Cosmin
Last edited by Cosmin on Tue Nov 27, 2007 2:49 pm, edited 1 time in total.
You can create the MSI file like I explained in my previous post. In the "Upgrades" section you can specify the MSI installation that will be uninstalled by your MSI by pressing the "New..." button and selecting the MSI.
FOLLOW US
Get the latest news in Application Packaging