|
|
#1 |
|
Junior Member
Join Date: Nov 2005
Posts: 4
|
Passing parameters using -D on Linux
Hi all
I'm trying to pass a parameters at run time to an .NSI script but this doesn't seem to work. The Documentation suggests code: Which should be functionally equivalent to code: in example.nsi But this doesn't work, the compiler treats the ${VAR} references as literal strings. ./makensis -? gives me this documentation: code: So I tried the following for my project (if I place the nsi script call after the -D calls, compile doesn't even start). code: Unfortunately, this doesn't work either. The error I get is this: code: Does anyone have any pointers about how these params can be passed in to the nsi at run time? Line 52 of the nsi looks like this: code: TIA James |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
The command line parameters are parsed sequentially. Try:
code: NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Nov 2005
Posts: 4
|
hmm, that works fine. I'm sure i tried that on Friday. Put it down to Friday afternoons...
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|