Archive: Section skipped:


Section skipped:
I am getting "Section skipped:" in my script. I have a very large installer, which I copied from another place long ago, and is mostly hands-free. I have a SubSection for shortcuts which contains 4 Sections, and only the last one gets executed, the rest say "Section skipped:" in the logfile.

This section used to work, long ago. I changed the SubSection to SectionGroup, and the behavior is the same.

Any ideas? These sections are not really displayed, and I tried moving the functionality to the end of the previous group and removing the SectionGroup, and then nothing works. The installer just says completed, and I don't even get an install.log file.


My .oninit function:
Push $0
!ifndef SECTION_OFF
!define SECTION_OFF 0xFFFFFFFE
!endif
Goto checkDesktopShortcut

checkDesktopShortcut:
IfFileExists "$DESKTOP\${DESC_DesktopShortcut}.lnk" checkProgramShortcuts
SectionGetFlags ${SecAddDesktopShortcut} $0
IntOp $0 $0 & ${SECTION_OFF}
SectionSetFlags ${SecAddDesktopShortcut} $0
Goto checkProgramShortcuts

checkProgramShortcuts:
IfFileExists "$SMPROGRAMS\${DESC_StartDir}" checkQuicklaunchShortcut
SectionGetFlags ${SecAddStartShortcuts} $0
IntOp $0 $0 & ${SECTION_OFF}
SectionSetFlags ${SecAddStartShortcuts} $0
Goto checkQuicklaunchShortcut

checkQuicklaunchShortcut:
IfFileExists "$QUICKLAUNCH\${DESC_Quicklaunch}.lnk" endCheckShortcuts
SectionGetFlags ${SecAddQuicklaunchShortcut} $0
IntOp $0 $0 & ${SECTION_OFF}
SectionSetFlags ${SecAddQuicklaunchShortcut} $0
Goto endCheckShortcuts

endCheckShortcuts:
Pop $0
Goto install