Archive: text parameter


text parameter
Hello all
I made a custom page with two textbox , how could I run the installer using Command line and passing the two textbox as a parameter.
Thanks


.....you want the installer to run itself again? Why would you do that?


Ok this is an example, this example from nsdialogs there is a textbox in it and abutton
how to add some text to the textbox and click the button using command line.
the example:
!include nsDialogs.nsh
!include LogicLib.nsh

Name nsDialogs
OutFile nsDialogs.exe

XPStyle on

Var Dialog
Var Label
Var Text

Page custom nsDialogsPage nsDialogsPageLeave
Page instfiles

Function nsDialogsPage

nsDialogs::Create 1018
Pop $Dialog

${If} $Dialog == error
Abort
${EndIf}

${NSD_CreateLabel} 0 0 100% 12u "Hello, welcome to nsDialogs!"
Pop $Label

${NSD_CreateText} 0 13u 100% -13u "Type something here..."
Pop $Text

nsDialogs::Show

FunctionEnd

Function nsDialogsPageLeave

${NSD_GetText} $Text $0
MessageBox MB_OK "You typed:$\n$\n$0"

FunctionEnd

Section

DetailPrint "hello world"

SectionEnd


Use GetParameters/GetOptions. You can use RelGotoPage to move to the next page. Not sure why you'd want to do this? Why not just skip the page altogether?

Stu