Assign a Custom Action to a specific Build - 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!

cbono
Posts: 42
Joined: Thu Aug 14, 2008 10:11 pm

Assign a Custom Action to a specific Build

Hello,

I'm interested in creating a Custom Action that only runs for a specific Build. When looking at the Media > Build Content page, I get the impression that I can specify which custom actions get included with a particular build (like I can for Features or Prerequisites).

Yet when I examine the Custom Actions property page, I can find no way of specifying a Build. Is this actually possible? Or do I have to create a separate project?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Assign a Custom Action to a specific Build

Hi,

Currently this is not supported by Advanced Installer. However, we have this improvement on our TODO list and it will be available in a future version. Until then, you can try conditioning the custom action with the "AI_BUILD_NAME" property. This property is automatically set to the name of the build which generated the MSI.

Although the custom action will be included in all builds, it will be able to run only for the build you want.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”