Hello,
Thank you for your explanation.
To be fully honest with you, I believe that this should indeed be the normal behavior, as it would be more efficient than checking the rest of the conditions, if one is already true. However, as mentioned in my previous thread, I can not say for sure this is the case as I was not the one that developed the logic for this.
This all stems from not being able to inject a script prior to the prerequisites check.
As you may already know, a prerequisite's condition(s) is checked two times:
- before the prerequisite is installed --> the conditions must be false => the prerequisite will be installed
- after the prerequisite is installed --> the conditions must be true => the prerequisite was installed correctly
Basically, if you insert the script before the prerequisite is installed means that you insert it before the conditions are checked.
For instance, if you prerequisite is of
"pre-install" type, you can insert your script on the dialog prior to the one installing the prerequisite.
- scriptPriorToPrereq.png (184.3 KiB) Viewed 2549 times
The script should be added as a custom action
without sequence, so you can trigger it from a dialog control.
The same logic can be applied to
"feature-based" prerequisites as well.
However, there is indeed a drawback to this and that is if you plan to deliver your setup for silent installations. Since the UI will not be spawned, the custom action will not be executed.
Hope this helps.
Best regards,
Catalin