${MementoSectionEnd}

Replace Section with ${MementoSection} and SectionEnd with ${MementoSectionEnd} for sections that whose state should be remembered by Memento.

Syntax

${MementoSectionEnd}

Example

!include Memento.nsh

!define MEMENTO_REGISTRY_ROOT HKLM
!define MEMENTO_REGISTRY_KEY Software\Microsoft\Windows\CurrentVersion\Uninstall\MyProgram

Function .onInit
    ${MementoSectionRestore}
FunctionEnd

Function .onInstSuccess
    ${MementoSectionSave}
FunctionEnd

${MementoSection} "name" "some_id"
    ; some code...
${MementoSectionEnd}

${MementoUnselectedSection} dinosaur sec_dinosaur
    ; some code...
${MementoSectionEnd}

${MementoSectionDone}

Credits

Written by kichik


Edit on GitHub