Got a problem you cannot solve? Try here.
MikeFieger
Posts: 52 Joined: Thu Jan 26, 2006 9:09 am
Post
by MikeFieger » Thu Sep 28, 2006 2:55 am
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 » Thu Sep 28, 2006 4:03 am
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#
jweksej
Posts: 93 Joined: Wed Sep 27, 2006 4:54 am
Post
by jweksej » Thu Sep 28, 2006 7:19 am
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 » Thu Sep 28, 2006 7:24 am
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/