Mercurial > mxe-octave
diff makeinst-script.sh @ 3387:0779856e1186
Add desktop shortcut and octave-versionxxxxx-installer.exe naming.
* makeinst-script.mk: change installer name to octave-VERSION.exe,
add checkbox option to create deskyop shortcuts.
* mk-dist: when in stable mode use folder name of octave-VERSION.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Fri, 03 Jan 2014 02:14:54 -0500 |
parents | 0de28586712a |
children | b5abbada6616 |
line wrap: on
line diff
--- a/makeinst-script.sh Wed Jan 01 19:34:01 2014 -0500 +++ b/makeinst-script.sh Fri Jan 03 02:14:54 2014 -0500 @@ -36,7 +36,7 @@ !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_FILES "../installer_files" -!define INSTALLER_NAME "octave-installer.exe" +!define INSTALLER_NAME "octave-$OCTAVE_VERSION-installer.exe" !define MAIN_APP_EXE "octave.exe" !define INSTALL_TYPE "SetShellVarContext current" !define PRODUCT_ROOT_KEY "HKLM" @@ -86,6 +86,18 @@ !insertmacro MUI_PAGE_INSTFILES +; set up checkbox to create desktop icon +Function finishpage_desktopshortcut + SetOutPath "\$INSTDIR\\bin" + CreateShortCut "\$desktop\\Octave-$VERSION.lnk" "\$INSTDIR\\bin\\octave.exe" "" "\$INSTDIR\\$ICON" 0 + CreateShortCut "\$desktop\\Octave-$VERSION (Experimental GUI).lnk" "\$INSTDIR\\libexec\\octave\\$OCTAVE_VERSION\\exec\\i686-pc-mingw32\\octave-gui.exe" "" "\$INSTDIR\\$ICON" 0 +FunctionEnd + +!define MUI_FINISHPAGE_SHOWREADME "" +!define MUI_FINISHPAGE_SHOWREADME_CHECKED +!define MUI_FINISHPAGE_SHOWREADME_TEXT "Create Desktop Shortcut" +!define MUI_FINISHPAGE_SHOWREADME_FUNCTION finishpage_desktopshortcut + !define MUI_FINISHPAGE_RUN "\$INSTDIR\\bin\\\${MAIN_APP_EXE}" !insertmacro MUI_PAGE_FINISH @@ -172,6 +184,8 @@ Delete "\$SMPROGRAMS\\Octave\\*.*" RMDir "\$SMPROGRAMS\\Octave" + Delete "\$desktop\\Octave-$VERSION.lnk" + Delete "\$desktop\\Octave-$VERSION (Experimental GUI).lnk" EOF # insert dir list (backwards order) for uninstall files