hohausfn
17th April 2009 09:26 UTC
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.
Anders
17th April 2009 10:38 UTC
state is the correct way, and it works fine for me, it is selected
hohausfn
17th April 2009 10:42 UTC
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 ...
Comperio
17th April 2009 19:35 UTC
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.