Please Check This Tiny Attachment, Several Bugs or Several Mistakes?
The following bugs on this script are:
1. Upon running testa is deselected.
2. Upon running testb APPEARS selected but is not (open to see).
3. SectionGroups are not hidden.
!include "MUI.nsh"
!define MUI_COMPONENTSPAGE_SMALLDESC
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES
!define PRODUCT_NAME "example09875"
OutFile "${PRODUCT_NAME}.exe"
SectionGroup "testa"
Section /O "prog1" SEC01
StrCpy $R0 DoProg1 Yes
SectionEnd
Section /O "prog2" SEC02
StrCpy $R0 DoProg2 Yes
SectionEnd
SectionGroupEnd
SectionGroup "testb"
Section /O "prog3" SEC03
StrCpy $R0 DoProg3 Yes
SectionEnd
Section /O "prog4" SEC04
StrCpy $R0 DoProg4 Yes
SectionEnd
SectionGroupEnd
SectionGroup "-hidden1"
Section "-DoProg4"
SectionGetFlags ${SEC04} $R0
StrCmp $R0 0 End
DetailPrint "Installing Section 4"
End:
SectionEnd
Section "-DoProg3"
SectionGetFlags ${SEC03} $R0
StrCmp $R0 0 End
DetailPrint "Installing Section 3"
End:
SectionEnd
SectionGroupEnd
SectionGroup "-hidden2"
Section "-DoProg2"
SectionGetFlags ${SEC02} $R0
StrCmp $R0 0 End
DetailPrint "Installing Section 2"
End:
SectionEnd
Section "-DoProg1"
SectionGetFlags ${SEC01} $R0
StrCmp $R0 0 End
DetailPrint "Installing Section 1"
End:
SectionEnd
SectionGroupEnd
Are thee bugs or blame to my own fault?