Old 17th April 2009, 08:26   #1
hohausfn
Junior Member
 
Join Date: Feb 2009
Posts: 7
Installoptions -Radiobutton

Hello,

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

; 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.
hohausfn is offline   Reply With Quote
Old 17th April 2009, 09:38   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
state is the correct way, and it works fine for me, it is selected

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 17th April 2009, 09:42   #3
hohausfn
Junior Member
 
Join Date: Feb 2009
Posts: 7
how do you call your ini-file?
i do it like this:
code:
StrCpy $0 $PLUGINSDIR\io.ini
Call CreateDialogFromINI



at the installation the state is 0 ...
hohausfn is offline   Reply With Quote
Old 17th April 2009, 18:35   #4
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
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:
Quote:
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.
Comperio is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump