cai_sebas
18th June 2003 17:15 UTC
Texbox in Dialog > Reg
Hey guys, NSIS is perfect instal system. But NSIS is new for me and i have a little problem...
I want make dialog with a textbox. The text which you type in the textbox must be used for regstring..
Take a look at the picture so you know what i mean
I hope sombody can help me.
eeh, i dont know how to make:
dialogs
ini files
Please Help me,
Sebas
Afrow UK
18th June 2003 17:29 UTC
Use InstallOptions to make a custom dialog (${NSISDIR}\Contrib\InstallOptions)
InstallOptions uses INI files for the on-screen items.
You can use ReadINIStr to read values entered by the user from these InstallOptions INI files, and then use WriteRegStr to write a vale to the registry.
See the NSIS user manual for more info in ReadINIStr / WriteRegStr etc
Edit:
Ok, after seeing the screenshot, you have everything there.
Now, whatever INI file you used for you're dialog, you now need to read the INI value from it like so:
ReadINIStr $R0 "$PLUGINSDIR\IOfile.ini" "Field 2" "State"
-Stu
cai_sebas
18th June 2003 18:03 UTC
Thanx
Thanx for the reply, im working on it, if there are probs. i will lett it know.
Sebas