sbates
Posts: 8
Joined: Thu Mar 13, 2014 6:29 pm

Fail installation if post-install prerequisite install is cancelled

I have another setup file that is called as a post-install prerequisite from my main installer. Unfortunately, users are able to simply cancel out of this installer and the main installation will still complete successfully without any warnings.

I would like to fail the main install if the linked prerequisite is not successfully installed. Is this possible? Thank you!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Fail installation if post-install prerequisite install is cancelled

Hello,

I'm afraid that the main installation package is already completed when a post install prerequisite is launched for installation. That means, you cannot rollback the installation.

However, you can try to install silent the post install prerequisite so it doesn't display any UI or only show a basic UI. This way, the users cannot cancel the prerequisite installation. You can pass silent command lines through the Install Command Lines section from the Prerequisite Setup Files Tab of the related prerequisite.

By the way, have you tried to add your prerequisite as Pre-Install prerequisite and disable the Continue with main installation even if the prerequisite is not installed option from the Prerequisite Properties Tab? The user won't be allowed to pass further until the prerequisite is installed.

Let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
chrpai
Posts: 2
Joined: Mon Sep 07, 2015 3:53 pm

Re: Fail installation if post-install prerequisite install is cancelled

I would consider adding prereq checking to the application itself. If your initialization code can detect the problem it can tell the user to run the install again and/or run a repair.

Return to “Common Problems”