Setting checkbox selected
I am trying to set a checkbox selected in a custom page using a pre call. The only checkbox that is selected is the one I used SelectIn on which I alway want on. The function works fine for setting the install type, but the SectionSetFlag is not working at all. What I am doing wrong?
Function ComponentsPre
SetCurInstType 0
; check if a previous custom install was done
; if yes, then set custom install type and enable checkboxes
ClearErrors
IfFileExists "$INSTDIR\c1.win.c1report.2.dll" yescro chkadm
yescro:
SetCurInstType 1
SectionSetFlags ${SEC11} ${SF_SELECTED}
chkadm:
ClearErrors
IfFileExists "$INSTDIR\SEQUEL_Admin.EXE" yesadm chkexcel
yesadm:
SetCurInstType 1
chkexcel:
ClearErrors
IfFileExists "$INSTDIR\SEQUEL.ExcelAddIn.Interface.tlb" 0 end1
SetCurInstType 1
SectionSetFlags ${SEC13} ${SF_SELECTED}
end1:
FunctionEnd