Archive: using parameters for setup.exe


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.


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


Alternatively, you may want to have a look at my StdUtils plug-in:
http://nsis.sourceforge.net/StdUtils...tAllParameters

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".


Or just use GetParameters/GetOptions from the manual.

Stu