We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

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”