Output filename with variable?

Got a problem you cannot solve? Try here.
Post Reply
MikeFieger
Posts: 52
Joined: Thu Jan 26, 2006 9:09 am

Output filename with variable?

Post by MikeFieger »

Hi!

Is it possible to include the value of a variable in the output filename?

The install file now is always named like the project, but we would like to have the version number encoded into the setup file without always having to rename the project or manually change the output filename.

regards,

Mike
Tinus
Posts: 209
Joined: Tue Jun 20, 2006 8:42 am
Location: Germany

Post by Tinus »

Mike,

use a compiler variable to hold your version number. A compiler variable is created in Project/Options... (CTRL+SHIFT+F11).

Then go to build settings and set an output filename based on your compiler variable.

Example: projectname#VERSION#
Martin Rothschink

AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware
jweksej
Posts: 93
Joined: Wed Sep 27, 2006 4:54 am

Post by jweksej »

But why I can't use regular variable and reference it by $<variable>$ ?
Compiler variable definition cannot include $$ references also. Why?

What is difference between compiler and script variables?
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Compiler variables are substituted at build time, whereas variables change value while the script is running. Please see help for more details.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply