Archive: Section dependency


Section dependency
Hi,
I was wondering what was the best way to set sections dependency.

It would be great to have a generic system that would allow something like this inside a section body:

SectionDependsOn SEC01 SEC02

My goal is to automatically check/uncheck sections in components page according to dependencies.

I've seen the Section Dependency script by Afrow UK on the NSIS site, but such a system will become quite heavy to maintain in a multiple dependencis scenario.

Thanks,

Spark


Currently, there's only .onSelChange. But you can one-up Afrow's script with LogicLib.

!include LogicLib.nsh
!include Sections.nsh
#...
${If} ${SectionIsSelected} ${sec01}
${SelectSection} ${sec02}
${EndIf}