Remove Other MSI BEFORE Install continues - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

leemarge
Posts: 2
Joined: Tue Jul 15, 2008 7:51 pm

Remove Other MSI BEFORE Install continues

Before my advanced installer program runs I want to remove an existing MSI program. This needs to happen syncronously so that the old app is uninstalled before the new install continues as they both use the same appfolder.

I have tried custom actions (command line to the msi removal program) with no success (I have run the command line successfully manually so I know the syntax/product code is correct). I have also tried putting the upgrade code from the msi I want to uninstall into the upgrade page list, but again this didn't work.

Any suggestions appreciated.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Remove Other MSI BEFORE Install continues

Hi,

Please note that Windows Installer does not support uninstalling another MSI before the main installation starts. However, if the MSI you want to uninstall has an Upgrade code, you can use it in the Upgrades page. This way the MSI will be uninstalled automatically when your package runs.
I have also tried putting the upgrade code from the msi I want to uninstall into the upgrade page list, but again this didn't work.
Does the MSI you want to uninstall have an Upgrade Code? In order to check this you can open the MSI with Orca and search the "UpgradeCode" entry in the "Property" table.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
leemarge
Posts: 2
Joined: Tue Jul 15, 2008 7:51 pm

Re: Remove Other MSI BEFORE Install continues

i found the problem - the msi i was trying to remove was installed for current user - the new install was installed as administrator - they have to match.

I changed new install to install as the current user only and then the uninstall worked using the Upgrades page method.

Return to “Common Problems”