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!

Bottesford
Posts: 11
Joined: Wed Jun 11, 2008 3:55 pm

How to uninstall other applications

I've made a new installer for our application which works great.
Now I need to be able to uninstall our previous version automatically. This was installed with a Visual Studio 2005 installer and then patched using our own patching tool.
So now I need to:
- Uninstall two MSI packages (for which I have a selection of possible GUIDs - so I don't want errors if those installs are not present)
- fire off an older installer for a component (very old InstallShield package).
- delete whats left over (several dirs & files added after the original install)

Am I best doing this with a custom action? If so how do I do this- with VBScript? I tried this for the MSI uninstall with no luck.
Maybe it should be a prerequisite? Or a sort of 'reverse prerequisite'?

Perhaps I should write a VB app to perform these tasks and just fire that off before the installer carries on.

I'm not quite sure the best approach...
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to uninstall other applications

Hi,
Uninstall two MSI packages
This can be done by using the Upgrade Codes of these packages in the Upgrades page. Please note that you can use the "New" button in order to select each package and get its Upgrade code.
fire off an older installer for a component (very old InstallShield package).
This can be done by using a "Launch file or open URL" custom action. Please note that the User Guide contains the Launch file after installation how-to which may help you.
delete whats left over (several dirs & files added after the original install)
For this you can use a custom action. For more details please see the Remove a file or a folder during installation how-to.

Let me know if you encounter problems with these approaches.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Bottesford
Posts: 11
Joined: Wed Jun 11, 2008 3:55 pm

Re: How to uninstall other applications

Thanks for the response - I'm on the right track now but having some issues getting it working.

The MSI uninstall - I couldn't get it working until scanning the log file.
It was failing as our install has to be Per Machine but our old install was Per User. Is there any way to fire off a Per User uninstall from a Per Machine install?

I'm still working on using the VBS scripts to delete directories (and to fire the older applications installer (using 'uninst' command)). They're not working at the moment though even though log says they are. Don't VBS scripts get locked down a lot by IE security measures?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to uninstall other applications

Hi,
Is there any way to fire off a Per User uninstall from a Per Machine install?
There is a discussion about this on the forum, please take a look:
http://www.advancedinstaller.com/forums ... f=2&t=7907
They're not working at the moment though even though log says they are.
I'm not sure why you are encountering this behavior. Can you please send us the .VBS script you are using and the AIP to support at advancedinstaller dot com so we can investigate it?
Don't VBS scripts get locked down a lot by IE security measures?
No, the VBScript code used during an install process is not related with Internet browsers.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”