Component validation
Hi!

Ive been working on a little script and cant find out how to validate if any component is selected.
It would be best if the install button is greyed out until any component is selected. Or at least som msg to tell the user that they have to choose a component to install.
I cant have any option preselected because the users will be confused.

Please help.


name "test"
OutFile "test.exe"
;Icon test.ico
installDir $TEMP\test
RequestExecutionLevel user
InstallButtonText "Connect"


!include "MUI.nsh"


!define MUI_ABORTWARNING
!define MUI_ABORTWARNING_TEXT "Do you really want to quit?"
!define MUI_COMPONENTSPAGE_NODESC

!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"



;--------------------------------
;Sections

Section /o "option1" g1o1


SectionEnd

Section /o "option2" g1o2

SectionEnd

Section /o "option3" g1o3

SectionEnd

Section /o "option4" g1o4

SectionEnd


Section -

SectionEnd

;--------------------------------


Function .onSelChange

!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${g1o1}
!insertmacro RadioButton ${g1o2}
!insertmacro RadioButton ${g1o3}
!insertmacro RadioButton ${g1o4}
!insertmacro EndRadioButtons
FunctionEnd