Skip to content
⌘ NSIS Forum Archive

About RadioButton?

4 posts

lovespy108#

About RadioButton?

I add two Radiobuttons(named A,B) on my self-defined page.
Question:
1. I want A is checked at the default state.
2. I want the setup can judge which button is checked when it is leaving the page.

Thanks to reply!!!!!!!!😉 🙂
Afrow UK#
Use InstallOptions or nsDialogs, both of which provide the functionality that you need.

Stu
cheryll#
Install Options Readme

1) To set a radiobutton, simply use
!insertmacro INSTALLOPTIONS_WRITE "IniFile" "Field Nr." "STATE" "1"
befor displaying the page. "1" being checked, "0" being unchecked.

2) To check the state of a radiobutton, use
!insertmacro INSTALLOPTIONS_READ $Var "IniFile" "Field Nr." "STATE"
in the leave-function of your page.