Silent failure when pre-requisite is not met - Advanced Installer Community
OrangesAndLemons
Posts: 1
Joined: Thu Jun 30, 2016 10:48 am

Silent failure when pre-requisite is not met

I have an installer that has a prerequisite of .Net 6.4.1

When running the installer manually (i.e. a client running the installer on their system) I want a UI pop up to tell the user that the pre-requisite needs to be installed.

I also run this installer quietly using an automatic deploy mechanism (for testing). When the prerequisite is not met, I get a UI pop up to tell me that I need to install the software, even when running with with /quiet.

Is there a way I can configure the installer so that the install fails quietly when the prerequisite is not met (for auto deployment), but still keep the option of the pop up for the manual install (for clients)?

Thanks,

Jaime
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Silent failure when pre-requisite is not met

Hi Jaime and welcome to Advanced Installer forums.

In order to achieve this you can go in the "Search" page and create a search to see if the prerequisite is installed on the machine (you can create the same search that is available in the "Install Conditions" tab of that prerequisite, let's call it "FOUND_PREREQ").

Then, go in the "Custom Actions" page, add a "Display error message" predefined custom action after the "Install Execution Stage -> Searches" action group and set the following condition for it: NOT FOUND_PREREQ AND UILevel = "2"

Let us know if this helped, otherwise give us more details about your scenario.

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

Return to “Common Problems”