So... what am I doing wrong?ReadINIStr $R0 "$PLUGINSDIR\demo_select.ini" "Field 2" "State"
StrCmp $R0 "1" xcomdemo check
xcomdemo: !insertmacro SelectSection XcomDemoSec
check:
ReadINIStr $R0 "$PLUGINSDIR\demo_select.ini" "Field 3" "State"
StrCmp $R0 "1" tftddemo end
tftddemo: !insertmacro SelectSection TFTDDemoSec
end:
SelectSection doesn't work
i'm using the SelectSection macro from the "Sections.nsh" header included with NSIS to manually select/unselect sections (using a custom InstallOptions page instead of the Components page) but it doesn't work. This is the code I use: