Prerequisites installation didn't base on conditions - Advanced Installer Community
Justin
Posts: 51
Joined: Sun Oct 18, 2020 5:53 pm

Prerequisites installation didn't base on conditions

I'm using AI 17.6 version, having a problem with prerequisites installation. I have two install conditions for checking, even I evaluate one of that is success the prerequisite is still installed.
(I have check Install prerequisite base on conditions and the install prerequisite if all condition are false )
Is there anything else I miss? Could you give a help? Thanks a lot!!


Best Regards,
Justin
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Prerequisites installation didn't base on conditions

Hello Justin,

I am not quite sure I understand what your issue is here.

In order for me to further assist, could you please give me some more details about your scenario?

Are you having trouble getting your prerequisite installed (i.e. it is not installed even if it should)?

Are you adding a prerequisite from our predefined list of prerequisites or a custom one (i.e. another package created by yourself)?

Please note that the conditions you are providing must be false in order for the prerequisite to be installed.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Justin
Posts: 51
Joined: Sun Oct 18, 2020 5:53 pm

Re: Prerequisites installation didn't base on conditions

Hello Catalin,
I found the video in https://www.youtube.com/watch?v=fMuH2zE ... ex=79&t=1s talking about "Conditionally install a prerequisite based on the user's selection". So I set the condition of prerequisite in "Organization" page instead of in "Install Conditions" tab within "Prerequisites" page, then to resolve it. Maybe you could tell me what's the difference between the two condition setting. Thanks for your kindly reply and the information.


Best Regards,
Justin
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Prerequisites installation didn't base on conditions

Hello Justin,

Sure thing. Please allow me to explain the difference between the two.

First of all, when you are adding a new "feature-based" (or a "post-install") prerequisite to your package, a feature is automatically created in "Organization" page. Basically, if you want to condition the installation of that prerequisite, you can do so by conditioning its' feature.

In what regards the "Install Conditions" tab from the "Prerequisites" page, those are still install conditions but are more generally oriented.

These conditions are evaluated by the main setup twice, as it follows:

- before the installation of the prerequisite. Here, the conditions must be false --> the prerequisite is not installed --> the prerequisite should be installed

- after the installation of the prerequisite. Here, the conditions must be true --> the prerequisite was correctly installed.

For instance, let's say that the software X has a specific registry key that it creates upon installation. Let's also say that you have an install condition based on that registry key (e.g. that registry key exists).

Before installing the prerequisite, the main setup will perform a search for that registry key (let's say the key does not currently exist - because the software X is not installed on the machine). Since the key does not exist, it means that the prerequisite is not installed and that the main setup should install the prerequisite. After the installation is performed, the setup will once again check the condition. This time, the key exists and therefore the main setup will consider the prerequisite was installed correctly.

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Justin
Posts: 51
Joined: Sun Oct 18, 2020 5:53 pm

Re: Prerequisites installation didn't base on conditions

Hi Catalin,
Got that, Thanks for your explain in detail.

Best Regard,
Justin
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Prerequisites installation didn't base on conditions

You are always welcome, Justin!

Glad I could help.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”