Skip to content
⌘ NSIS Forum Archive

using parameters for setup.exe

4 posts

vengaboy#

using parameters for setup.exe

I made an installer using nsis, The installer is one custom page in it one textbox>
after compile it, finally I have setup.exe
what I need is run the setup.exe using CMD and Passing the textbox using parameter.
T.Slappy#
Do you want to pass command line parameter of installer into textbox?
Use WM_SETTEXT message and try this article for getting the parameter: http://nsis.sourceforge.net/Get_comm...ameter_by_name
LoRd_MuldeR#
Alternatively, you may want to have a look at my StdUtils plug-in:


With ${StdUtils.GetParameter} $R0 "ParamName" "DefaultValue" you can get the parameter's value.
Then, once you have the parameter's value in $R0, you can simply forward it to the Textbox.

Note that the syntax for passing parameters is /ParamName=Value or "/ParamName=Value with Spaces".