Page 1 of 1

Output filename with variable?

Posted: Thu Sep 28, 2006 2:55 am
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

Posted: Thu Sep 28, 2006 4:03 am
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#

Posted: Thu Sep 28, 2006 7:19 am
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?

Posted: Thu Sep 28, 2006 7:24 am
by MichaelNesmith
Compiler variables are substituted at build time, whereas variables change value while the script is running. Please see help for more details.