amejia
Posts: 22
Joined: Mon Sep 29, 2008 3:35 pm

UNINSTALL AND INSTALL PACKAGE BEFORE INSTALLATION

HI.

I WANT TO UNINSTALL ONE EXISTING MSI PACKAGE AND REINSTALL ONE (WITH A HIGER VERSION) BEFORE LAUNCHING THE INSTALLER.

THIS IS BECAUSE I HAVE ONE PREREQUISITE THAT UNFORTUNATLY IT HAS NOT VERSION CONTROL SO ADVANCED INSTALLER CANNOT DETECT IT IF THERE IS AN OLDER VERSION INSTALLED ON THE TARGET MACHINE. SO BASICALLY WHAT I WANT IS TO MAKE THE UPDATE PREREQUISITE PROCESS MANUALLY, USING CUSTOM ACTIONS OR ANY OTHER ADVANCED INSTALLER FUNCIONALITY.

I CAN UNINSTALL THE OLDER PREREQUISITE USING A CUSTOM ACTION BUT THEN HOW I CAN LAUNCH THE NEWER VERSION INMEDIATLY WHEN THE OLDER HAS BEEN UNINSTALLED ?

NOTE: WHEN INSTALLING THE NEWER VERSION IT ALSO CAN BE IN OTHER PART OF THE INSTALLATION PROCESS.

THANKS IN ADVANCE
ALEJANDRO
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: UNINSTALL AND INSTALL PACKAGE BEFORE INSTALLATION

Hi Alejandro,

For what you need you can try using custom actions in "InstallUISequence" from the Custom Actions page:
- add the custom installer as a temporary file in the Files and Folders page
- under "InstallUISequence" -> "MigrateFeatureStates" create a custom action which uninstalls the previous version of the custom installer
- under this custom action create a Launch file or open URL custom action which launches the temporary file

This way the installation process should uninstall the old version of the custom installer and then install the new one. Please note that the main installation needs to run with an UI for this to work.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
amejia
Posts: 22
Joined: Mon Sep 29, 2008 3:35 pm

Re: UNINSTALL AND INSTALL PACKAGE BEFORE INSTALLATION

It works,

Thanks a lot Cosmin :-)

Return to “Common Problems”