Skip to content
⌘ NSIS Forum Archive

Sending Input Params to nsi file

4 posts

frohlinger#

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
Afrow UK#
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
frohlinger#
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