cancel
Showing results for 
Search instead for 
Did you mean: 

Using a buildproperties.properties File

No ratings

Using a buildproperties.properties File

Summary

Information on how to use a buildproperties.properties file for building installers

Synopsis

You can use a buildproperties.properties file to build installers for a project. To do this, pass the ?p argument with the path and name of the buildproperties.properties file to build.exe:
build.exe C:\MySetups\MyProduct.iap_xml -p C:\Path\buildproperties.properties
If you do not provide an absolute path to your build properties file, the builder looks for it in the same directory as your project. The settings that are specified in the .properties file override the build settings in the project.

Discussion

Many of the settings that you can configure in the Advanced Designer can also be set in a buildproperties.properties file. The following tables correlate the options in the Advanced Designer with settings in the buildproperties.properties file.
OptionFile Setting
General Settings > Send stderr tocom.zerog.ia.installer.options.stderr.redirect=path_to_file
General Settings > Send stdout tocom.zerog.ia.installer.options.stdout.redirect=path_to_file
Platforms > Default UNIX Installer UI Mode > Installer UI Modedefault.ui.mode.unix=GUI/Silent/Console
Platforms > Default Windows UI Mode > Installer UI Modedefault.ui.mode.windows=GUI/Silent/Console
Platforms > Default Windows UI Mode > Installer UI Mode (Pure 64-bit)default.ui.mode.windows64=GUI/Silent/Console
JVM Settings > Valid VM listcom.zerog.ia.installer.options.valid.vm.list=1.5+, 1.8*
JVM Settings > Minimum Heap Sizecom.zerog.ia.installer.options.heap.size.initial=16777216
JVM Settings > Maximum Heap Sizecom.zerog.ia.installer.options.heap.size.max=50331648
Look & Feel Settings > Auto populate labels when savingcom.zerog.ia.build.options.auto-populate.labels=true/false
Components > Auto-clean when buildingcom.zerog.ia.build.options.auto-clean.components=true/false
Build Installers > Select Build Configurationnumber.of.configs=2
config.1.name=Configuration Name 1
config.2.name=Configuration Name 2
In the buildproperties.properties file, the build target, distribution, and locale settings include a number to identify its associated build configuration, such as:
config.1.com.zerog.ia.build.platform.windows.novm=false
Build Installers > Build Output Locationcom.zerog.ia.build.options.output.location=path_to_directory
[Working Directory]com.zerog.ia.build.options.workdir.location=path_to_directory
Note: The working directory, which is used to store all temporary files (such as the build log and the locales directory) is set by default to the InstallAnywhere project directory. It is not specifically set in the Advanced Designer user interface.
Build Targets > OS Xconfig.1.com.zerog.ia.build.platform.macosx.novm=true/false
config.1.com.zerog.ia.build.platform.macosx.vm=true/false
config.1.com.zerog.ia.build.vmpack.macosx.path=path_to_vm
Build Targets > Windowsconfig.1.com.zerog.ia.build.platform.windows.novm=true/false
config.1.com.zerog.ia.build.platform.windows.vm=true/false
config.1.com.zerog.ia.build.platform.windows.use.console.laucher=true/false
config.1.com.zerog.ia.build.vmpack.windows.path=path_to_vm
Build Targets > Windows_Pure_64_Bitconfig.1.com.zerog.ia.build.platform.windows64.novm=true/false
config.1.com.zerog.ia.build.platform.windows64.vm=true/false
config.1.com.zerog.ia.build.vmpack.windows64.path=path_to_vm
Build Targets > AIXconfig.1.com.zerog.ia.build.platform.aix.novm=true/false
config.1.com.zerog.ia.build.platform.aix.vm=true/false
config.1.com.zerog.ia.build.vmpack.aix.path=path_to_vm
Build Targets > HP-UXconfig.1.com.zerog.ia.build.platform.hpux.novm=true/false
config.1.com.zerog.ia.build.platform.hpux.vm=true/false
config.1.com.zerog.ia.build.vmpack.hpux.path=path_to_vm
Build Targets > Linuxconfig.1.com.zerog.ia.build.platform.linux.novm=true/false
config.1.com.zerog.ia.build.platform.linux.vm=true/false
config.1.com.zerog.ia.build.vmpack.linux.path=path_to_vm
Build Targets > Solarisconfig.1.com.zerog.ia.build.platform.solaris.novm=true/false
config.1.com.zerog.ia.build.platform.solaris.vm=true/false
config.1.com.zerog.ia.build.vmpack.solaris.path=absolute_path
Build Targets > Unix (All)config.1.com.zerog.ia.build.platform.unix.novm=true/false
Build Targets > UNIX_with_VMconfig.1.com.zerog.ia.build.platform.named_unix.vm=true/false
config.1.com.zerog.ia.build.platform.named_unix.novm=true/false
config.1.com.zerog.ia.build.vmpack.unix.path=path_to_vm
Build Targets > Other Java-Enabled Platformsconfig.1.com.zerog.ia.build.platform.java.novm=true/false
[Not available in the Advanced Designer]com.zerog.ia.build.options.ignoreAllPlatformSettings=true/false
Distribution > Build Web Installersconfig.1.com.zerog.ia.build.options.output.web=true/false
Distribution > Optimize [Web] Installer Size by Platform and Tagsconfig.1.com.zerog.ia.build.options.optimization.platform.web=true/false
Distribution > Web page displays inconfig.1.com.zerog.ia.build.options.webpage.language=en
Distribution > Build CD-ROM installersconfig.1.com.zerog.ia.build.options.output.cdrom=true/false
Distribution > Optimize [CD-ROM] Installer Size by Platform and Tagsconfig.1.com.zerog.ia.build.options.optimization.platform.cdrom=true/false
Distribution > Build Merge Module Templateconfig.1.com.zerog.ia.build.options.output.merge=true/false
Distribution > Optimize Merge Module/Template Size by Platform and Tagsconfig.1.com.zerog.ia.build.options.optimization.platform.merge=true/false
Distribution > Read Onlyconfig.1.com.zerog.ia.build.options.output.merge.read.only=true/false
Locales > Locale Listconfig.1.com.zerog.ia.build.options.locales=en,ja,de,ar,fr

Additional Information

InstallAnywhere includes a sample buildproperties.properties file in the following location:
IA_HOME/resource/build/buildproperties.properties
This template file provides a sample of all possible build settings; you can use it as a template to meet your build requirements.

Setting the Product Version at Build Time
Was this article helpful? Yes No