Output filename with variable?

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

Output filename with variable?

Postby 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: 207
Joined: Tue Jun 20, 2006 8:42 am
Location: Germany

Postby 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#
Martin Rothschink
InstallAware MVP

AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware

jweksej
Posts: 93
Joined: Wed Sep 27, 2006 4:54 am

Postby 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:

Postby 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
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 203 guests