|
|
#1 |
|
Junior Member
Join Date: Feb 2008
Posts: 1
|
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! |
|
|
|
|
|
#2 |
|
Senior Member
|
is this it???
StrCpy $res "$0,$1,$2,$3" What some invent the rest enlarge |
|
|
|
|
|
#3 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
You can't use variables at compile time.
Stu |
|
|
|
|
|
#4 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
You can't use variables to tell the compiler where to write the installer.
Use defines instead. Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#5 | |
|
Senior Member
|
Quote:
but then is a dynamic outfile name possible??? What some invent the rest enlarge |
|
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Mar 2006
Location: Dallas
Posts: 462
|
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. |
|
|
|
|
|
#7 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|