changeset 3355:bc7e18e12dcc

makeinst-script.sh: use MUI interface
author Anirudha Bose <ani07nov@gmail.com>
date Tue, 23 Jul 2013 22:47:19 -0400
parents 0155a6dfded1
children 2e44e8f86cd6
files makeinst-script.sh
diffstat 1 files changed, 53 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- 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"
-