Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Section dependency (http://forums.winamp.com/showthread.php?t=279324)

CSpark 18th October 2007 19:18

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

kichik 20th October 2007 21:29

Currently, there's only .onSelChange. But you can one-up Afrow's script with LogicLib.
code:
!include LogicLib.nsh
!include Sections.nsh
#...
${If} ${SectionIsSelected} ${sec01}
${SelectSection} ${sec02}
${EndIf}



All times are GMT. The time now is 04:19.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.