!include Sections.nsh Name test OutFile "test.exe" XPStyle on Page instfiles ShowInstDetails show Section a a MessageBox MB_OK a SectionEnd Section b b MessageBox MB_OK b SectionEnd Function .onInit IfSilent "" end !insertmacro UnselectSection ${a} end: FunctionEnd