tags:

views:

16

answers:

1

Hi

I would like to include license-check into my NSIS installer. Simple Text field and button would be enough for me, but I didn't find any example how to include Text field (text box) into page and how to read its value.

Will you help me with it, please?

+1  A: 

You can use this to create a text field :

!include nsDialogs.nsh
!include LogicLib.nsh
...
Var EDIT
...
${NSD_CreateText} 0 35 100% 12u SomeDefaultText
Pop $EDIT

And get the input (Not sure for this one) :

System::Call user32::GetWindowText(i$EDIT,t.r0,i${NSIS_MAX_STRLEN})

(As show in example\nsDialogs\example.nsi)

William Briand