Skip to content
⌘ NSIS Forum Archive

Remember & Reload Subsection Checks

5 posts

AJS2#

Remember & Reload Subsection Checks

I've got a subsection ("Shortcuts") and series of Sections underneath that a user checks to indicate whether to install various shortcuts to our software. When the user runs the installer, I'd like to save the checkboxes they select and restore them the next time they run the installer. For example, if the always deselects all options except Desktop shortcut, I want to remember that and preselect it for them.

What's the best way to accomplish this?

Thanks,

Adam
Afrow UK#
If you are using latest CVS, you can use SectionGetFlags to see if they are selected or not, and SectionSetFlags to set sections to on and off (see Include\Sections.nsh for usage)

-Stu
kichik#
Current CVS version is just waiting for language files to be released as b4. But you can use SectionGetFlags and SectionSetFlags with b3 too.