How to set subsection always expanded (not only by default)? It must not be readonly (user can select/deselect it).
Thanks.
How to set subsection always expanded?
5 posts
Use /e in the SubSection command, as described in the NSIS Users Manual:
This command allows subsection to be expanded (unexpanded). How to prevent this (i.e. subsection must be ALWAYS expanded).
I didnt try this but it may be possible to set the SF_EXPAND flag in the .OnSelChange callback function
It works, but not the right way.
code:
code:
After that I can't select components. But I still can expand / unexpand subsection.SubSection /e "name" SEC00
Section "name2" SEC01
..<other sections>
SectionEnd
SubsectionEnd
Function .OnSelChange
SectionSetFlags ${SEC00} 32
FunctionEnd