Old 20th March 2011, 08:51   #1
frohlinger
Junior Member
 
Join Date: Feb 2011
Posts: 4
Red face Sending Input Params to nsi file

Hi,

I need to send a simple numeric input param to the nsi, and then use it to write a DWORD value to the registry.
How do I send/read input arguments?

Thanks,
Barak
frohlinger is offline   Reply With Quote
Old 20th March 2011, 10:04   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Do you mean at compile time? If so, run makensis.exe directly using a /D switch. If you mean at run time, use GetParameters+GetOptions.

Stu
Afrow UK is offline   Reply With Quote
Old 20th March 2011, 10:25   #3
frohlinger
Junior Member
 
Join Date: Feb 2011
Posts: 4
Actually I need both...
Compile time for one thing, and runtime for another.

For compile time - can you give me an example of how to send the param, and how to read it from nsi script?
e.g.:
script compile:
makensis.exe myscript.nsi [how do I send a param here?]

myscript.nsi code:
how do I read the param sent?

Thanks!!
Barak
frohlinger is offline   Reply With Quote
Old 20th March 2011, 10:34   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Read the manual on /D (define).

Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
argument, input, param, parameter

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump