# HG changeset patch # User Anirudha Bose # Date 1374634039 14400 # Node ID bc7e18e12dcc0077a81accd9a41daed85eb5a9d1 # Parent 0155a6dfded1b80f9bbb13f74aefd5c9ded9c36c makeinst-script.sh: use MUI interface diff -r 0155a6dfded1 -r bc7e18e12dcc makeinst-script.sh --- a/makeinst-script.sh Sun Dec 08 20:51:14 2013 -0500 +++ b/makeinst-script.sh Tue Jul 23 22:47:19 2013 -0400 @@ -21,23 +21,65 @@ # create installer script echo "; octave setup script $OCTAVE_SOURCE" > octave.nsi -# initial installer settings +# installer settings cat >> octave.nsi << EOF +!define APP_NAME "GNU Octave" +!define COMP_NAME "GNU Project" +!define WEB_SITE "http://www.octave.org" +!define VERSION "3.7.5.0" +!define COPYRIGHT "Copyright © 2013 John W. Eaton and others." +!define DESCRIPTION "GNU Octave is a high-level programming language, primarily intended for numerical computations." +!define INSTALLER_NAME "octave-installer.exe" +!define MAIN_APP_EXE "octave.exe" +!define INSTALL_TYPE "SetShellVarContext current" +!define CLASSPATH ".;lib;lib\myJar" +!define CLASS "org.me.myProgram" + +###################################################################### -; installer settings -Name "Octave" -OutFile "Octave-Installer.exe" -InstallDir "c:\\$OCTAVE_SOURCE" +VIProductVersion "\${VERSION}" +VIAddVersionKey "ProductName" "\${APP_NAME}" +VIAddVersionKey "CompanyName" "\${COMP_NAME}" +VIAddVersionKey "LegalCopyright" "\${COPYRIGHT}" +VIAddVersionKey "FileDescription" "\${DESCRIPTION}" +VIAddVersionKey "FileVersion" "\${VERSION}" + +###################################################################### + +SetCompressor /SOLID Lzma +Name "\${APP_NAME}" +Caption "\${APP_NAME}" +OutFile "\${INSTALLER_NAME}" +BrandingText "\${APP_NAME}" +XPStyle on +InstallDir "\$PROGRAMFILES\Octave" Icon "$OCTAVE_SOURCE\\$ICON" -ShowInstDetails show -ShowUnInstDetails show + +###################################################################### +!include "MUI.nsh" + +!define MUI_ABORTWARNING +!define MUI_UNABORTWARNING + +!insertmacro MUI_PAGE_WELCOME + +!insertmacro MUI_PAGE_DIRECTORY + +!insertmacro MUI_PAGE_INSTFILES -Page directory -Page instfiles +!define MUI_FINISHPAGE_RUN "\$INSTDIR\bin\\\${MAIN_APP_EXE}" +!insertmacro MUI_PAGE_FINISH + +!insertmacro MUI_UNPAGE_CONFIRM + +!insertmacro MUI_UNPAGE_INSTFILES -UninstPage uninstConfirm -Uninstpage instfiles +!insertmacro MUI_UNPAGE_FINISH +!insertmacro MUI_LANGUAGE "English" + +###################################################################### + RequestExecutionLevel admin ; file section @@ -104,4 +146,3 @@ EOF echo "Generation Completed" -