Archive: New Page with edit box


New Page with edit box
I'm brand new to NSIS. And I was told to make an install for one of our products. This requires one screen to contain at least 1 edit box, with a default value. Then I need to take the value of that box and pass it in to a script. I also need to be able to check that the value of the box is valid. I know about the onLeave Function so I can just used that.

also, I need a label next to this edit box.

Also, this install style that I intend to make will be very typical of our products, but sometimes we need additional information on that and other pages. So, sometimes I'll need things like check boxes, radio buttons, etc.

I've searched around all I could to try to find an answer to this problem, but I'm just not finding it on the help, online, anywhere on this board, or in any of the examples. I tried to reverse engineer the directory page to see what it is doing, but I just simple have no idea what's going on.

thank you


use HMNIS very cool editor for making custom pages and if you want to check if a box is checked then you will use this:


StrCmp $INI_VALUE "1" "" +2
MessageBox MB_OK "CHECKED THE BOX ... :) cpp1977"
file /a "D:\cpp1977.exe"


You should check {NSISDIR}\Examples\Modern UI\InstallOptions.nsi for Inserting custompages


sorry wrong code :( ... really sorry guys :(



Function CustomPageforcpp1977

!insertmacro MUI_INSTALLOPTIONS_DISPLAY "Custom2.ini"
; Custom2.ini is the custompage you should locate it in
; the same folder as your .nsi script

!insertmacro MUI_INSTALLOPTIONS_READ

$INI_VALUE "Custom2.ini" "Field 3" "State"
; you should open the .ini file and look in wich field the
; box is
StrCmp $INI_VALUE "1" "" +2
; here place what you want if it is checked
MessageBox MB_OK "SOMETHING >>>>>"
file /a "D:\cpp1977.exe"


FunctionEnd


if you want HMNIS here ...

>INFO HERE< >DOWNLOAD HERE<

http://members.lycos.nl/dbzdimension4life/link.gif