I have been trying to figure out how to use Advanced Installer from the command line with Ant.
First problem was which character to use for separating builds in the -buildslist
After trial and error, I found out that this is neither the space nor the colon nor the comma but the semicolon. Please add this simple piece of information to your help file!
An example for the command line:
Code: Select all
[path]\AdvancedInstaller.com /rebuild path/project.aip -buildslist DefaultBuild;UpdateBuild;AnotherBuildIn the process I created a Command File which worked. But it clearly was overkill to use a command file for setting just the version. Then I realized that I need to run several commands, one for setting the version, the next for rebuilding. So here is how to set the version:
Code: Select all
[path]\AdvancedInstaller.com /edit path/project.aip /SetVersion 2.0.7Converted to an Ant task this looks as follows (maybe it is of help to someone):
Code: Select all
<exec executable="${ADVANCED_INSTALLER_COM}" failonerror="true">
<arg value="/edit" />
<arg file="src/AdvancedInstaller/MyProject.aip"/>
<arg value="/SetVersion"/>
<arg value="${version}" />
</exec>
<exec executable="${ADVANCED_INSTALLER_COM}" failonerror="true">
<arg value="/rebuild" />
<arg file="src/AdvancedInstaller/MyProject.aip"/>
<arg value="-buildslist" />
<arg value="DefaultBuild;UpdateBuild;AnotherBuild" />
</exec>
FOLLOW US
Get the latest news in Application Packaging