h.k.foysol
Posts: 17
Joined: Thu Oct 13, 2016 10:34 am
Contact: Skype

Identify and mention to user which prerequisite installation failed

I have several prerequisites as pre-install. If for some reason (lets say Windows OS does not have proper updates installed) if one of the prerequisite fails then I want to mention to the user which prerequisite installation has failed. Is there a way I can achieve that?
Humayun Kabir Foysol
Team Lead
Enosis Solutions
http://www.enosisbd.com
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Identify and mention to user which prerequisite installation failed

Hello,

Please note that there is the AI_MISSING_PREREQS property that will be set if at least one of the Pre-install prerequisites was scheduled for installation, otherwise the property is empty.

Also, in the Prerequisite Setup Files Tab you can Save return value of each prerequisite into a property. The property should be 0 (zero) if the prerequisite was successfully installed. Then you can check into a custom action if all the return properties are correctly set for all the prerequisites that should be installed.

You can take a look on the How to set an installer property using custom actions? article which may be useful to you.

Please let me know if you have any questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
h.k.foysol
Posts: 17
Joined: Thu Oct 13, 2016 10:34 am
Contact: Skype

Re: Identify and mention to user which prerequisite installation failed

Thanks Dan. This is helpful.
Humayun Kabir Foysol
Team Lead
Enosis Solutions
http://www.enosisbd.com
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Identify and mention to user which prerequisite installation failed

You're welcome,

Please let me know if you need any help.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”