Skip to content
⌘ NSIS Forum Archive

Radio Button

5 posts

jimmy_kick_ass#

Radio Button

I am trying to use the standard Modern UI installer.

I have 2 radio buttons, neither is checked by default

I want the Next button to be greyed out unless one of the radio buttons is checked

What is the best way to do this?
MSG#
I only know how to do this with nsDialogs. It might perhaps also be possible with InstallOptions, but I would not know how.

1) Grey out the Next button before you call nsDialogs::Show
2) Define an OnClick callback function for both radio buttons using ${NSD_OnClick}
3) In those callback functions, enable the Next button.