From dbc100af40d652d17da76f5d0fbd4463b0f0f348 Mon Sep 17 00:00:00 2001 From: kichik Date: Sun, 16 Mar 2008 19:42:06 +0000 Subject: [PATCH] added missing ${MementoSectionDone} git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5574 212acab6-be3b-0410-9dea-997c60f758d6 --- Include/Memento.nsh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Include/Memento.nsh b/Include/Memento.nsh index b86de45c..6aa18439 100644 --- a/Include/Memento.nsh +++ b/Include/Memento.nsh @@ -50,7 +50,9 @@ A usage example can be found in `Examples\Memento.nsi`. Section identifiers must stay the same across different versions of the installer or their state will be forgotten. -4. Add a call to ${MementoSectionRestore} to .onInit to restore the state +4. Use ${MementoSectionDone} after the last ${MementoSection}. + +5. Add a call to ${MementoSectionRestore} to .onInit to restore the state of all sections from the registry. Function .onInit @@ -59,7 +61,7 @@ A usage example can be found in `Examples\Memento.nsi`. FunctionEnd -5. Add a call to ${MementoSectionSave} to .onInstSuccess to save the state +6. Add a call to ${MementoSectionSave} to .onInstSuccess to save the state of all sections to the registry. Function .onInstSuccess @@ -68,7 +70,7 @@ A usage example can be found in `Examples\Memento.nsi`. FunctionEnd -6. Tattoo the location of the chosen registry key on your arm. +7. Tattoo the location of the chosen registry key on your arm. */