hadas
Posts: 43
Joined: Mon Jan 06, 2014 10:53 am

Uninstall previous version and then install prerequisites

Hi,

Due to a bug in the uninstall of the previous version, I need to first uninstall the prev and only then install the prerequisites and the new versions.

How can I achieve that?

Thanks,
Hadas
Eusebiu
Posts: 4964
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstall previous version and then install prerequisite

Hi Hadas,

In order to achieve this, you can add your prerequisites as "post-install". If you want to have them as "feature-based", you also need to go in the Custom Actions page and add the "Uninstall previous version" predefined custom action. However, the prerequisites should not be added as "pre-install".

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hadas
Posts: 43
Joined: Mon Jan 06, 2014 10:53 am

Re: Uninstall previous version and then install prerequisite

Hןת

Can I locate the uninstall custom action after the user choose install and before the feature-prerequisites starts?

Thanks
Hadas
Eusebiu
Posts: 4964
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstall previous version and then install prerequisite

Yes, to achieve this, you can add it "without sequence" in the Custom Actions page, then place it as a published event on the "Install" button.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hadas
Posts: 43
Joined: Mon Jan 06, 2014 10:53 am

Re: Uninstall previous version and then install prerequisite

Thanks,

and than how I launch the install?
Eusebiu
Posts: 4964
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstall previous version and then install prerequisite

When the "Install" button will be pressed, the "Uninstall previous version" custom action will be executed, which will uninstall the old version and after it the installation of the prerequisites and new version will be performed.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hadas
Posts: 43
Joined: Mon Jan 06, 2014 10:53 am

Re: Uninstall previous version and then install prerequisite

I did that but it didn't worked. The uninstall custom action didn't happened
Attachments
2014-10-21_12h58_19.png
2014-10-21_12h58_19.png (485.32 KiB) Viewed 6532 times
Eusebiu
Posts: 4964
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstall previous version and then install prerequisite

I'm not sure why it did not work. Please make sure that the condition set for that custom action is true during the installation. Also, the uninstallation will be performed only if an older version of the application with the same Upgrade Code is found on the machine.

Please send us a verbose log of the installation if you cannot get it to work.

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

Return to “Common Problems”