Place version number in output filename

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

Place version number in output filename

Post by Dame1701 »

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

Post by FrancescoT »

Dear Damien,

did you have a chance to look at this?
http://www.installaware.com/forum/viewt ... 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

Post by Edhy »

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

Post by FrancescoT »

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 5024 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

Post by Edhy »

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

Post by FrancescoT »

: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
Post Reply