beonhope
25th September 2007 03:02 UTC
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.
Saurman
25th September 2007 08:25 UTC
this will disable section checkbox:
Section "!Program Core" SEC01
SectionIn RO
...
and this should uncheck it i think
SubSection /e "Shortcuts"
...
kichik
25th September 2007 19:44 UTC
/o uncheckes and /e expands section groups.
beonhope
26th September 2007 10:49 UTC
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?
kichik
26th September 2007 10:51 UTC
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}