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!!
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.
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.
FOLLOW US
Get the latest news in Application Packaging