Conditional Custom Actions - Advanced Installer Community

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!

Modao
Posts: 3
Joined: Mon Jan 18, 2010 12:23 pm

Conditional Custom Actions

Hi;

I have a project that has two builds i.e. "Workstation" and "Server". The project also has two features "Worksation" and "Server". I use several attached custom actions in execute sequence, to call a utility that edits the contents of the configuration files of the applicaiton.

I wish to create some new custom actions, that do the same thing, however they are only relevant to the "Server" feature and build. Is there any way to create a custom action, and only have it run if the "Server" feature is included in the build?

Kindest Regards

Dave
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Conditional Custom Actions

Hi Dave,

You can use the AI_BUILD_NAME property. It holds the name of the build. You can use this to condition your custom action to only run on certain builds.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Modao
Posts: 3
Joined: Mon Jan 18, 2010 12:23 pm

Re: Conditional Custom Actions

Thanks Gabriel;

That did the trick nicely. Im only a newby on AI, but am loving the software. Easy to use and very intuative on the whole. One more question. Is there a definitive list of all properties and their meanings? This would be highloy useful as reference material as while many are proeprties are straight forward, some are more cryptic.

Kindest Regards

Dave

Return to “Common Problems”