1;; ============================================================ 2 ; 3 ; This file is a part of digiKam project 4 ; http://www.digikam.org 5 ; 6 ; Date : 2007-01-01 7 ; Description : Functions to create README page. 8 ; For details: http://nsis.sourceforge.net/Readme_Page_Based_on_MUI_License_Page 9 ; Note: NSIS >= 3 is required to be compatible with Windows 10. 10 ; 11 ; Copyright (C) 2010-2021 by Gilles Caulier <caulier dot gilles at gmail dot com> 12 ; 13 ; This program is free software; you can redistribute it 14 ; and/or modify it under the terms of the GNU General 15 ; Public License as published by the Free Software Foundation; 16 ; either version 2, or (at your option) 17 ; any later version. 18 ; 19 ; This program is distributed in the hope that it will be useful, 20 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 21 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 ; GNU General Public License for more details. 23 ; 24 ; ============================================================ ;; 25 26!ifndef README_PAGE_NSH 27!define README_PAGE_NSH 28 29!macro MUI_EXTRAPAGE_README UN ReadmeFile 30 31 !verbose push 32 !verbose 3 33 34 !define MUI_PAGE_HEADER_TEXT "Read Me" 35 !define MUI_PAGE_HEADER_SUBTEXT "Please review the following important information." 36 !define MUI_LICENSEPAGE_TEXT_TOP "About $(^name):" 37 !define MUI_LICENSEPAGE_TEXT_BOTTOM "Click on scrollbar arrows or press Page Down to review the entire text." 38 !define MUI_LICENSEPAGE_BUTTON "$(^NextBtn)" 39 !insertmacro MUI_${UN}PAGE_LICENSE "${ReadmeFile}" 40 41 !verbose pop 42 43!macroend 44 45;------------------------------------------------------------------------------------- 46 47!define ReadmeRun "!insertmacro MUI_EXTRAPAGE_README" 48 49!macro MUI_PAGE_README ReadmeFile 50 51 !verbose push 52 !verbose 3 53 54 ${ReadmeRun} "" "${ReadmeFile}" 55 56 !verbose pop 57 58!macroend 59 60;------------------------------------------------------------------------------------- 61 62Function functionFinishRun 63 ExecShell "" "$instdir\releasenotes.html" 64FunctionEnd 65 66!endif ;README_PAGE_NSH 67