Skip to content
⌘ NSIS Forum Archive

Problems with sections

2 posts

helten#

Problems with sections

Hi!

I want to have the following setup:

*---(subsec)
*---(sec1)
...
*---(secN)
My code is like this:

SubSection "SubSec"
Section ;This section is hidden
;stuff that has to be done when SubSec is selected
SectionEnd

Section "1"
;stuff
SectionEnd
...
Section "N"
;stuff
SectionEnd
Problem 1: The stuff in the hidden section is executed even though the subsection isn't selected.

Problem 2: I can't select the subsection alone without any of the sections.

I've searched the forums and read the manual but for no avail....hope somebody can help me 🙂
Davion#
have you read "4.6 Sections" in the manual to there are further explanations of the section commands.

you should have a look on the examples under "...\NSIS\Examples\" too, maybe you can find some help there

greetz dave