InstallAnywhere 2020
InstallAnywhere offers several methods for changing the version number of an InstallAnywhere project at build time.
Using the productVersion Parameter in build.exe Command Line
You can use the productVersion parameter in the command line of build.exe to change the version of an InstallAnywhere project at build time. The following example changes the version to 2.1.3.24:
build.exe MyProduct.iap_xml productVersion=2.1.3.24
Note • Versions are conventionally represented in the following format: [Major].[Minor].[Revision].[Subrevision], such as: 2.1.3.24.
Using ProjectVersion Attributes in buildproperties.xml File
In the buildproperties.xml file, you can specify the following attributes in the <build> tag to customize the project version at build time:
<build
ProjectVersionMajor="2"
ProjectVersionMinor="3"
ProjectVersionRevision="1"
ProjectVersionSubrevision="24">
…
…
</build>
Using product.version Attributes in buildproperties.properties File
Using the buildproperties.properties file, you can specify the product.version attributes to customize the project version at build time:
product.version.major=2
product.version.minor=3
product.version.revision=1
product.version.subrevision=24
Using ProjectVersion Attributes in iaant.jar File
You can use the ProjectVersion attributes in the iaant.jar file to customize the project version at build time:
<taskdef name="buildinstaller" reverseloader="true"
classname="com.zerog.ia.integration.ant.InstallAnywhereAntTask">
<classpath>
<fileset dir="${env.IA_HOME}/resource/build">
<include name="iaant.jar"/>
</fileset>
</classpath>
</taskdef>
<buildinstaller IAProjectFile="BasicProject.iap_xml"
IALocation="${env.IA_HOME}"
ProjectVersionMajor="2"
ProjectVersionMinor="3"
ProjectVersionRevision="1"
ProjectVersionSubrevision="24" />
InstallAnywhere 2020 Help LibraryOctober 2019 |
Copyright Information | Flexera |