Archive: Controlling a read only section


Controlling a read only section
I have a read only section 1 that I want to be checked when section 2 or section 3 are selected otherwise not checked when both are not checked as well. There is a section 4 but is independent of the first 3. I am extremely new to nsis and don't have a grasp of the syntax yet. Any help would be appreciated.

thanks in advance.

john


.onSelChange is the key where you can use ${If} ${SectionIsSelected} (LogicLib.nsh) and !insertmacro SelectSection/UnselectSection (Sections.nsh).

You should be able to find lots of examples for this on the forum. If not, search for SectionGetFlags/SectionSetFlags.

Stu


Thanks for your help
It didn't take long to find what I needed.

!include logiclib.nsh
Function .onSelChange
${If} ${SectionIsSelected} ${SEC02}
${OrIf} ${SectionIsSelected} ${SEC03}
!insertmacro SelectSection ${SEC01}
${Else}
!insertmacro unSelectSection ${SEC01}
${EndIf}
FunctionEnd

thanks again, the syntax is interesting