Name "Test"
OutFile "test.exe"
InstallDir "$PROGRAMFILES\test"
Page components
Function .onSelChange
SectionGetFlags SID_1 $0
SectionGetFlags SID_2 $1
SectionGetFlags SID_3 $2
MessageBox MB_OK "$0, $1, $2"
FunctionEnd
Section "Sec1" SID_1
SectionEnd
Section "Sec2" SID_2
SectionEnd
Section "Sec3" SID_3
SectionEnd
SectionGetFlags only gets the first section
Hi. I'm new to this (only installed NSIS yesterday), so please forgive me if this is a stupid question, but here goes. The code below always shows the flags of Sec1. That is, when Sec1 is selected, the message is "1,1,1", and when not selected, it's "0,0,0", regardless of other sections. I was expecting to show each of the section's flags in each variable, what am I doing/understanding wrong?