|
|
#1 |
|
Junior Member
Join Date: Jan 2010
Location: Russia
Posts: 1
|
Hidden section and Subsection
Hello.
If i use this code on NSIS 2.01: code: And when on page 'MUI_PAGE_COMPONENTS' uncheck 'sec1' and 'sec2' subsection1 will uncheck. all is well. I need to be so. But when i try this code on NSIS 2.45 and on page 'MUI_PAGE_COMPONENTS' uncheck 'sec1' and 'sec2' subsection1 becomes gray. I understand that this is happening because that use a hidden section. But how to do that hide section did not affect the subsection as in NSIS 2.01? Instead, subsection I tried to use SectionGroup it did not help. ps. sorry for my English... |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Not sure why the behavior has changed, but I'm guessing that's done on purpose. To circumvent the problem, you could add an .onSelChange function, with:
${If} ${SectionIsSelected} ${SEC_test1} ${AndIf} ${SectionIsSelected} ${SEC_test2} !insertmacro UnselectSection ${SEC_hidden_test1} ${Else} !insertmacro SelectSection ${SEC_hidden_test1} ${EndIf} (Or you can move the hidden section out of the section group entirely.) |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|