Need to uninstall one/several Msis before installing new one - Advanced Installer Community
McKool
Posts: 113
Joined: Wed Jan 19, 2011 12:35 pm
Location: Darmstadt, Germany
Contact: Website

Need to uninstall one/several Msis before installing new one

Hello Forum,

I'm working in a new installation project which will substitute some other own products/installations. To put the things a little worse ;) , the user should first select which features he want to install and then, according to his selection, some products must be uninstalled before installing the current one.

I know that more than one Msi-Setup cannot run simultaneously. But if I'm not wrong, this applies only after clicking the "Install" button within the "VerifyReadyDlg" dialog of a running setup. So, I'm currently thinking in following solution: To write some Custom-Actions (msiexec.exe /x calls) that will be called from the UI Interface, for example, as a Published Event within the button mentioned above, as the first event of that button. At this point I should also know which selection the user did, and, using Feature-Properties, decide which CA has to be launched.

Now my questions: Do you think my approach could work? and .. if not.. which options do I have in order to implement something like this?

Thanks in advance.
Keneth
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Need to uninstall one/several Msis before installing new

Hi Keneth,

Yes, you can achieve what you want by adding your custom actions as Published Events or placing them on the "Wizard Dialogs Stage" after the "User Selection" action group.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
McKool
Posts: 113
Joined: Wed Jan 19, 2011 12:35 pm
Location: Darmstadt, Germany
Contact: Website

Re: Need to uninstall one/several Msis before installing new

Good! This the "confirmation" I needed to start doing the work

Thanks for your great support.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Need to uninstall one/several Msis before installing new

You're welcome Keneth. Just let us know if you have any other question.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”