Archive: Installoptions -Radiobutton


Installoptions -Radiobutton
Hello,

i have a new Problem. I want to creat a custom page.
My Ini-File:


; Ini file generated by the HM NIS Edit IO designer.
[Settings]
NumFields=4

[Field 1]
Type=Groupbox
Left=25
Right=266
Top=22
Bottom=84

[Field 2]
Type=Label
Text=bla bla bla
Left=33
Right=153
Top=35
Bottom=70

[Field 3]
Type=RadioButton
Text=als Dienst
Left=166
Right=240
Top=35
Bottom=46
Flags=GROUP
State=1

[Field 4]
Type=RadioButton
Text=als Anwendung
Left=166
Right=240
Top=54
Bottom=64
State=0


My Problem is now, that NO Radiobutton is Selected as default ... how can i set my Field 3 as Selected??

Thanks for your help.

state is the correct way, and it works fine for me, it is selected


how do you call your ini-file?
i do it like this:

 StrCpy $0 $PLUGINSDIR\io.ini
Call CreateDialogFromINI


at the installation the state is 0 ...

CreateDialogFromINI is an nsDialogs pluigin, which is different from the InstallOptions plugin. (For proper use of InstallOptions, refer to the InstallOptions readme file.)

The FAQ section of nsDialogs says this:

nsDialogs.nsh contains a function called CreateDialogFromINI that can create nsDialogs' dialog from an INI file. It can handle every type of control InstallOptions supports, but doesn't handle the flags or notification yet. Examples\nsDialogs\InstallOptions.nsi shows a usage example of this function.