Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   condition, sections (http://forums.winamp.com/showthread.php?t=307395)

o_owd 15th June 2009 20:38

condition, sections
 
I am sure I did this before but I cannot find the code. Search didn't helped...
I have this

SectionGroup 1
Section 1a
Section 1b

Section 1b can only be selected when section 1a is selected.
So if 1a is unselected maybe to disable and unselect 1b ?
If 1a is selected, enable 1b ?

Little help please ?

Thanks,
OJi.

o_owd 16th June 2009 11:56

I found this thread.
code:
SectionGetFlags ${sec3} $0
IntOp $0 $0 & ${SF_SELECTED}
StrCmp $0 ${SF_SELECTED} 0 skip
SectionGetFlags ${sec2} $1
IntOp $1 $1 | ${SF_SELECTED}
SectionSetFlags ${sec2} $1
skip:


It's not working 100% as it should but it's OK for now.


All times are GMT. The time now is 17:45.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.