Mercurial > mxe-octave
comparison makeinst-script.sh @ 3355:bc7e18e12dcc
makeinst-script.sh: use MUI interface
author | Anirudha Bose <ani07nov@gmail.com> |
---|---|
date | Tue, 23 Jul 2013 22:47:19 -0400 |
parents | 078ba7a8c95b |
children | 2e44e8f86cd6 |
comparison
equal
deleted
inserted
replaced
3354:0155a6dfded1 | 3355:bc7e18e12dcc |
---|---|
19 ICON=`find $OCTAVE_SOURCE -name octave-logo.ico -printf "%P" | head -1 | sed 's,/,\\\\,g'` | 19 ICON=`find $OCTAVE_SOURCE -name octave-logo.ico -printf "%P" | head -1 | sed 's,/,\\\\,g'` |
20 | 20 |
21 # create installer script | 21 # create installer script |
22 echo "; octave setup script $OCTAVE_SOURCE" > octave.nsi | 22 echo "; octave setup script $OCTAVE_SOURCE" > octave.nsi |
23 | 23 |
24 # initial installer settings | 24 # installer settings |
25 cat >> octave.nsi << EOF | 25 cat >> octave.nsi << EOF |
26 !define APP_NAME "GNU Octave" | |
27 !define COMP_NAME "GNU Project" | |
28 !define WEB_SITE "http://www.octave.org" | |
29 !define VERSION "3.7.5.0" | |
30 !define COPYRIGHT "Copyright © 2013 John W. Eaton and others." | |
31 !define DESCRIPTION "GNU Octave is a high-level programming language, primarily intended for numerical computations." | |
32 !define INSTALLER_NAME "octave-installer.exe" | |
33 !define MAIN_APP_EXE "octave.exe" | |
34 !define INSTALL_TYPE "SetShellVarContext current" | |
35 !define CLASSPATH ".;lib;lib\myJar" | |
36 !define CLASS "org.me.myProgram" | |
26 | 37 |
27 ; installer settings | 38 ###################################################################### |
28 Name "Octave" | 39 |
29 OutFile "Octave-Installer.exe" | 40 VIProductVersion "\${VERSION}" |
30 InstallDir "c:\\$OCTAVE_SOURCE" | 41 VIAddVersionKey "ProductName" "\${APP_NAME}" |
42 VIAddVersionKey "CompanyName" "\${COMP_NAME}" | |
43 VIAddVersionKey "LegalCopyright" "\${COPYRIGHT}" | |
44 VIAddVersionKey "FileDescription" "\${DESCRIPTION}" | |
45 VIAddVersionKey "FileVersion" "\${VERSION}" | |
46 | |
47 ###################################################################### | |
48 | |
49 SetCompressor /SOLID Lzma | |
50 Name "\${APP_NAME}" | |
51 Caption "\${APP_NAME}" | |
52 OutFile "\${INSTALLER_NAME}" | |
53 BrandingText "\${APP_NAME}" | |
54 XPStyle on | |
55 InstallDir "\$PROGRAMFILES\Octave" | |
31 Icon "$OCTAVE_SOURCE\\$ICON" | 56 Icon "$OCTAVE_SOURCE\\$ICON" |
32 ShowInstDetails show | |
33 ShowUnInstDetails show | |
34 | 57 |
35 Page directory | 58 ###################################################################### |
36 Page instfiles | 59 !include "MUI.nsh" |
37 | 60 |
38 UninstPage uninstConfirm | 61 !define MUI_ABORTWARNING |
39 Uninstpage instfiles | 62 !define MUI_UNABORTWARNING |
40 | 63 |
64 !insertmacro MUI_PAGE_WELCOME | |
65 | |
66 !insertmacro MUI_PAGE_DIRECTORY | |
67 | |
68 !insertmacro MUI_PAGE_INSTFILES | |
69 | |
70 !define MUI_FINISHPAGE_RUN "\$INSTDIR\bin\\\${MAIN_APP_EXE}" | |
71 !insertmacro MUI_PAGE_FINISH | |
72 | |
73 !insertmacro MUI_UNPAGE_CONFIRM | |
74 | |
75 !insertmacro MUI_UNPAGE_INSTFILES | |
76 | |
77 !insertmacro MUI_UNPAGE_FINISH | |
78 | |
79 !insertmacro MUI_LANGUAGE "English" | |
80 | |
81 ###################################################################### | |
82 | |
41 RequestExecutionLevel admin | 83 RequestExecutionLevel admin |
42 | 84 |
43 ; file section | 85 ; file section |
44 Section "MainFiles" | 86 Section "MainFiles" |
45 | 87 |
102 RmDir "\$INSTDIR" | 144 RmDir "\$INSTDIR" |
103 SectionEnd | 145 SectionEnd |
104 EOF | 146 EOF |
105 | 147 |
106 echo "Generation Completed" | 148 echo "Generation Completed" |
107 |