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
This commit is contained in:
joostverburg 2003-03-06 17:47:16 +00:00
parent 89a44e909c
commit 40a8eb4370
3 changed files with 58 additions and 6 deletions

View file

@ -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

View file

@ -416,11 +416,15 @@ Function FunctionName ;FunctionName defined with Page command
FunctionEnd
</pre>
<p class="text">To read or write values to the INI Files on runtime, use these macro's:</p>
<pre class="margin">
!insertmacro MUI_INSTALLOPTIONS_READ $VAR "ioFile.ini" "Field #" "Value Name"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioFile.ini" "Field #" "Value Name" "Value"
</pre>
<p class="text">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.</p>
<p class="header"><a name="ReserveFile">Reserve files</a></p>
<p class="text">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
</pre>
<p class="header">Version history</p>
<ul>
<li>1.62b - March 2, 2003
<li>1.62b - March 6, 2003
<ul>
<li>New system for custom functions</li>
<li>New InstallOptions macro's that do not remove the return value from
the stack</li>
<li>Support for custom pages before the finish page</li>
<li>Renamed Start Menu page defines</li>
<li>'Do not create shortcuts' checkbox can be removed</li>
<li>RTL support</li>

View file

@ -724,6 +724,24 @@
!macroend
!macro MUI_INSTALLOPTIONS_DISPLAY_RETURN FILE
!ifndef MUI_NOVERBOSE
!ifndef MUI_MANUALVERBOSE
!verbose 3
!endif
!endif
InstallOptions::dialog "$PLUGINSDIR\${FILE}"
!ifndef MUI_NOVERBOSE
!ifndef MUI_MANUALVERBOSE
!verbose 4
!endif
!endif
!macroend
!macro MUI_INSTALLOPTIONS_INITDIALOG FILE
!ifndef MUI_NOVERBOSE
@ -749,7 +767,30 @@
!verbose 3
!endif
!endif
Push ${MUI_TEMP1}
InstallOptions::show
Pop ${MUI_TEMP1}
Pop ${MUI_TEMP1}
!ifndef MUI_NOVERBOSE
!ifndef MUI_MANUALVERBOSE
!verbose 4
!endif
!endif
!macroend
!macro MUI_INSTALLOPTIONS_SHOW_RETURN
!ifndef MUI_NOVERBOSE
!ifndef MUI_MANUALVERBOSE
!verbose 3
!endif
!endif
InstallOptions::show
!ifndef MUI_NOVERBOSE
@ -1355,7 +1396,7 @@
Call "${MUI_CUSTOMFUNCTION_FINISH_SHOW}"
!endif
!insertmacro MUI_INSTALLOPTIONS_SHOW
!insertmacro MUI_INSTALLOPTIONS_SHOW_RETURN
GetDlgItem ${MUI_TEMP1} $HWNDPARENT 1028
ShowWindow ${MUI_TEMP1} ${SW_NORMAL}
@ -1369,6 +1410,9 @@
GetDlgItem ${MUI_TEMP1} $HWNDPARENT 1045
ShowWindow ${MUI_TEMP1} ${SW_HIDE}
Pop ${MUI_TEMP1}
StrCmp ${MUI_TEMP1} "success" "" done
!ifndef MUI_FINISHPAGE_NOREBOOTSUPPORT
IfRebootFlag "" noreboot_end
@ -1416,10 +1460,8 @@
!endif
!ifndef MUI_FINISHPAGE_NOREBOOTSUPPORT
done:
!endif
Pop ${MUI_TEMP3}
Pop ${MUI_TEMP2}
Pop ${MUI_TEMP1}