Page 1 of 1

Place version number in output filename

Posted: Thu Mar 10, 2016 7:49 am
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

Re: Place version number in output filename

Posted: Thu Mar 10, 2016 2:27 pm
by FrancescoT
Dear Damien,

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

Regards

Re: Place version number in output filename

Posted: Mon Jul 04, 2016 1:21 am
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.

Re: Place version number in output filename

Posted: Mon Jul 04, 2016 11:51 am
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 4559 times


Regards

Re: Place version number in output filename

Posted: Mon Jul 04, 2016 12:55 pm
by Edhy
Hi Francesco,
Thanks for the prompt reply.

Great, it worked!!!

Re: Place version number in output filename

Posted: Tue Jul 05, 2016 11:11 am
by FrancescoT
:D