jakobsch
17th February 2008 14:20 UTC
dynamic outfile name?
How can I accomplish the following: I have several installer options, all of which determine a part of the outfile name I want to give.
How can I concatenate the bits $0, $1, $2, ... to one string $res and then do something like
OutFile $res?
I know that I can use !define etc and set the Outfilename statically, but I'm having 4 options, so this would give 2*2*2*2 nested !ifdef etc, which is cumbersome.
Thank you!
fabian.rap.more
17th February 2008 14:30 UTC
is this it???
StrCpy $res "$0,$1,$2,$3"
Afrow UK
17th February 2008 15:13 UTC
You can't use variables at compile time.
Stu
Red Wine
17th February 2008 15:15 UTC
You can't use variables to tell the compiler where to write the installer.
Use defines instead.
fabian.rap.more
17th February 2008 15:27 UTC
Originally posted by Afrow UK
You can't use variables at compile time.
i keep forgeting these things.
but then is a dynamic outfile name possible???
demiller9
17th February 2008 16:18 UTC
You are talking about compile time, so variables are definitely out, but defines will work.
You can use !if, !ifdef, and !else. You also can !execute an external program (exe, bat, vbs, etc) to create an nsh file with !defines in it. All of these would count as 'dynamic' actions.