Place version number in output filename

Got a problem you cannot solve? Try here.
Dame1701
Posts: 29
Joined: Tue Jan 05, 2016 10:33 am

Place version number in output filename

Postby Dame1701 » Thu Mar 10, 2016 7:49 am

Hi,

Does anyone know if there is a way to put the version number in the Output filename (as set in Build Settings under Deployment. We want to output a filename such as ContentAgent 3.4.5.11 Installer where the 3.4.5.11 comes from the version variable (which I believe is defined as $VERSION$). I have tried ContentAgent $VERSION$ Installer but this just outputs $VERSION$ rather than 3.4.5.11.

Is this possible, and if so how can we achieve this?

Many thanks,

Damien

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Place version number in output filename

Postby FrancescoT » Thu Mar 10, 2016 2:27 pm

Dear Damien,

did you have a chance to look at this?
http://www.installaware.com/forum/viewtopic.php?f=2&t=8927

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

Edhy
Posts: 138
Joined: Sun Jul 31, 2005 4:09 pm
Location: New York, USA

Re: Place version number in output filename

Postby Edhy » Mon Jul 04, 2016 1:21 am

Hi Francesco,
I have the same need to place the version number in the output filename ex: MySetup_v1.1.5.exe.
I looked at the thread you posted here and even downloaded the sample application you posted demonstrating how to set a Tile and Version variables using a compiler variables which is nice, but I cannot find anywhere in these messages where to setup the Output File value programmatically?

Is there any OutputFileName variable somewhere we can update using our compiler variables for the version number?

I basically would like to be able to enter something like this in the Output filename field: $TITLE$_v$VERSION$.

Any help will be greatly appreciated.
Edhy Rijo
Thom Child and Family Services

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Place version number in output filename

Postby FrancescoT » Mon Jul 04, 2016 11:51 am

Dear Edhy,

it's not available a pre-defined compiler variable at such purpose ... you may use a custom compiler for that.

At any rate and assuming the same sample project, you may simply do as follow with the build settings.
buildpage.png
buildpage.png (10.3 KiB) Viewed 4556 times


Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

Edhy
Posts: 138
Joined: Sun Jul 31, 2005 4:09 pm
Location: New York, USA

Re: Place version number in output filename

Postby Edhy » Mon Jul 04, 2016 12:55 pm

Hi Francesco,
Thanks for the prompt reply.

Great, it worked!!!
Edhy Rijo
Thom Child and Family Services

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Place version number in output filename

Postby FrancescoT » Tue Jul 05, 2016 11:11 am

:D
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 162 guests