Uninstall different MSI as part of new MSI installer - 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!

skipau
Posts: 31
Joined: Mon Feb 22, 2010 5:12 am

Uninstall different MSI as part of new MSI installer

Hi there..

I have a previous installation of our product which was installed using scripting. This installation has several MSIs that are install and uninstalled as part of these scripts.

I now have a new MSI which have been made with Advanced Installer (enterprise licence).

I had put in a custom action which called the uninstall script and that is successfully called by the new MSI however as there are some MSI uninstalls within that script I get the error of "Another Installation is already in progress. Complete that installation before proceeding with this install"..

Which is self explanatory... but I wonder it there is a a way I can get my new MSI to uninstall these old MSIs as part of the installation? or is that just not possible? I read a few forum posts however all I could see was uninstalling other MSIs when my new MSI was uninstalled.

Thanks!

Jeff
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Uninstall different MSI as part of new MSI installer

Hi Jeff,

You can use the uninstall previous versions custom action for this purpose.
Let me know how it worked.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
skipau
Posts: 31
Joined: Mon Feb 22, 2010 5:12 am

Re: Uninstall different MSI as part of new MSI installer

Thanks Gabriel for that pointer. I appreciate your assistance with this.

I had a look at that information and implemented as I though it should.

It works as expected when I run the MSI interactively - that is I double click on the MSI and it starts up with the preparing to install... then it runs my uninstall Custom Action and this uninstalls the MSIs fine without error etc. Then the msi proceeds to the Setup screen etc... and all installs fine.

The problem I have is that when I use the /qb or /qn or /passive /quiet etc. options to run the msi I get still get the "Another installation is already in progress. Complete that installation before proceeding with this install".

Is there any thing else I can do to get around this? or is that just the way MSIs work?

Thanks again for your assistance

Jeff
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Uninstall different MSI as part of new MSI installer

Hi Jeff,

Unfortunately this custom action works only when using an UI. If you want to use silent installs you can try this:
- remove the custom action
- add the old MSI packages in the Upgrades page

If this doesn't work, a solution would be to create your own EXE bootstrapper which uninstalls the old packages before installing the new one. I'm afraid that there aren't any other solutions for a MSI.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
skipau
Posts: 31
Joined: Mon Feb 22, 2010 5:12 am

Re: Uninstall different MSI as part of new MSI installer

Thanks Cosmin for that...

I will add the old MSIs to the upgrades and if give that a go.

What I want to do is uninstall the old MSI and then also cleanup some old files after that has been uninstalled.. so would there be a spot in the install sequence that would follow the uninstall via the upgrades (the one I listed in the upgrades page) that I could run a custom action (vbscript) to do my other cleanups?

It that makes sense?


Thanks

Jeff
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Uninstall different MSI as part of new MSI installer

Hi,

The configuration in "Upgrades" page is used by the "InstallExecuteSequence" -> "RemoveExistingProducts" action. You can try scheduling your custom action after it.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
skipau
Posts: 31
Joined: Mon Feb 22, 2010 5:12 am

Re: Uninstall different MSI as part of new MSI installer

Thanks Cosmin. All working good now!

Return to “Common Problems”