From 40a8eb437063af440d4d89c2d461a321a34380eb Mon Sep 17 00:00:00 2001 From: joostverburg Date: Thu, 6 Mar 2003 17:47:16 +0000 Subject: [PATCH] custom pages before finish page, io macro's with return value git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2243 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/Modern UI/Changelog.txt | 5 +++- Contrib/Modern UI/Readme.html | 9 +++++- Contrib/Modern UI/System.nsh | 50 ++++++++++++++++++++++++++++++--- 3 files changed, 58 insertions(+), 6 deletions(-) diff --git a/Contrib/Modern UI/Changelog.txt b/Contrib/Modern UI/Changelog.txt index 130b7642..3296189e 100644 --- a/Contrib/Modern UI/Changelog.txt +++ b/Contrib/Modern UI/Changelog.txt @@ -1,7 +1,10 @@ NSIS Modern User Interface - VERSION HISTORY -1.62b - March 2, 2003 +1.62b - March 6, 2003 * New system for custom functions +* New InstallOptions macro's that do not remove the return value from + the stack +* Support for custom pages before the finish page * Renamed Start Menu page defines * 'Do not create shortcuts' checkbox can be removed * RTL support diff --git a/Contrib/Modern UI/Readme.html b/Contrib/Modern UI/Readme.html index 6542d09e..d54d4510 100644 --- a/Contrib/Modern UI/Readme.html +++ b/Contrib/Modern UI/Readme.html @@ -416,11 +416,15 @@ Function FunctionName ;FunctionName defined with Page command FunctionEnd +

To read or write values to the INI Files on runtime, use these macro's:

 !insertmacro MUI_INSTALLOPTIONS_READ $VAR "ioFile.ini" "Field #" "Value Name"
 !insertmacro MUI_INSTALLOPTIONS_WRITE "ioFile.ini" "Field #" "Value Name" "Value"
 
+

If you need the InstallOptions return value (success, back, cancel, error), +use the MUI_INSTALLOPTIONS_DISPLAY_RETURN or MUI_INSTALLOPTIONS_SHOW_RETURN macro. The +return value will be added to the stack, so you can use the Pop command to get it.

Reserve files

If you are using BZIP2 compression, it's important that files which are being extracted in the .onInit function or in Page @@ -540,9 +544,12 @@ FunctionEnd

Version history