added release notes check box to the finish page
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4710 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
03ba89e1b7
commit
e4432fd8e1
1 changed files with 19 additions and 0 deletions
|
@ -28,6 +28,7 @@ InstallDirRegKey HKLM Software\NSIS ""
|
||||||
|
|
||||||
!include "MUI.nsh"
|
!include "MUI.nsh"
|
||||||
!include "Sections.nsh"
|
!include "Sections.nsh"
|
||||||
|
!include "LogicLib.nsh"
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Definitions
|
;Definitions
|
||||||
|
@ -69,6 +70,10 @@ Page custom PageReinstall PageLeaveReinstall
|
||||||
!define MUI_FINISHPAGE_RUN "$INSTDIR\NSIS.exe"
|
!define MUI_FINISHPAGE_RUN "$INSTDIR\NSIS.exe"
|
||||||
!define MUI_FINISHPAGE_NOREBOOTSUPPORT
|
!define MUI_FINISHPAGE_NOREBOOTSUPPORT
|
||||||
|
|
||||||
|
!define MUI_FINISHPAGE_SHOWREADME
|
||||||
|
!define MUI_FINISHPAGE_SHOWREADME_TEXT "Show release notes"
|
||||||
|
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION ShowReleaseNotes
|
||||||
|
|
||||||
!insertmacro MUI_PAGE_FINISH
|
!insertmacro MUI_PAGE_FINISH
|
||||||
|
|
||||||
!insertmacro MUI_UNPAGE_CONFIRM
|
!insertmacro MUI_UNPAGE_CONFIRM
|
||||||
|
@ -946,6 +951,20 @@ Function AddReadmeToStartMenu
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
Function ShowReleaseNotes
|
||||||
|
${If} ${FileExists} $WINDIR\hh.exe
|
||||||
|
StrCpy $0 $WINDIR\hh.exe
|
||||||
|
Exec '"$0" mk:@MSITStore:$INSTDIR\NSIS.chm::/SectionF.1.html'
|
||||||
|
${Else}
|
||||||
|
SearchPath $0 hh.exe
|
||||||
|
${If} ${FileExists} $0
|
||||||
|
Exec '"$0" mk:@MSITStore:$INSTDIR\NSIS.chm::/SectionF.1.html'
|
||||||
|
${Else}
|
||||||
|
ExecShell "open" "http://nsis.sourceforge.net/Docs/AppendixF.html#F.1"
|
||||||
|
${EndIf}
|
||||||
|
${EndIf}
|
||||||
|
FunctionEnd
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Uninstaller Section
|
;Uninstaller Section
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue