We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

lidds
Posts: 44
Joined: Thu Jun 14, 2012 11:22 pm

Condition if prerequisites installed...

I am adding a Custom Action to my advanced installer project, however I only want this custom action to execute if a certain prerequisites was installed. I know I can control the Custom Action by using the Condition property, however I am unsure of the syntax to check if a prerequisites has been installed??

Thanks

Simon
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Condition if prerequisites installed...

Hi Simon,

If it's a feature based prerequisite you can use something like:

Code: Select all

&Feature=3
Otherwise you should look into its "Install Conditions" detection criteria and come up with a similar condition.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ferje05
Posts: 4
Joined: Tue Aug 21, 2012 11:16 pm

Re: Condition if prerequisites installed...

If you install with full UI, won't the Custom Action be executed after the prerequisite (feature based) is installed in any case? Is it necessary to put a condition on the Custom Action to check if the prerequisite is installed?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Condition if prerequisites installed...

Hello,

Please keep in mind that a custom action can be scheduled at any time during the installation. Also, feature-based prerequisites are installed during "AI_InstallPrerequisite" action which is scheduled before "Install Execution Stage" -> "Preparing" -> "Install Validate" standard action. So, if you want to execute a custom action after feature-based prerequisites are installed, then the related custom action should be scheduled after "Install Execution Stage" -> "Preparing" -> "Install Validate" standard action.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”