![]() |
#1 |
Junior Member
Join Date: Feb 2011
Posts: 4
|
![]()
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 |
![]() |
![]() |
![]() |
#2 |
Moderator
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 |
![]() |
![]() |
![]() |
#3 |
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 |
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Read the manual on /D (define).
Stu |
![]() |
![]() |
![]() |
|
Tags |
argument, input, param, parameter |
Thread Tools | Search this Thread |
Display Modes | |
|
|