Archive: Inputbox


Inputbox
Hi,

I created a program that allows me to install several applications with NSIS. The only thing missing is an input box. What I want to do is the following. I would like to get an input box where the user can give his initials max 2 characters. when the users enters his code I need the program to write this code to a file or directly to the database. When I use the command "alter.exe c:\test "yyy" "xxx" I can change yyy into xxx. I would like this to be done by the program. Is there a code to do this.

Thx

Tupsan.


Look at the DialogsEx plugin here:
http://plugins.joelito.net/

The same link is also listed on the author's Wiki page here: http://nsis.sourceforge.net/wiki/Dialogs


Inputbox
Hi,

I created the inputbox an it works. What I don't get is the following. When I enter something in this inputbox where can I find my input. What I need to do is:

1. copy files form one location to another
2. open an inputbox
3. user has to enter his initials
4. initials needs to be written to a file or to a database.

The code that I have is teh following.

SectionGroup "Fruits"

Section /o "Apple"

SetOutPath "xxxxxxxxxx"
CreateDirectory xxxxxxxxxx
File /r xxxxxxxxxx\*.*

SectionEnd

Section ""
DetailPrint "Initials"
Dialogs::InputBox "initials" "Enter Initials" "OK" "" "0" {VAR_0}
OK:
DetailPrint "User info: $0"
goto Exit
Exit:
SectionEnd

Can someone please show me hou I can do it to enter initials and to write these to a file or database.



${VAR_0}

;)

You should try to see if DialogsEx fits your needs...