In my 1st post ive got a solution reading this thread
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
Ive put a similar code in my installer but only checks well the first component.
Here a part of code
-------------------------
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE ComponentsLeave
!insertmacro MUI_PAGE_COMPONENTS
Function ComponentsLeave
SectionGetFlags Sec01 $R0
IntOp $R0 $R0 & ${SF_SELECTED}
StrCmp $R0 1 clSkip
SectionGetFlags Sec02 $R1
IntOp $R1 $R1 & ${SF_SELECTED}
StrCmp $R1 1 clSkip
MessageBox MB_OK|MB_ICONEXCLAMATION 'Please select a component!'
Abort
clSkip:
FunctionEnd
-------------------------
The result of SectionGetFlags Sec01 if this section es checked is 9 and 8 if its not, but SectionGetFlags Sec02 always returns 8
Where is the problem??
TIA