Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 1st June 2010, 09:12   #1
MrRichards
Junior Member
 
Join Date: May 2010
Posts: 7
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?
MrRichards is offline   Reply With Quote
Old 1st June 2010, 09:17   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,839
You can add a hidden section in front of the subsection:

PHP Code:
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.
MSG is offline   Reply With Quote
Old 1st June 2010, 09:22   #3
MrRichards
Junior Member
 
Join Date: May 2010
Posts: 7
Thanks, that's exactly what I was looking for! :-)
MrRichards is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump