However, when I try to set a section in the onInit function, all my checkboxes are unchecked, including the one's who I try to check...
Te reproduce this problem, I made a small test project with just the code below... as soon as I run it, the installer will go the de 'Custom' option, but no checkbox is selected, while I do have two of them set....
!include "MUI.nsh"What am i doing wrong?? According to the documentation of SectionSetFlags it's all correct, but why won't it be set?
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
; Language files
!insertmacro MUI_LANGUAGE "English"
Name "NSIS-Test"
OutFile "Setup.exe"
InstType "Normal" ;1
InstType "Full" ;2
Section "MainSection" SEC01
SectionIn 1 2
SectionEnd
Section /o "SubSection2" SEC02
SectionIn 2
SectionEnd
Section /o "SubSection3" SEC03
SectionIn 2
SectionEnd
Function .onInit
SectionSetFlags ${SEC01} SF_SELECTED
SectionSetFlags ${SEC02} SF_SELECTED
SectionSetFlags ${SEC03} 0
FunctionEnd
I'm running version 2.46 btw...