AI_BUILD_NAME property is not fully exposed / documented - Advanced Installer Community
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

AI_BUILD_NAME property is not fully exposed / documented

G'day,

I'm using AI 7.7 build 28804

I recently added a second build to my project and was looking for a way to refer to the build-name when constructing the output folder for the generated package. As mentioned in this forum post, the predefined AI_BUILD_NAME property can be used.

First, this property seems to be undocumented. At the time of writing this post (2010.09.02), the AI Custom Properties web-page makes no mention of the AI_BUILD_NAME property.

Second, this property is not fully exposed in the AI application. For example, on the "Media" tab you can specify the folder/path where your package will be created ("Folder" textbox). If you type "[" you can click the "Property" tooltip and then choose from a list of all available properties (both predefined and user defined). The AI_BUILD_NAME property is not listed anywhere in this "Select a property" dialog. What I did was select a different property (e.g. Manufacturer) and then manually change the property name to [|AI_BUILD_NAME]. Please see the following screen-shot:
AI_BUILD_NAME property.PNG
AI_BUILD_NAME property.PNG (9.25 KiB) Viewed 3510 times
After this, I can build the project and the AI_BUILD_NAME property is resolved to the name of my build. However, it would be nicer if AI_BUILD_NAME were listed in the "Select a property" dialog. Also, with other properties in the folder path, I can mouse-over and see the resolved value in a tool-tip. This does not work for the AI_BUILD_NAME property.

I noticed that the AI_BUILD_NAME property only exists if there are multiple builds, or if the "DefaultBuild" is renamed. For example, when my project only has the default build, I tried to use [|AI_BUILD_NAME] but got the blue jagged underline warning. I suppose that property is created dynamically by AI if you rename DefaultBuild or create multiple builds.

Thanks,
-Todd
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: AI_BUILD_NAME property is not fully exposed / documented

Hi Todd,

Thank you for your suggestion. Please note that properties, custom actions, tables starting with 'AI_' are usually for internal use thus we do not expose them.
Nonetheless we will consider exposing and documenting this particular property since it is of use to other users too.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: AI_BUILD_NAME property is not fully exposed / documented

Hello,

This improvement has been added in version 11.3 of Advanced Installer released on June 17th, 2014.

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

Return to “Common Problems”