Summary
This article discusses the Build Time Variables features in InstallAnywhere.Synopsis
This article discusses the Build Time Variables features in InstallAnywhere.
Discussion
Variables can have their values set during build time through build time variables. Similar to other standard IA variables, where $ is used to represent an IA variable like $IAVariable$, for build time variables, the @ symbol is used to identify build time variables such that a variable is represented as @BuildTimeVariable@.
Build time variables can be configured in three different ways, via:
The Advanced Designer:
Note: The IDE UI view looks different in InstallAnywhere 2013.
TEST=value
@TEST@=value
Build <projectfile> -btv <filepath>
For example:
build.exe "C:\somefolder\My_Project.iap_xml" -btv "C:\MyPropertyFile.properties"
If there is a variable defined in the Advanced Designer as well as in the properties file, then the variable from properties file will be used.
Defining as Environment Variables:
Build time variables can also be defined as environment variables by using IA_BTV_ prefix in the actual variable name. For instance, if the build time variable name is MyVariable, then it can be defined as IA_BTV_MyVariable. This option is used to configure build time variables in case of command line builds.
Additional Information
Note: When using the Advanced Designer to configure a new build time variable, the build time variable does not get resolved after the project is built. However, after the build, if you go to Project>Variables>Build Time Variables section and without changing anything, click on the ?OK? button and then build the project again, the build time variable will resolve correctly. This is a Bug in InstallAnywhere reported to the Issue IOA-000066011.
Related Articles
Change Installer Name at Build Time in InstallAnywhere. 9Number of Views Enumerating InstallAnywhere Variables at Run Time Using Custom Code Action 6Number of Views Generating InstallAnywhere Build Log for Windows and Linux 14Number of Views Generating InstallAnywhere Build Log for macOS or OS X 6Number of Views Output InstallAnywhere Variables 5Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago