yishai
Posts: 54
Joined: Wed Nov 23, 2005 11:54 pm

setting version number from ant

I'm trying to run advanced installer (3.3.1) from ant. Before I run it I need to set the version number, so I run it from ant with:

<target name="setInstaller">
<echo>setting version info for installer</echo>
<exec executable="${installerPath}">
<arg line="/edit "${installerFile}" /version "1.2.3">"/>
</exec>
</target>

I get an error message form advanced installer saying "Exception - the version format is incorrect"

If I run the command directly from the command line I have no problems. What am I doing wrong?

-Yishai
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi,

It seems to be an extra ">" in your arg line:

<arg line="/edit "${installerFile}" /version "1.2.3" *** > ***"/>

If this doesn't solve it please tell me the value of the {installerPath} and {installerFile} properties.

Regards,
Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com
yishai
Posts: 54
Joined: Wed Nov 23, 2005 11:54 pm

Wow, I do feel like an idiot now :-(

Thanks

Return to “Common Problems”