Archive: Do something in between sections


Do something in between sections
  Hello,
I have made an installer with sections like these:
Subsection 1
Section 1
SectionEnd
Section 2
SectionEnd
SubsectionEnd

Subsection 2

Do something here, like 'DetailPrint'

Section 3
SectionEnd
Section 4
SectionEnd
Section 5
SectionEnd
SubSectionEnd

For logging I want do something every time the second Subsection is entered, even if Section3 is not activated. Is that possible?


You can add a hidden section in front of the subsection:

Section"-Sub2First"
DetailPrint "I'm--- too section for my shirt..."
SectionEnd
Subsection 2
Section 3
...
Edit: If you want to detailprint only if the subsection is entered, you can probably move it inside the subsection... You'd have to test how that behaves. Or just add a load of ${If} ${SectionIsSelected} "Section 3" ${OrIf} etc etc inside the hidden section.

Thanks, that's exactly what I was looking for! :-)