Skip to content
⌘ NSIS Forum Archive

How to set subsection always expanded?

5 posts

Dkom#

How to set subsection always expanded?

How to set subsection always expanded (not only by default)? It must not be readonly (user can select/deselect it).
Thanks.
pengyou#
Use /e in the SubSection command, as described in the NSIS Users Manual:

Dkom#
This command allows subsection to be expanded (unexpanded). How to prevent this (i.e. subsection must be ALWAYS expanded).
Anders#
I didnt try this but it may be possible to set the SF_EXPAND flag in the .OnSelChange callback function
Dkom#
It works, but not the right way.
code:
SubSection /e "name" SEC00
Section "name2" SEC01
..<other sections>
SectionEnd
SubsectionEnd
Function .OnSelChange
SectionSetFlags ${SEC00} 32
FunctionEnd
After that I can't select components. But I still can expand / unexpand subsection.