Archive: How to check if a Section is checked ?


How to check if a Section is checked ?
Hi,
I have two sections: section 1 and section2 that are optional, i would like to install them on two different installdir directories :
1) i would like to check if a section is checked?

2)if section1 is selected, i would like to display a page to select the install directory of section1

3)if section2 is selected, i would like to display a page to select the install directory of section2


Thanks for your reply !


Use:

SectionGetFlags ${SECID} $R0
IntOp $R0 $R0 & ${SF_SELECTED}
StrCmp $R0 ${SF_SELECTED} +2
Abort


Place this in your page's PRE function.
Make sure you !include WinMessages.nsh

${SECID} is defined by:
Section "a section" SECID
SectionEnd

-Stu