Skip to content
⌘ NSIS Forum Archive

ScrollLicense does not remember checkbox state

1 posts

Downward FG#

ScrollLicense does not remember checkbox state

If you rewrite the ExamplCheckBox.nsi in the scrolllicense package to show another page, and use the back button to go back after checking the box, it remembers that you have read the page, but not thet you have checked the box.
!include MUI.nsh
Name    "ScrollLicense Test"
OutFile "ScrollLicense.exe"
!define MUI_PAGE_CUSTOMFUNCTION_SHOW LicenseShow
!insertmacro MUI_PAGE_LICENSE ExampleCheckBox.nsi
!insertmacro MUI_LANGUAGE English
LicenseForceSelection checkbox
!insertmacro MUI_PAGE_DIRECTORY
Function LicenseShow
 ScrollLicense::Set /NOUNLOAD
FunctionEnd
Function .onGUIEnd
 ScrollLicense::Unload
FunctionEnd
Section "A Section"
SectionEnd 
Am I doing something wrong?