gives me this warning message: unknown variable/constant "{SecTwo}" detected, ignoring (macro:_SectionFlagIsSet:2)!include "MUI2.nsh"
!include LogicLib.nsh
Name "SectionTest"
OutFile "SectionTest.exe"
ShowInstDetails show
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
Section "One" SecOne
DetailPrint "Section one"
${If} ${SectionIsSelected} ${SecTwo}
DetailPrint "Section two is selected"
${EndIf}
SectionEnd
Section "Two" SecTwo
DetailPrint "Section two"
SectionEnd
Why do I get that warning? (I guess it is because SecTwo comes after SecOne but I don't understand why that is a problem). Is there anyway I can make it work? I do not want to switch the order of the sections.