AJS2
2nd October 2003 22:25 UTC
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
2nd October 2003 22:30 UTC
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
AJS2
2nd October 2003 22:45 UTC
Thanks for pointing that out. Any idea how stable the CVS versions are?
Adam
kichik
3rd October 2003 13:06 UTC
Current CVS version is just waiting for language files to be released as b4. But you can use SectionGetFlags and SectionSetFlags with b3 too.
AJS2
3rd October 2003 18:25 UTC
Its working great now. Thanks for pointing me in the right direction.
Adam