Archive: How to disable check box in section?


How to disable check box in section?
Hi,
I had used InstType together with Section and SectionIn to allow certain checkbox to be selected when the user select the drop down list. However I was wondering is there anyway to disable checkbox or hide it when it was not in the same group? Because even thought by default the checkbox is not checked, but user still could select the option.

Not only that, is there any way to delete the "custom" option in the drop down list when you used InstType.


this will disable section checkbox:

Section "!Program Core" SEC01
SectionIn RO
...


and this should uncheck it i think
SubSection /e "Shortcuts"
...

/o uncheckes and /e expands section groups.


But what if I need to check on the windows version before I do any enable and disabling of check box ? Was it possible to hide the section or disable when user initially come to the component page?


Yes, it's possible. For that you have the macros in Sections.nsh.

!include Sections.nsh
#...

!insertmacro SelectSection ${section_id}
!insertmacro UnselectSection ${another_section_id}