Mercurial > mxe-octave
annotate tools/makeinst-script.sh.in @ 6939:4f25eb25a80b release
Installer: Check for default console and show advice for new Terminal
* tools/makeinst-script.sh.in: Octave doesn't work correctly when the default
console on Windows is set to the new Terminal app. Check if the default is set
to the Windows Console Host and show advice if it is not.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Fri, 27 Oct 2023 20:19:02 -0400 |
parents | 9eff743a7de0 |
children | c9c411f5db86 |
rev | line source |
---|---|
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
1 #! /bin/bash |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
2 set -e |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
3 |
4658 | 4 if [ $# != 3 ]; then |
5 echo "usage: makeinst-script.sh dist-dir installer-name output-script-name" 1>&2 | |
3431
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3430
diff
changeset
|
6 exit 1 |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
7 fi |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
8 |
4658 | 9 INSTALLER_NAME="$2" |
10 OUTFILE="$3" | |
4124
5ae69991eaa1
installer: detect win64/win32 java depending on octave 32/64 (Bug #47606)
John Donoghue
parents:
4121
diff
changeset
|
11 TOPDIR=@abs_top_srcdir@ |
4173
1d86cb0348ff
nsis: install all files to BUILD_PREFIX (Bug #48530)
John Donoghue <john.donoghue@ieee.org>
parents:
4158
diff
changeset
|
12 TOP_BUILD_DIR=@abs_top_builddir@ |
1d86cb0348ff
nsis: install all files to BUILD_PREFIX (Bug #48530)
John Donoghue <john.donoghue@ieee.org>
parents:
4158
diff
changeset
|
13 |
3431
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3430
diff
changeset
|
14 OCTAVE_SOURCE=`basename $1` |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
15 |
4066 | 16 cd `dirname $1` |
3384
0de28586712a
installer: Change gui shortcut path to libexec installed path
John Donoghue <john.donoghue@ieee.org>
parents:
3367
diff
changeset
|
17 MXEDIR=`cd ..; pwd` |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
18 |
5134
0ff5f24c0862
* tools/makeinst-script.sh.in: update qt prefix and translations dir in installer qt.conf
John Donoghue
parents:
5125
diff
changeset
|
19 if [ "@ENABLE_QT5@" == "yes" ]; then |
0ff5f24c0862
* tools/makeinst-script.sh.in: update qt prefix and translations dir in installer qt.conf
John Donoghue
parents:
5125
diff
changeset
|
20 QT_SUBDIR=qt5/ |
0ff5f24c0862
* tools/makeinst-script.sh.in: update qt prefix and translations dir in installer qt.conf
John Donoghue
parents:
5125
diff
changeset
|
21 else |
0ff5f24c0862
* tools/makeinst-script.sh.in: update qt prefix and translations dir in installer qt.conf
John Donoghue
parents:
5125
diff
changeset
|
22 QT_SUBDIR= |
0ff5f24c0862
* tools/makeinst-script.sh.in: update qt prefix and translations dir in installer qt.conf
John Donoghue
parents:
5125
diff
changeset
|
23 fi |
0ff5f24c0862
* tools/makeinst-script.sh.in: update qt prefix and translations dir in installer qt.conf
John Donoghue
parents:
5125
diff
changeset
|
24 |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
25 if [ "@USE_MSYS2@" == "yes" ]; then |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
26 if [ "@ENABLE_WINDOWS_64@" == "yes" ]; then |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
27 OCTAVE_SUBDIR=mingw64 |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
28 else |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
29 OCTAVE_SUBDIR=mingw32 |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
30 fi |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
31 else |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
32 OCTAVE_SUBDIR= |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
33 fi |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
34 |
5347
4d6716dcec28
* tools/makeinst-script.sh.in: Install to ProgramFiles by default (bug #53124).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5303
diff
changeset
|
35 if [ "@ENABLE_WINDOWS_64@" == "yes" ]; then |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
36 USE_PROGRAMFILES64= |
5347
4d6716dcec28
* tools/makeinst-script.sh.in: Install to ProgramFiles by default (bug #53124).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5303
diff
changeset
|
37 else |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
38 USE_PROGRAMFILES64=';' |
5347
4d6716dcec28
* tools/makeinst-script.sh.in: Install to ProgramFiles by default (bug #53124).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5303
diff
changeset
|
39 fi |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
40 |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
41 if [ -e $OCTAVE_SOURCE/$OCTAVE_SUBDIR/bin/libopenblas.dll ]; then |
3570
c7725f722155
NSIS installer: use Open BLAS by default
John W. Eaton <jwe@octave.org>
parents:
3552
diff
changeset
|
42 DEFAULT_BLAS="OpenBLAS" |
c7725f722155
NSIS installer: use Open BLAS by default
John W. Eaton <jwe@octave.org>
parents:
3552
diff
changeset
|
43 else |
c7725f722155
NSIS installer: use Open BLAS by default
John W. Eaton <jwe@octave.org>
parents:
3552
diff
changeset
|
44 DEFAULT_BLAS="Reference BLAS" |
c7725f722155
NSIS installer: use Open BLAS by default
John W. Eaton <jwe@octave.org>
parents:
3552
diff
changeset
|
45 fi |
c7725f722155
NSIS installer: use Open BLAS by default
John W. Eaton <jwe@octave.org>
parents:
3552
diff
changeset
|
46 |
3367
cfcbe03c9160
installer: Enable documentation build and add to installer.
John Donoghue <john.donoghue@ieee.org>
parents:
3366
diff
changeset
|
47 # find octave shortcut icon |
3760
1f870f80ed71
makeinst-script: add \n to found icon file list (Bug #43909)
John Donoghue <john.donoghue@ieee.org>
parents:
3757
diff
changeset
|
48 ICON=`find $OCTAVE_SOURCE -name octave-logo.ico -printf "%P\n" | head -1 | sed 's,/,\\\\,g'` |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
49 |
3366
ab6116aa1039
installer: update mk-dist to use make-installer installer file name and use octave-version
John Donoghue <john.donoghue@ieee.org>
parents:
3364
diff
changeset
|
50 # extract version number |
3384
0de28586712a
installer: Change gui shortcut path to libexec installed path
John Donoghue <john.donoghue@ieee.org>
parents:
3367
diff
changeset
|
51 OCTAVE_VERSION=`head -1 $MXEDIR/octave/octave-version` |
0de28586712a
installer: Change gui shortcut path to libexec installed path
John Donoghue <john.donoghue@ieee.org>
parents:
3367
diff
changeset
|
52 VERSION=`echo $OCTAVE_VERSION | sed -n 's,\([0-9\.]*\).*,\1,p'` |
6392
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
53 OCTAVE_API_VERSION=`head -1 $MXEDIR/octave/octave-api` |
4752
e839056b9a65
Allow building of unreleased stable branch (4.4.0x) (bug #54176).
Rik <rik@octave.org>
parents:
4725
diff
changeset
|
54 if [ `echo $VERSION | grep -o '\.' | wc -l` -le 2 ]; then |
e839056b9a65
Allow building of unreleased stable branch (4.4.0x) (bug #54176).
Rik <rik@octave.org>
parents:
4725
diff
changeset
|
55 INSTALLER_VERSION="$VERSION.0" |
e839056b9a65
Allow building of unreleased stable branch (4.4.0x) (bug #54176).
Rik <rik@octave.org>
parents:
4725
diff
changeset
|
56 else |
e839056b9a65
Allow building of unreleased stable branch (4.4.0x) (bug #54176).
Rik <rik@octave.org>
parents:
4725
diff
changeset
|
57 INSTALLER_VERSION=$VERSION |
e839056b9a65
Allow building of unreleased stable branch (4.4.0x) (bug #54176).
Rik <rik@octave.org>
parents:
4725
diff
changeset
|
58 fi |
3366
ab6116aa1039
installer: update mk-dist to use make-installer installer file name and use octave-version
John Donoghue <john.donoghue@ieee.org>
parents:
3364
diff
changeset
|
59 |
3818
9b033c5323db
nsis installer: expand uninstall information
John Donoghue
parents:
3817
diff
changeset
|
60 # estimated size of installed files |
9b033c5323db
nsis installer: expand uninstall information
John Donoghue
parents:
3817
diff
changeset
|
61 SIZE=`du -slk $OCTAVE_SOURCE | awk '{print \$1}'` |
9b033c5323db
nsis installer: expand uninstall information
John Donoghue
parents:
3817
diff
changeset
|
62 |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
63 # create installer script |
3431
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3430
diff
changeset
|
64 echo "; octave setup script $OCTAVE_SOURCE" > $OUTFILE |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
65 |
3355
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
66 # installer settings |
3431
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3430
diff
changeset
|
67 cat >> $OUTFILE << EOF |
3355
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
68 !define APP_NAME "GNU Octave" |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
69 !define COMP_NAME "GNU Project" |
4650
1d9448607538
Use https in links whenever possible (Bug #53555).
Rik <rik@octave.org>
parents:
4648
diff
changeset
|
70 !define WEB_SITE "https://www.octave.org" |
4752
e839056b9a65
Allow building of unreleased stable branch (4.4.0x) (bug #54176).
Rik <rik@octave.org>
parents:
4725
diff
changeset
|
71 !define VERSION "$INSTALLER_VERSION" |
3366
ab6116aa1039
installer: update mk-dist to use make-installer installer file name and use octave-version
John Donoghue <john.donoghue@ieee.org>
parents:
3364
diff
changeset
|
72 !define OCTAVE_VERSION "$OCTAVE_VERSION" |
5273
eafd9bf16bf4
* tools/makeinst-script.sh.in: update installer copyright (Bug #57617)
John Donoghue
parents:
5270
diff
changeset
|
73 !define COPYRIGHT "Copyright © 2013-2020 John W. Eaton and others." |
5422
100b42124b66
* tools/makeinst-script.in.h: Revert part of 020bb2fcd3e2 (bug #58320).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5421
diff
changeset
|
74 !define DESCRIPTION "GNU Octave Installer" |
4066 | 75 !define INSTALLER_FILES "$TOPDIR/installer-files" |
4658 | 76 !define INSTALLER_NAME "$INSTALLER_NAME" |
5958
ea224bb389e3
NSIS installer: Use launcher executables.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5549
diff
changeset
|
77 !define MAIN_APP_EXE "octave-launch-firsttime.exe" |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
78 !define PRODUCT_ROOT_KEY "SHCTX" |
3403
f79780bcc843
installer: check destination path later in install (Bug #41069)
John Donoghue <john.donoghue@ieee.org>
parents:
3391
diff
changeset
|
79 !define PRODUCT_KEY "Software\\Octave-$VERSION" |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
80 !define PRODUCT_UNINST_KEY "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Octave-$VERSION" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
81 !define PRODUCT_UNINST_ROOT_KEY "SHCTX" |
3355
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
82 |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
83 ###################################################################### |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
84 |
3355
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
85 VIProductVersion "\${VERSION}" |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
86 VIAddVersionKey "ProductName" "\${APP_NAME}" |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
87 VIAddVersionKey "CompanyName" "\${COMP_NAME}" |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
88 VIAddVersionKey "LegalCopyright" "\${COPYRIGHT}" |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
89 VIAddVersionKey "FileDescription" "\${DESCRIPTION}" |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
90 VIAddVersionKey "FileVersion" "\${VERSION}" |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
91 |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
92 ###################################################################### |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
93 |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
94 SetCompressor /SOLID Lzma |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
95 Name "\${APP_NAME}" |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
96 Caption "\${APP_NAME}" |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
97 OutFile "\${INSTALLER_NAME}" |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
98 BrandingText "\${APP_NAME}" |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
99 XPStyle on |
5270
225fc4d8f598
* tools/makeinst-script.sh.in: make installer dpi aware
John Donoghue
parents:
5248
diff
changeset
|
100 ManifestDPIAware true |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
101 ManifestSupportedOS all |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
102 Unicode true |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
103 RequestExecutionLevel user |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
104 # multiuser will modify this |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
105 InstallDir "\$PROGRAMFILES\\GNU Octave\\Octave-\${OCTAVE_VERSION}" |
3367
cfcbe03c9160
installer: Enable documentation build and add to installer.
John Donoghue <john.donoghue@ieee.org>
parents:
3366
diff
changeset
|
106 Icon "\${INSTALLER_FILES}/octave-logo.ico" |
3355
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
107 |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
108 ###################################################################### |
3409
5e77c5fc91ed
qt: build translations in cross build and install
John Donoghue <john.donoghue@ieee.org>
parents:
3406
diff
changeset
|
109 ; StrFunc usage |
5e77c5fc91ed
qt: build translations in cross build and install
John Donoghue <john.donoghue@ieee.org>
parents:
3406
diff
changeset
|
110 !include "StrFunc.nsh" |
5e77c5fc91ed
qt: build translations in cross build and install
John Donoghue <john.donoghue@ieee.org>
parents:
3406
diff
changeset
|
111 \${StrRep} |
5e77c5fc91ed
qt: build translations in cross build and install
John Donoghue <john.donoghue@ieee.org>
parents:
3406
diff
changeset
|
112 ###################################################################### |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
113 ; Multi user |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
114 !define MULTIUSER_EXECUTIONLEVEL Highest |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
115 ;!define MULTIUSER_INSTALLMODE_DEFAULT_CURRENTUSER |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
116 !define MULTIUSER_INSTALLMODE_INSTDIR "GNU Octave\\Octave-\${OCTAVE_VERSION}" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
117 ${USE_PROGRAMFILES64}!define MULTIUSER_USE_PROGRAMFILES64 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
118 !define MULTIUSER_MUI |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
119 !define MULTIUSER_INSTALLMODE_COMMANDLINE |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
120 Var MultiUser.UninstallKey |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
121 Var MultiUser.Local |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
122 !include MultiUser.nsh |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
123 ###################################################################### |
3363
b89f15801606
Added Octave images in welcome page, headers, and finish page of installer.
Anirudha Bose <ani07nov@gmail.com>
parents:
3362
diff
changeset
|
124 ; MUI settings |
4608 | 125 !include "MUI2.nsh" |
3355
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
126 |
3453
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
127 ; custom dialogs |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
128 !include nsDialogs.nsh |
3471
6a97f4d1dedb
installer: Add ref BLAS/OpenBLAS install option
John Donoghue <john.donoghue@ieee.org>
parents:
3458
diff
changeset
|
129 !macro __DropList_GetCurSel CONTROL VAR |
6a97f4d1dedb
installer: Add ref BLAS/OpenBLAS install option
John Donoghue <john.donoghue@ieee.org>
parents:
3458
diff
changeset
|
130 SendMessage \${CONTROL} \${CB_GETCURSEL} 0 0 \${VAR} |
6a97f4d1dedb
installer: Add ref BLAS/OpenBLAS install option
John Donoghue <john.donoghue@ieee.org>
parents:
3458
diff
changeset
|
131 !macroend |
6a97f4d1dedb
installer: Add ref BLAS/OpenBLAS install option
John Donoghue <john.donoghue@ieee.org>
parents:
3458
diff
changeset
|
132 |
6a97f4d1dedb
installer: Add ref BLAS/OpenBLAS install option
John Donoghue <john.donoghue@ieee.org>
parents:
3458
diff
changeset
|
133 !define DropList_GetCurSel \`!insertmacro __DropList_GetCurSel\` |
6a97f4d1dedb
installer: Add ref BLAS/OpenBLAS install option
John Donoghue <john.donoghue@ieee.org>
parents:
3458
diff
changeset
|
134 |
3453
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
135 ; additional logic |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
136 !include LogicLib.nsh |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
137 ; File funcs |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
138 !include FileFunc.nsh |
3453
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
139 |
3355
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
140 !define MUI_ABORTWARNING |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
141 !define MUI_UNABORTWARNING |
3363
b89f15801606
Added Octave images in welcome page, headers, and finish page of installer.
Anirudha Bose <ani07nov@gmail.com>
parents:
3362
diff
changeset
|
142 !define MUI_HEADERIMAGE |
3355
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
143 |
3363
b89f15801606
Added Octave images in welcome page, headers, and finish page of installer.
Anirudha Bose <ani07nov@gmail.com>
parents:
3362
diff
changeset
|
144 ; Theme |
b89f15801606
Added Octave images in welcome page, headers, and finish page of installer.
Anirudha Bose <ani07nov@gmail.com>
parents:
3362
diff
changeset
|
145 !define MUI_ICON "\${INSTALLER_FILES}/octave-logo.ico" |
4173
1d86cb0348ff
nsis: install all files to BUILD_PREFIX (Bug #48530)
John Donoghue <john.donoghue@ieee.org>
parents:
4158
diff
changeset
|
146 !define MUI_UNICON "$TOP_BUILD_DIR/usr/share/nsis/Contrib/Graphics/Icons/orange-uninstall.ico" |
3363
b89f15801606
Added Octave images in welcome page, headers, and finish page of installer.
Anirudha Bose <ani07nov@gmail.com>
parents:
3362
diff
changeset
|
147 !define MUI_HEADERIMAGE_BITMAP "\${INSTALLER_FILES}/octave-hdr.bmp" |
b89f15801606
Added Octave images in welcome page, headers, and finish page of installer.
Anirudha Bose <ani07nov@gmail.com>
parents:
3362
diff
changeset
|
148 !define MUI_WELCOMEFINISHPAGE_BITMAP "\${INSTALLER_FILES}/octave.bmp" |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
149 !define MUI_UNWELCOMEFINISHPAGE_BITMAP "\${INSTALLER_FILES}/octave.bmp" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
150 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
151 ; Pages |
3355
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
152 !insertmacro MUI_PAGE_WELCOME |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
153 |
3360
cbaab92e1174
makeinst-script.sh: Removed 'I Agree' in GPL license page
Anirudha Bose <ani07nov@gmail.com>
parents:
3359
diff
changeset
|
154 !define MUI_LICENSEPAGE_TEXT_BOTTOM "The source code for Octave is freely redistributable under the terms of the GNU General Public License (GPL) as published by the Free Software Foundation." |
cbaab92e1174
makeinst-script.sh: Removed 'I Agree' in GPL license page
Anirudha Bose <ani07nov@gmail.com>
parents:
3359
diff
changeset
|
155 !define MUI_LICENSEPAGE_BUTTON "Next >" |
3363
b89f15801606
Added Octave images in welcome page, headers, and finish page of installer.
Anirudha Bose <ani07nov@gmail.com>
parents:
3362
diff
changeset
|
156 !insertmacro MUI_PAGE_LICENSE "\${INSTALLER_FILES}/gpl-3.0.txt" |
3356
2e44e8f86cd6
makeinst-script.sh: add license page with GPLv3
Anirudha Bose <ani07nov@gmail.com>
parents:
3355
diff
changeset
|
157 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
158 !insertmacro MULTIUSER_PAGE_INSTALLMODE |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
159 |
3453
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
160 Page custom octaveOptionsPage octaveOptionsLeave |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
161 |
3728
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
162 !define MUI_PAGE_CUSTOMFUNCTION_LEAVE CheckPrevInstallAndDest |
3355
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
163 !insertmacro MUI_PAGE_DIRECTORY |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
164 |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
165 !insertmacro MUI_PAGE_INSTFILES |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
166 |
6939
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
167 !define MUI_PAGE_CUSTOMFUNCTION_SHOW CheckConsole |
3757
7a6637aa3aae
installer: ran octave through explorer when running at end of install (Bug 43824)
John Donoghue
parents:
3728
diff
changeset
|
168 !define MUI_FINISHPAGE_RUN "\$WINDIR\\explorer.exe" |
7a6637aa3aae
installer: ran octave through explorer when running at end of install (Bug 43824)
John Donoghue
parents:
3728
diff
changeset
|
169 !define MUI_FINISHPAGE_RUN_PARAMETERS "\$INSTDIR\\\${MAIN_APP_EXE}" |
3453
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
170 !define MUI_FINISHPAGE_SHOWREADME "\$INSTDIR\\README.html" |
3355
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
171 !insertmacro MUI_PAGE_FINISH |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
172 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
173 ; uninstaller |
3355
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
174 !insertmacro MUI_UNPAGE_CONFIRM |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
175 |
6392
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
176 UninstPage custom un.octaveOptionsPage un.octaveOptionsLeave |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
177 |
3355
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
178 !insertmacro MUI_UNPAGE_INSTFILES |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
179 |
3355
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
180 !insertmacro MUI_UNPAGE_FINISH |
3331
71171ba8bebd
Update installer script for admin level and single icon file
John Donoghue <john.donoghue@ieee.org>
parents:
3010
diff
changeset
|
181 |
3355
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
182 !insertmacro MUI_LANGUAGE "English" |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
183 |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
184 ###################################################################### |
bc7e18e12dcc
makeinst-script.sh: use MUI interface
Anirudha Bose <ani07nov@gmail.com>
parents:
3350
diff
changeset
|
185 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
186 !macro DequoteString_ un |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
187 Function \${un}DequoteString_ |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
188 ; just removed any '"' found |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
189 Exch \$R0 # r0 is now the string |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
190 Push \$R1 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
191 Push \$R2 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
192 Push \$R3 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
193 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
194 Strcpy \$R3 "" # dequoted value |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
195 StrCmp \$R0 "" \${un}dequote_end |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
196 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
197 StrCpy \$R1 0 # r1 = counter |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
198 \${un}dequote_loop: |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
199 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
200 StrCpy \$R2 \$R0 1 \$R1 # R2 = character in string to check |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
201 StrCmp \$R2 "" \${un}dequote_end # end of string |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
202 StrCmp \$R2 '"' \${un}dequote_next |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
203 # no quote |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
204 StrCpy \$R3 \$R3\$R2 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
205 \${un}dequote_next: |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
206 IntOp \$R1 \$R1 + 1 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
207 GoTo \${un}dequote_loop |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
208 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
209 \${un}dequote_end: |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
210 StrCpy \$R0 \$R3 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
211 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
212 Pop \$R3 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
213 Pop \$R2 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
214 Pop \$R1 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
215 Exch \$R0 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
216 FunctionEnd |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
217 !macroend |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
218 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
219 !insertmacro DequoteString_ "un." |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
220 !insertmacro DequoteString_ "" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
221 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
222 !macro DequoteString un InStr OutVar |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
223 Push '\${InStr}' |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
224 Call \${un}DequoteString_ |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
225 Pop '\${OutVar}' |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
226 !macroend |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
227 !define DequoteString '!insertmacro DequoteString ""' |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
228 !define un.DequoteString '!insertmacro DequoteString "un."' |
3357
456b6e533054
makeinst-script.sh: Added checking for Java Runtime Environment
Anirudha Bose <ani07nov@gmail.com>
parents:
3356
diff
changeset
|
229 |
3453
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
230 ###################################################################### |
5536
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
231 |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
232 # function code from https://nsis.sourceforge.io/IShellLink_Set_RunAs_flag |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
233 |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
234 |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
235 !ifndef IPersistFile |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
236 !define IPersistFile {0000010b-0000-0000-c000-000000000046} |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
237 !endif |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
238 !ifndef CLSID_ShellLink |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
239 !define CLSID_ShellLink {00021401-0000-0000-C000-000000000046} |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
240 !define IID_IShellLinkA {000214EE-0000-0000-C000-000000000046} |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
241 !define IID_IShellLinkW {000214F9-0000-0000-C000-000000000046} |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
242 !define IShellLinkDataList {45e2b4ae-b1c3-11d0-b92f-00a0c90312e1} |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
243 !ifdef NSIS_UNICODE |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
244 !define IID_IShellLink \${IID_IShellLinkW} |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
245 !else |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
246 !define IID_IShellLink \${IID_IShellLinkA} |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
247 !endif |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
248 !endif |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
249 |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
250 Function ShellLinkSetRunAs |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
251 System::Store S |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
252 Pop \$9 |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
253 System::Call "ole32::CoCreateInstance(g'\${CLSID_ShellLink}',i0,i1,g'\${IID_IShellLink}',*i.r1)i.r0" |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
254 \${If} \$0 = 0 |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
255 System::Call "\$1->0(g'\${IPersistFile}',*i.r2)i.r0" ;QI |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
256 \${If} \$0 = 0 |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
257 System::Call "\$2->5(w '\$9',i 0)i.r0" ;Load |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
258 \${If} \$0 = 0 |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
259 System::Call "\$1->0(g'\${IShellLinkDataList}',*i.r3)i.r0" ;QI |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
260 \${If} \$0 = 0 |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
261 System::Call "\$3->6(*i.r4)i.r0" ;GetFlags |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
262 \${If} \$0 = 0 |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
263 System::Call "\$3->7(i \$4|0x2000)i.r0" ;SetFlags ;SLDF_RUNAS_USER |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
264 \${If} $0 = 0 |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
265 System::Call "\$2->6(w '\$9',i1)i.r0" ;Save |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
266 \${EndIf} |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
267 \${EndIf} |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
268 System::Call "\$3->2()" ;Release |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
269 \${EndIf} |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
270 System::Call "\$2->2()" ;Release |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
271 \${EndIf} |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
272 \${EndIf} |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
273 System::Call "\$1->2()" ;Release |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
274 \${EndIf} |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
275 Push $0 |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
276 System::Store L |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
277 FunctionEnd |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
278 |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
279 ###################################################################### |
6395
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
280 # function based on code from http://forums.winamp.com/attachment.php?attachmentid=31680&d=1112381115 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
281 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
282 !macro VersionCompare_ un |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
283 Function \${un}VersionCompare_ |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
284 Exch \$1 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
285 Exch |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
286 Exch \$0 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
287 Exch |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
288 Push \$2 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
289 Push \$3 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
290 Push \$4 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
291 Push \$5 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
292 Push \$6 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
293 Push \$7 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
294 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
295 begin: |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
296 StrCpy \$2 -1 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
297 IntOp \$2 \$2 + 1 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
298 StrCpy \$3 \$0 1 \$2 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
299 StrCmp \$3 '' +2 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
300 StrCmp \$3 '.' 0 -3 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
301 StrCpy \$4 \$0 \$2 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
302 IntOp \$2 \$2 + 1 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
303 StrCpy \$0 \$0 '' \$2 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
304 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
305 StrCpy \$2 -1 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
306 IntOp \$2 \$2 + 1 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
307 StrCpy \$3 \$1 1 \$2 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
308 StrCmp \$3 '' +2 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
309 StrCmp \$3 '.' 0 -3 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
310 StrCpy \$5 \$1 \$2 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
311 IntOp \$2 \$2 + 1 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
312 StrCpy \$1 \$1 '' \$2 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
313 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
314 StrCmp \$4\$5 '' equal |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
315 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
316 StrCpy \$6 -1 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
317 IntOp \$6 \$6 + 1 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
318 StrCpy \$3 \$4 1 \$6 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
319 StrCmp \$3 '0' -2 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
320 StrCmp \$3 '' 0 +2 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
321 StrCpy \$4 0 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
322 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
323 StrCpy \$7 -1 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
324 IntOp \$7 \$7 + 1 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
325 StrCpy \$3 \$5 1 \$7 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
326 StrCmp \$3 '0' -2 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
327 StrCmp \$3 '' 0 +2 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
328 StrCpy \$5 0 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
329 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
330 StrCmp \$4 0 0 +2 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
331 StrCmp \$5 0 begin newer2 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
332 StrCmp \$5 0 newer1 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
333 IntCmp \$6 \$7 0 newer1 newer2 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
334 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
335 StrCpy \$4 '1\$4' |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
336 StrCpy \$5 '1\$5' |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
337 IntCmp \$4 \$5 begin newer2 newer1 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
338 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
339 equal: |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
340 StrCpy \$0 0 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
341 goto end |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
342 newer1: |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
343 StrCpy \$0 1 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
344 goto end |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
345 newer2: |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
346 StrCpy \$0 2 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
347 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
348 end: |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
349 Pop \$7 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
350 Pop \$6 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
351 Pop \$5 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
352 Pop \$4 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
353 Pop \$3 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
354 Pop \$2 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
355 Pop \$1 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
356 Exch \$0 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
357 FunctionEnd |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
358 !macroend |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
359 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
360 !insertmacro VersionCompare_ "un." |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
361 !insertmacro VersionCompare_ "" |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
362 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
363 !macro VersionCompare un _VER1 _VER2 _RESULT |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
364 Push '\${_VER1}' |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
365 Push '\${_VER2}' |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
366 Call \${un}VersionCompare_ |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
367 Pop '\${_RESULT}' |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
368 !macroend |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
369 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
370 ###################################################################### |
3453
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
371 ; custom options page functions |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
372 |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
373 Var InstallShortcuts |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
374 Var InstallShortcutsCtrl |
3458
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
375 Var RegisterOctaveFileType |
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
376 Var RegisterOctaveFileTypeCtrl |
3471
6a97f4d1dedb
installer: Add ref BLAS/OpenBLAS install option
John Donoghue <john.donoghue@ieee.org>
parents:
3458
diff
changeset
|
377 Var InstallBlasLibCtrl |
6a97f4d1dedb
installer: Add ref BLAS/OpenBLAS install option
John Donoghue <john.donoghue@ieee.org>
parents:
3458
diff
changeset
|
378 Var InstallBlasLib |
6591
2dfe73c0c492
* tools/makeinst-script.sh.in: add install system/software opengl option
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
379 Var InstallOpenGLCtrl |
2dfe73c0c492
* tools/makeinst-script.sh.in: add install system/software opengl option
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
380 Var InstallOpenGL |
3458
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
381 |
3453
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
382 Function octaveOptionsPage |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
383 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
384 # will append (Local) to reg key |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
385 \${If} \$MultiUser.InstallMode == "CurrentUser" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
386 StrCpy \$MultiUser.UninstallKey "\${PRODUCT_UNINST_KEY} (Local)" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
387 StrCpy \$MultiUser.Local " (Local)" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
388 \${Else} |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
389 StrCpy \$MultiUser.UninstallKey "\${PRODUCT_UNINST_KEY}" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
390 StrCpy \$MultiUser.Local "" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
391 \${EndIf} |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
392 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
393 Call CheckCurrVersion |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
394 |
3458
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
395 Push \$0 |
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
396 nsDialogs::Create 1018 |
3453
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
397 Pop \$0 |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
398 |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
399 \${If} \$0 == error |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
400 Abort |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
401 \${EndIf} |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
402 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
403 \${NSD_CreateCheckBox} 0 0 100% 12u "Create desktop shortcuts" |
3453
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
404 Pop \$InstallShortcutsCtrl |
4786
0c6d7d14a615
* tools/makeinst-script.sh.in: Set default option page values (Bug #54457)
John Donoghue
parents:
4767
diff
changeset
|
405 \${NSD_SetState} \$InstallShortcutsCtrl \$InstallShortcuts |
3453
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
406 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
407 \${NSD_CreateCheckBox} 0 20u 100% 12u "Register .m file type with Octave" |
3458
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
408 Pop \$RegisterOctaveFileTypeCtrl |
4786
0c6d7d14a615
* tools/makeinst-script.sh.in: Set default option page values (Bug #54457)
John Donoghue
parents:
4767
diff
changeset
|
409 \${NSD_SetState} \$RegisterOctaveFileTypeCtrl \$RegisterOctaveFileType |
3458
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
410 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
411 \${NSD_CreateLabel} 0 50u 110u 12u "BLAS library implementation:" |
3471
6a97f4d1dedb
installer: Add ref BLAS/OpenBLAS install option
John Donoghue <john.donoghue@ieee.org>
parents:
3458
diff
changeset
|
412 Pop \$0 |
6a97f4d1dedb
installer: Add ref BLAS/OpenBLAS install option
John Donoghue <john.donoghue@ieee.org>
parents:
3458
diff
changeset
|
413 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
414 \${NSD_CreateDropList} 100u 70u 100u 80u "" |
3471
6a97f4d1dedb
installer: Add ref BLAS/OpenBLAS install option
John Donoghue <john.donoghue@ieee.org>
parents:
3458
diff
changeset
|
415 Pop \$InstallBlasLibCtrl |
6591
2dfe73c0c492
* tools/makeinst-script.sh.in: add install system/software opengl option
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
416 |
2dfe73c0c492
* tools/makeinst-script.sh.in: add install system/software opengl option
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
417 \${NSD_CreateLabel} 0 90u 110u 12u "OpenGL implementation:" |
2dfe73c0c492
* tools/makeinst-script.sh.in: add install system/software opengl option
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
418 Pop \$0 |
2dfe73c0c492
* tools/makeinst-script.sh.in: add install system/software opengl option
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
419 |
2dfe73c0c492
* tools/makeinst-script.sh.in: add install system/software opengl option
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
420 \${NSD_CreateDropList} 100u 110u 100u 80u "" |
2dfe73c0c492
* tools/makeinst-script.sh.in: add install system/software opengl option
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
421 Pop \$InstallOpenGLCtrl |
3545
c21ca79d7980
Remove ENABLE_OPEN_BLAS from .mk files and use just to add openblass to the distribution
John Donoghue
parents:
3471
diff
changeset
|
422 EOF |
c21ca79d7980
Remove ENABLE_OPEN_BLAS from .mk files and use just to add openblass to the distribution
John Donoghue
parents:
3471
diff
changeset
|
423 # add option to install libopenblas if we have the dll present |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
424 if [ -e $OCTAVE_SOURCE/$OCTAVE_SUBDIR/bin/libopenblas.dll ]; then |
3545
c21ca79d7980
Remove ENABLE_OPEN_BLAS from .mk files and use just to add openblass to the distribution
John Donoghue
parents:
3471
diff
changeset
|
425 cat >> $OUTFILE << EOF |
3471
6a97f4d1dedb
installer: Add ref BLAS/OpenBLAS install option
John Donoghue <john.donoghue@ieee.org>
parents:
3458
diff
changeset
|
426 \${NSD_CB_AddString} \$InstallBlasLibCtrl "OpenBLAS" |
3545
c21ca79d7980
Remove ENABLE_OPEN_BLAS from .mk files and use just to add openblass to the distribution
John Donoghue
parents:
3471
diff
changeset
|
427 EOF |
c21ca79d7980
Remove ENABLE_OPEN_BLAS from .mk files and use just to add openblass to the distribution
John Donoghue
parents:
3471
diff
changeset
|
428 fi |
c21ca79d7980
Remove ENABLE_OPEN_BLAS from .mk files and use just to add openblass to the distribution
John Donoghue
parents:
3471
diff
changeset
|
429 cat >> $OUTFILE << EOF |
3570
c7725f722155
NSIS installer: use Open BLAS by default
John W. Eaton <jwe@octave.org>
parents:
3552
diff
changeset
|
430 \${NSD_CB_AddString} \$InstallBlasLibCtrl "Reference BLAS" |
c7725f722155
NSIS installer: use Open BLAS by default
John W. Eaton <jwe@octave.org>
parents:
3552
diff
changeset
|
431 EOF |
c7725f722155
NSIS installer: use Open BLAS by default
John W. Eaton <jwe@octave.org>
parents:
3552
diff
changeset
|
432 |
c7725f722155
NSIS installer: use Open BLAS by default
John W. Eaton <jwe@octave.org>
parents:
3552
diff
changeset
|
433 cat >> $OUTFILE << EOF |
c7725f722155
NSIS installer: use Open BLAS by default
John W. Eaton <jwe@octave.org>
parents:
3552
diff
changeset
|
434 \${NSD_CB_SelectString} \$InstallBlasLibCtrl "$DEFAULT_BLAS" |
3471
6a97f4d1dedb
installer: Add ref BLAS/OpenBLAS install option
John Donoghue <john.donoghue@ieee.org>
parents:
3458
diff
changeset
|
435 |
6591
2dfe73c0c492
* tools/makeinst-script.sh.in: add install system/software opengl option
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
436 ; add option for opengl |
2dfe73c0c492
* tools/makeinst-script.sh.in: add install system/software opengl option
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
437 \${NSD_CB_AddString} \$InstallOpenGLCtrl "System OpenGL" |
2dfe73c0c492
* tools/makeinst-script.sh.in: add install system/software opengl option
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
438 \${NSD_CB_AddString} \$InstallOpenGLCtrl "Software OpenGL" |
6592
9eff743a7de0
* tools/makeinst-script.sh.in: default to system opengl
John Donoghue <john.donoghue@ieee.org>
parents:
6591
diff
changeset
|
439 \${NSD_CB_SelectString} \$InstallOpenGLCtrl "System OpenGL" |
6591
2dfe73c0c492
* tools/makeinst-script.sh.in: add install system/software opengl option
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
440 |
3453
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
441 !insertmacro MUI_HEADER_TEXT "Install Options" "Choose options for installing" |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
442 nsDialogs::Show |
3458
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
443 Pop \$0 |
3453
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
444 FunctionEnd |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
445 |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
446 Function octaveOptionsLeave |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
447 \${NSD_GetState} \$InstallShortcutsCtrl \$InstallShortcuts |
3458
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
448 \${NSD_GetState} \$RegisterOctaveFileTypeCtrl \$RegisterOctaveFileType |
3471
6a97f4d1dedb
installer: Add ref BLAS/OpenBLAS install option
John Donoghue <john.donoghue@ieee.org>
parents:
3458
diff
changeset
|
449 \${DropList_GetCurSel} \$InstallBlasLibCtrl \$InstallBlasLib |
6591
2dfe73c0c492
* tools/makeinst-script.sh.in: add install system/software opengl option
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
450 \${DropList_GetCurSel} \$InstallOpenGLCtrl \$InstallOpenGL |
3453
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
451 FunctionEnd |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
452 |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
453 ###################################################################### |
6392
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
454 ; custom uninstall options page functions |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
455 |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
456 Var UninstallLocalPackages |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
457 Var UninstallLocalPackagesCtrl |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
458 Var UninstallUserSettings |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
459 Var UninstallUserSettingsCtrl |
6394
eb58a62c878e
* tools/makeinst-script.sh.in: use users appdir for removal of settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
6392
diff
changeset
|
460 #Var UninstallAppDirCtrl |
eb58a62c878e
* tools/makeinst-script.sh.in: use users appdir for removal of settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
6392
diff
changeset
|
461 Var UninstallAppDir |
6392
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
462 |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
463 Function un.octaveOptionsPage |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
464 |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
465 nsDialogs::Create 1018 |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
466 Pop \$0 |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
467 |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
468 \${If} \$0 == error |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
469 Abort |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
470 \${EndIf} |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
471 |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
472 \${NSD_CreateCheckBox} 0 0 100% 12u "Uninstall Local Packages" |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
473 Pop \$UninstallLocalPackagesCtrl |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
474 \${NSD_SetState} \$UninstallLocalPackagesCtrl \$UninstallLocalPackages |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
475 |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
476 \${NSD_CreateCheckBox} 0 20u 100% 12u "Remove user settings" |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
477 Pop \$UninstallUserSettingsCtrl |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
478 \${NSD_SetState} \$UninstallUserSettingsCtrl \$UninstallUserSettings |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
479 |
6394
eb58a62c878e
* tools/makeinst-script.sh.in: use users appdir for removal of settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
6392
diff
changeset
|
480 #\${NSD_CreateLabel} 0 40u 110u 12u "\$UninstallAppDir" |
eb58a62c878e
* tools/makeinst-script.sh.in: use users appdir for removal of settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
6392
diff
changeset
|
481 #Pop \$UninstallAppDirCtrl |
eb58a62c878e
* tools/makeinst-script.sh.in: use users appdir for removal of settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
6392
diff
changeset
|
482 |
6392
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
483 !insertmacro MUI_HEADER_TEXT "Uninstall Options" "Choose additional options for uninstalling" |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
484 nsDialogs::Show |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
485 Pop \$0 |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
486 FunctionEnd |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
487 |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
488 Function un.octaveOptionsLeave |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
489 \${NSD_GetState} \$UninstallLocalPackagesCtrl \$UninstallLocalPackages |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
490 \${NSD_GetState} \$UninstallUserSettingsCtrl \$UninstallUserSettings |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
491 FunctionEnd |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
492 |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
493 ###################################################################### |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
494 Function un.onInit |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
495 !insertmacro MULTIUSER_UNINIT |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
496 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
497 # find installer info |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
498 Push \$R0 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
499 uninst_check_installs: |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
500 Call un.FindThisUninstallReg |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
501 Pop \$R0 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
502 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
503 # if 0 it couldnt find us |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
504 StrCmp \$R0 0 0 uninst_check_local |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
505 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
506 \${if} \$MultiUser.Privileges == "Admin" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
507 # if admin, maybe was forced to admin from Add Remove Apps |
5421
020bb2fcd3e2
tools/makeinst-script.in.h: Change message on uninstallation error (bug #58320).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5420
diff
changeset
|
508 MessageBox MB_ICONEXCLAMATION|MB_OK "Could not find uninstallation information in registry.\$\nTry running the uninstaller from the start menu or from the installation folder \$\"\$INSTDIR\$\"." /SD IDOK |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
509 \${Else} |
5422
100b42124b66
* tools/makeinst-script.in.h: Revert part of 020bb2fcd3e2 (bug #58320).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5421
diff
changeset
|
510 MessageBox MB_ICONEXCLAMATION|MB_OK "Could not find uninstallation information in registry for \$(^Name) installed in \$\"\$INSTDIR\$\".\$\nCan not uninstall!" /SD IDOK |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
511 \${EndIf} |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
512 Abort |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
513 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
514 uninst_check_local: |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
515 # if 1 was local only |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
516 StrCmp \$R0 1 0 uninst_set_admin |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
517 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
518 Call un.MultiUser.InstallMode.CurrentUser |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
519 |
6394
eb58a62c878e
* tools/makeinst-script.sh.in: use users appdir for removal of settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
6392
diff
changeset
|
520 # store current user app data dir |
eb58a62c878e
* tools/makeinst-script.sh.in: use users appdir for removal of settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
6392
diff
changeset
|
521 StrCpy \$UninstallAppDir "\$APPDATA" |
eb58a62c878e
* tools/makeinst-script.sh.in: use users appdir for removal of settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
6392
diff
changeset
|
522 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
523 GoTo uninst_cont_un |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
524 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
525 uninst_set_admin: |
6394
eb58a62c878e
* tools/makeinst-script.sh.in: use users appdir for removal of settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
6392
diff
changeset
|
526 # store current user app data dir |
eb58a62c878e
* tools/makeinst-script.sh.in: use users appdir for removal of settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
6392
diff
changeset
|
527 Call un.MultiUser.InstallMode.CurrentUser |
eb58a62c878e
* tools/makeinst-script.sh.in: use users appdir for removal of settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
6392
diff
changeset
|
528 StrCpy \$UninstallAppDir "\$APPDATA" |
eb58a62c878e
* tools/makeinst-script.sh.in: use users appdir for removal of settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
6392
diff
changeset
|
529 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
530 # if 2, was a allusers install |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
531 Call un.MultiUser.InstallMode.AllUsers |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
532 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
533 uninst_cont_un: |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
534 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
535 \${If} \$MultiUser.InstallMode == "CurrentUser" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
536 StrCpy \$MultiUser.UninstallKey "\${PRODUCT_UNINST_KEY} (Local)" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
537 StrCpy \$MultiUser.Local " (Local)" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
538 \${Else} |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
539 StrCpy \$MultiUser.UninstallKey "\${PRODUCT_UNINST_KEY}" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
540 StrCpy \$MultiUser.Local "" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
541 \${EndIf} |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
542 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
543 Pop \$R0 |
6392
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
544 |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
545 ; set default uninstall options |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
546 StrCpy \$UninstallUserSettings \${BST_UNCHECKED} |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
547 StrCpy \$UninstallLocalPackages \${BST_CHECKED} |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
548 |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
549 ; process command line options |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
550 \${GetParameters} \$R0 |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
551 ClearErrors |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
552 \${GetOptions} "\$R0" "/UNINSTALL_LOCALPACKAGES=" \$0 |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
553 IfErrors un_no_local_packages_opt |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
554 \${If} \$0 == 0 |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
555 StrCpy \$UninstallLocalPackages \${BST_UNCHECKED} |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
556 \${EndIf} |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
557 un_no_local_packages_opt: |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
558 ClearErrors |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
559 \${GetOptions} "\$R0" "/UNINSTALL_USERSETTINGS=" \$0 |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
560 IfErrors un_no_user_settings_opt |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
561 \${If} \$0 == 1 |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
562 StrCpy \$UninstallUserSettings \${BST_CHECKED} |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
563 \${EndIf} |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
564 un_no_user_settings_opt: |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
565 ClearErrors |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
566 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
567 FunctionEnd |
3453
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
568 |
3358
8708b7d07795
makeinst-script.sh: Added checking for previous installation of Octave
Anirudha Bose <ani07nov@gmail.com>
parents:
3357
diff
changeset
|
569 Function .onInit |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
570 !insertmacro MULTIUSER_INIT |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
571 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
572 # will append (Local) to reg key |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
573 \${If} \$MultiUser.InstallMode == "CurrentUser" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
574 StrCpy \$MultiUser.UninstallKey "\${PRODUCT_UNINST_KEY} (Local)" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
575 StrCpy \$MultiUser.Local " (Local)" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
576 \${Else} |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
577 StrCpy \$MultiUser.UninstallKey "\${PRODUCT_UNINST_KEY}" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
578 StrCpy \$MultiUser.Local "" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
579 \${EndIf} |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
580 |
4786
0c6d7d14a615
* tools/makeinst-script.sh.in: Set default option page values (Bug #54457)
John Donoghue
parents:
4767
diff
changeset
|
581 ; set default options |
0c6d7d14a615
* tools/makeinst-script.sh.in: Set default option page values (Bug #54457)
John Donoghue
parents:
4767
diff
changeset
|
582 StrCpy \$InstallShortcuts \${BST_CHECKED} |
0c6d7d14a615
* tools/makeinst-script.sh.in: Set default option page values (Bug #54457)
John Donoghue
parents:
4767
diff
changeset
|
583 StrCpy \$RegisterOctaveFileType \${BST_CHECKED} |
0c6d7d14a615
* tools/makeinst-script.sh.in: Set default option page values (Bug #54457)
John Donoghue
parents:
4767
diff
changeset
|
584 StrCpy \$InstallBlasLib 0 |
6592
9eff743a7de0
* tools/makeinst-script.sh.in: default to system opengl
John Donoghue <john.donoghue@ieee.org>
parents:
6591
diff
changeset
|
585 StrCpy \$InstallOpenGL 0 |
4786
0c6d7d14a615
* tools/makeinst-script.sh.in: Set default option page values (Bug #54457)
John Donoghue
parents:
4767
diff
changeset
|
586 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
587 ; process command line options |
4845
4b11bbe7c8ff
nsis-installer: provide command line opyions for options page (Bug #54766)
John Donoghue
parents:
4808
diff
changeset
|
588 \${GetParameters} \$R0 |
4b11bbe7c8ff
nsis-installer: provide command line opyions for options page (Bug #54766)
John Donoghue
parents:
4808
diff
changeset
|
589 ClearErrors |
4b11bbe7c8ff
nsis-installer: provide command line opyions for options page (Bug #54766)
John Donoghue
parents:
4808
diff
changeset
|
590 \${GetOptions} "\$R0" "/REGISTER_FILE_TYPES=" \$0 |
4b11bbe7c8ff
nsis-installer: provide command line opyions for options page (Bug #54766)
John Donoghue
parents:
4808
diff
changeset
|
591 IfErrors no_register_opt |
4b11bbe7c8ff
nsis-installer: provide command line opyions for options page (Bug #54766)
John Donoghue
parents:
4808
diff
changeset
|
592 \${If} \$0 == 0 |
4b11bbe7c8ff
nsis-installer: provide command line opyions for options page (Bug #54766)
John Donoghue
parents:
4808
diff
changeset
|
593 StrCpy \$RegisterOctaveFileType \${BST_UNCHECKED} |
4b11bbe7c8ff
nsis-installer: provide command line opyions for options page (Bug #54766)
John Donoghue
parents:
4808
diff
changeset
|
594 \${EndIf} |
4b11bbe7c8ff
nsis-installer: provide command line opyions for options page (Bug #54766)
John Donoghue
parents:
4808
diff
changeset
|
595 no_register_opt: |
4b11bbe7c8ff
nsis-installer: provide command line opyions for options page (Bug #54766)
John Donoghue
parents:
4808
diff
changeset
|
596 ClearErrors |
4b11bbe7c8ff
nsis-installer: provide command line opyions for options page (Bug #54766)
John Donoghue
parents:
4808
diff
changeset
|
597 \${GetOptions} "\$R0" "/INSTALL_SHORTCUTS=" \$0 |
4b11bbe7c8ff
nsis-installer: provide command line opyions for options page (Bug #54766)
John Donoghue
parents:
4808
diff
changeset
|
598 IfErrors no_shortcuts_opt |
4b11bbe7c8ff
nsis-installer: provide command line opyions for options page (Bug #54766)
John Donoghue
parents:
4808
diff
changeset
|
599 \${If} \$0 == 0 |
4b11bbe7c8ff
nsis-installer: provide command line opyions for options page (Bug #54766)
John Donoghue
parents:
4808
diff
changeset
|
600 StrCpy \$InstallShortcuts \${BST_UNCHECKED} |
4b11bbe7c8ff
nsis-installer: provide command line opyions for options page (Bug #54766)
John Donoghue
parents:
4808
diff
changeset
|
601 \${EndIf} |
4b11bbe7c8ff
nsis-installer: provide command line opyions for options page (Bug #54766)
John Donoghue
parents:
4808
diff
changeset
|
602 no_shortcuts_opt: |
4b11bbe7c8ff
nsis-installer: provide command line opyions for options page (Bug #54766)
John Donoghue
parents:
4808
diff
changeset
|
603 ClearErrors |
4b11bbe7c8ff
nsis-installer: provide command line opyions for options page (Bug #54766)
John Donoghue
parents:
4808
diff
changeset
|
604 |
4120
f2d7bb7777da
installer: dont warn on experimental for win10 (Bug #47576)
John Donoghue
parents:
4075
diff
changeset
|
605 Call CheckWinVer |
5549
37a432f5f0eb
* tools/makeinst-script.sh.in: disable java check (Bug #59215)
John Donoghue <john.donoghue@ieee.org>
parents:
5539
diff
changeset
|
606 ; Bug #59215 for now have disabled jdk detection |
37a432f5f0eb
* tools/makeinst-script.sh.in: disable java check (Bug #59215)
John Donoghue <john.donoghue@ieee.org>
parents:
5539
diff
changeset
|
607 ; \${If} @ENABLE_JAVA@ == yes |
37a432f5f0eb
* tools/makeinst-script.sh.in: disable java check (Bug #59215)
John Donoghue <john.donoghue@ieee.org>
parents:
5539
diff
changeset
|
608 ; Call CheckJRE |
37a432f5f0eb
* tools/makeinst-script.sh.in: disable java check (Bug #59215)
John Donoghue <john.donoghue@ieee.org>
parents:
5539
diff
changeset
|
609 ; \${EndIf} |
3358
8708b7d07795
makeinst-script.sh: Added checking for previous installation of Octave
Anirudha Bose <ani07nov@gmail.com>
parents:
3357
diff
changeset
|
610 InitPluginsDir |
8708b7d07795
makeinst-script.sh: Added checking for previous installation of Octave
Anirudha Bose <ani07nov@gmail.com>
parents:
3357
diff
changeset
|
611 FunctionEnd |
3357
456b6e533054
makeinst-script.sh: Added checking for Java Runtime Environment
Anirudha Bose <ani07nov@gmail.com>
parents:
3356
diff
changeset
|
612 |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
613 ; file section |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
614 Section "MainFiles" |
3453
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
615 |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
616 ; include the README |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
617 SetOutPath "\$INSTDIR" |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
618 File "$OCTAVE_SOURCE/README.html" |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
619 |
5958
ea224bb389e3
NSIS installer: Use launcher executables.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5549
diff
changeset
|
620 ; include octave-launch, octave.vbs and other scripts |
3717
70480095b6ed
Use a bat file to run octave in windows (Bug #43164)
John Donoghue
parents:
3686
diff
changeset
|
621 SetOutPath "\$INSTDIR" |
3817
6daa158a7018
nsis installer: use octave.vbs as laucher (Bug #41074)
John Donoghue <john.donoghue@ieee.org>
parents:
3784
diff
changeset
|
622 File "$OCTAVE_SOURCE/octave.vbs" |
4028
8803dfa40236
nsis installer: set directory to userprofile on startof octave from installer (Bug #45899)
John Donoghue
parents:
3963
diff
changeset
|
623 File "$OCTAVE_SOURCE/octave-firsttime.vbs" |
5958
ea224bb389e3
NSIS installer: Use launcher executables.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5549
diff
changeset
|
624 File "$OCTAVE_SOURCE/octave-launch.exe" |
ea224bb389e3
NSIS installer: Use launcher executables.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5549
diff
changeset
|
625 File "$OCTAVE_SOURCE/octave-launch-firsttime.exe" |
4254
7f2d5c8c4491
installer: update fc cache during install (Bug #45458)
John D
parents:
4186
diff
changeset
|
626 File "$OCTAVE_SOURCE/fc_update.bat" |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
627 File "$OCTAVE_SOURCE/post-install.bat" |
4254
7f2d5c8c4491
installer: update fc cache during install (Bug #45458)
John D
parents:
4186
diff
changeset
|
628 |
4602
a487b12dc08f
* tools/makeinst-script.sh.in: include HG-ID in installed files
John Donoghue
parents:
4471
diff
changeset
|
629 File "$OCTAVE_SOURCE/HG-ID" |
a487b12dc08f
* tools/makeinst-script.sh.in: include HG-ID in installed files
John Donoghue
parents:
4471
diff
changeset
|
630 |
3453
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
631 ; distro files |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
632 EOF |
3963
9d402d735dd1
nsis-installer: add bash window menu if devel tools enabled
John Donoghue
parents:
3956
diff
changeset
|
633 if [ -f $OCTAVE_SOURCE/cmdshell.bat ]; then |
9d402d735dd1
nsis-installer: add bash window menu if devel tools enabled
John Donoghue
parents:
3956
diff
changeset
|
634 echo "File '$OCTAVE_SOURCE/cmdshell.bat'" >> $OUTFILE |
9d402d735dd1
nsis-installer: add bash window menu if devel tools enabled
John Donoghue
parents:
3956
diff
changeset
|
635 fi |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
636 |
4254
7f2d5c8c4491
installer: update fc cache during install (Bug #45458)
John D
parents:
4186
diff
changeset
|
637 |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
638 # insert the files |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
639 IFS=$'\n' |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
640 for f in $(find $OCTAVE_SOURCE -type d -printf "%P\n"); do |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
641 winf=`echo $f | sed 's,/,\\\\,g'` |
3431
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3430
diff
changeset
|
642 echo " CreateDirectory \"\$INSTDIR\\$winf\"" >> $OUTFILE |
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3430
diff
changeset
|
643 echo " SetOutPath \"\$INSTDIR\\$winf\"" >> $OUTFILE |
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3430
diff
changeset
|
644 find "$OCTAVE_SOURCE/$f" -maxdepth 1 -type f -printf " File \"%p\"\n" >> $OUTFILE |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
645 done |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
646 |
3431
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3430
diff
changeset
|
647 cat >> $OUTFILE << EOF |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
648 |
3409
5e77c5fc91ed
qt: build translations in cross build and install
John Donoghue <john.donoghue@ieee.org>
parents:
3406
diff
changeset
|
649 ; add qt.conf |
5e77c5fc91ed
qt: build translations in cross build and install
John Donoghue <john.donoghue@ieee.org>
parents:
3406
diff
changeset
|
650 Push \$0 |
5e77c5fc91ed
qt: build translations in cross build and install
John Donoghue <john.donoghue@ieee.org>
parents:
3406
diff
changeset
|
651 \${StrRep} '\$0' '\$INSTDIR' '\\' '/' |
5134
0ff5f24c0862
* tools/makeinst-script.sh.in: update qt prefix and translations dir in installer qt.conf
John Donoghue
parents:
5125
diff
changeset
|
652 WriteINIStr "\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\qt.conf" "Paths" "Prefix" "\$0/$OCTAVE_SUBDIR" |
5135
6836b2f08479
* tools/makeinst-script.sh.in: expand qt.conf to include all installed qt dirs
John Donoghue
parents:
5134
diff
changeset
|
653 WriteINIStr "\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\qt.conf" "Paths" "Documentation" "${QT_SUBDIR}doc" |
6836b2f08479
* tools/makeinst-script.sh.in: expand qt.conf to include all installed qt dirs
John Donoghue
parents:
5134
diff
changeset
|
654 WriteINIStr "\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\qt.conf" "Paths" "Headers" "${QT_SUBDIR}include" |
6836b2f08479
* tools/makeinst-script.sh.in: expand qt.conf to include all installed qt dirs
John Donoghue
parents:
5134
diff
changeset
|
655 WriteINIStr "\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\qt.conf" "Paths" "Libraries" "${QT_SUBDIR}lib" |
6836b2f08479
* tools/makeinst-script.sh.in: expand qt.conf to include all installed qt dirs
John Donoghue
parents:
5134
diff
changeset
|
656 WriteINIStr "\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\qt.conf" "Paths" "Plugins" "${QT_SUBDIR}plugins" |
5134
0ff5f24c0862
* tools/makeinst-script.sh.in: update qt prefix and translations dir in installer qt.conf
John Donoghue
parents:
5125
diff
changeset
|
657 WriteINIStr "\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\qt.conf" "Paths" "Translations" "${QT_SUBDIR}translations" |
3409
5e77c5fc91ed
qt: build translations in cross build and install
John Donoghue <john.donoghue@ieee.org>
parents:
3406
diff
changeset
|
658 Pop \$0 |
4254
7f2d5c8c4491
installer: update fc cache during install (Bug #45458)
John D
parents:
4186
diff
changeset
|
659 |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
660 ; run post-install script |
4258 | 661 GetFullPathName /SHORT \$1 \$INSTDIR |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
662 DetailPrint "Running post install script (May take a while) ..." |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
663 ; run in hidden console window |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
664 nsExec::Exec /TIMEOUT=90000 '"\$1\\post-install.bat"' |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
665 Pop \$0 |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
666 SectionEnd |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
667 |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
668 Section make_uninstaller |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
669 ; Write the uninstall keys for Windows |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
670 SetOutPath "\$INSTDIR" |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
671 WriteRegStr \${PRODUCT_UNINST_ROOT_KEY} "\$MultiUser.UninstallKey" "DisplayName" "Octave $VERSION\$MultiUser.Local" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
672 WriteRegStr \${PRODUCT_UNINST_ROOT_KEY} "\$MultiUser.UninstallKey" "DisplayVersion" "$VERSION" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
673 WriteRegStr \${PRODUCT_UNINST_ROOT_KEY} "\$MultiUser.UninstallKey" "DisplayIcon" "\$INSTDIR\\$ICON" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
674 WriteRegStr \${PRODUCT_UNINST_ROOT_KEY} "\$MultiUser.UninstallKey" "UninstallString" "\$\"\$INSTDIR\\uninstall.exe\$\" /\$MultiUser.InstallMode" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
675 WriteRegStr \${PRODUCT_UNINST_ROOT_KEY} "\$MultiUser.UninstallKey" "QuietUninstallString" "\$\"\$INSTDIR\\uninstall.exe\$\" /\$MultiUser.InstallMode /S" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
676 WriteRegDWORD \${PRODUCT_UNINST_ROOT_KEY} "\$MultiUser.UninstallKey" "NoModify" 1 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
677 WriteRegDWORD \${PRODUCT_UNINST_ROOT_KEY} "\$MultiUser.UninstallKey" "NoRepair" 1 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
678 WriteRegStr \${PRODUCT_UNINST_ROOT_KEY} "\$MultiUser.UninstallKey" "Publisher" "\${APP_NAME}" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
679 WriteRegDWORD \${PRODUCT_UNINST_ROOT_KEY} "\$MultiUser.UninstallKey" "EstimatedSize" $SIZE |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
680 WriteRegStr \${PRODUCT_UNINST_ROOT_KEY} "\$MultiUser.UninstallKey" "InstallMode" "\$MultiUser.InstallMode" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
681 WriteRegStr \${PRODUCT_UNINST_ROOT_KEY} "\$MultiUser.UninstallKey" "InstallLocation" "\$INSTDIR" |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
682 WriteUninstaller "uninstall.exe" |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
683 SectionEnd |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
684 |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
685 ; start menu (currently hardcoded) |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
686 Section "Shortcuts" |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
687 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
688 # will append (Local) to menus in local mode |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
689 CreateDirectory "\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
690 CreateShortCut "\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local\\Uninstall.lnk" "\$INSTDIR\\uninstall.exe" "" "\$INSTDIR\\uninstall.exe" 0 |
3423
c8e055d83b9f
Set start directory to user home (Bug #41220)
John D <john.donoghue@ieee.org>
parents:
3422
diff
changeset
|
691 SetOutPath "%USERPROFILE%" |
5958
ea224bb389e3
NSIS installer: Use launcher executables.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5549
diff
changeset
|
692 CreateShortCut "\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local\\Octave-$VERSION\$MultiUser.Local (CLI).lnk" "\$INSTDIR\\octave-launch.exe" "--no-gui" "\$INSTDIR\\$ICON" 0 SW_SHOWMINIMIZED |
ea224bb389e3
NSIS installer: Use launcher executables.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5549
diff
changeset
|
693 CreateShortCut "\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local\\Octave-$VERSION\$MultiUser.Local (GUI).lnk" "\$INSTDIR\\octave-launch.exe" "--gui" "\$INSTDIR\\$ICON" 0 SW_SHOWMINIMIZED |
3384
0de28586712a
installer: Change gui shortcut path to libexec installed path
John Donoghue <john.donoghue@ieee.org>
parents:
3367
diff
changeset
|
694 SetOutPath "\$INSTDIR" |
4176
a543952ed731
set usermodelappid for octave-gui shortcut (Bug #47527)
John Donoghue
parents:
4173
diff
changeset
|
695 |
a543952ed731
set usermodelappid for octave-gui shortcut (Bug #47527)
John Donoghue
parents:
4173
diff
changeset
|
696 ; fix the shortcuts for appid |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
697 ; run in hidden console window |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
698 nsExec::Exec /TIMEOUT=30000 '"\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\win7appid.exe" "\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local\\Octave-$VERSION\$MultiUser.Local (GUI).lnk" "gnu.octave.$VERSION"' |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
699 Pop \$0 |
3367
cfcbe03c9160
installer: Enable documentation build and add to installer.
John Donoghue <john.donoghue@ieee.org>
parents:
3366
diff
changeset
|
700 EOF |
3963
9d402d735dd1
nsis-installer: add bash window menu if devel tools enabled
John Donoghue
parents:
3956
diff
changeset
|
701 # shortcut for cmd win |
9d402d735dd1
nsis-installer: add bash window menu if devel tools enabled
John Donoghue
parents:
3956
diff
changeset
|
702 if [ -f $OCTAVE_SOURCE/cmdshell.bat ]; then |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
703 echo "CreateShortCut '\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local\\Bash Shell.lnk' '\$INSTDIR\\cmdshell.bat' '' '' 0" >> $OUTFILE |
3963
9d402d735dd1
nsis-installer: add bash window menu if devel tools enabled
John Donoghue
parents:
3956
diff
changeset
|
704 fi |
5470 | 705 if [ -e $OCTAVE_SOURCE/$OCTAVE_SUBDIR/bin/blas_switch.exe ]; then |
5536
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
706 cat >> $OUTFILE << EOF |
5539
fa6fca3c12d7
* tools/makeinst-script.sh.in: rename blas switch shortcut to BLAS Switcher
John Donoghue <john.donoghue@ieee.org>
parents:
5536
diff
changeset
|
707 CreateShortCut '\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local\\BLAS Switcher.lnk' '\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\blas_switch.exe' '' '' 0 |
5536
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
708 \${If} \$MultiUser.InstallMode != "CurrentUser" |
5539
fa6fca3c12d7
* tools/makeinst-script.sh.in: rename blas switch shortcut to BLAS Switcher
John Donoghue <john.donoghue@ieee.org>
parents:
5536
diff
changeset
|
709 Push '\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local\\BLAS Switcher.lnk' |
5536
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
710 Call ShellLinkSetRunAs |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
711 Pop \$0 |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
712 \${EndIf} |
f7f10f198735
Set blas switch shortcut to run as admin whe installed for all users (Bug #59118)
John Donoghue <john.donoghue@ieee.org>
parents:
5470
diff
changeset
|
713 EOF |
5470 | 714 fi |
6582 | 715 if [ -e $OCTAVE_SOURCE/$OCTAVE_SUBDIR/bin/opengl_switch.exe ]; then |
716 cat >> $OUTFILE << EOF | |
717 CreateShortCut '\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local\\OpenGL Switcher.lnk' '\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\opengl_switch.exe' '' '' 0 | |
718 \${If} \$MultiUser.InstallMode != "CurrentUser" | |
719 Push '\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local\\OpenGL Switcher.lnk' | |
720 Call ShellLinkSetRunAs | |
721 Pop \$0 | |
722 \${EndIf} | |
723 EOF | |
724 fi | |
725 | |
3367
cfcbe03c9160
installer: Enable documentation build and add to installer.
John Donoghue <john.donoghue@ieee.org>
parents:
3366
diff
changeset
|
726 # if we have documentation files, create shortcuts |
4808
adc0217b36c0
* tools/makeinst-script.sh.in: update doc paths for msys2 /mingwXX
John Donoghue
parents:
4793
diff
changeset
|
727 if [ -d $OCTAVE_SOURCE/$OCTAVE_SUBDIR/share/doc/octave ]; then |
3431
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3430
diff
changeset
|
728 cat >> $OUTFILE << EOF |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
729 CreateDirectory "\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local\\Documentation" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
730 CreateShortCut "\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local\\Documentation\\Octave C++ Classes (PDF).lnk" "\$INSTDIR\\$OCTAVE_SUBDIR\\share\\doc\\octave\\liboctave.pdf" "" "" 0 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
731 CreateShortCut "\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local\\Documentation\\Octave C++ Classes (HTML).lnk" "\$INSTDIR\\$OCTAVE_SUBDIR\\share\\doc\\octave\\liboctave.html\\index.html" "" "" 0 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
732 CreateShortCut "\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local\\Documentation\\Octave (PDF).lnk" "\$INSTDIR\\$OCTAVE_SUBDIR\\share\\doc\\octave\\octave.pdf" "" "" 0 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
733 CreateShortCut "\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local\\Documentation\\Octave (HTML).lnk" "\$INSTDIR\\$OCTAVE_SUBDIR\\share\\doc\\octave\\octave.html\\index.html" "" "" 0 |
3367
cfcbe03c9160
installer: Enable documentation build and add to installer.
John Donoghue <john.donoghue@ieee.org>
parents:
3366
diff
changeset
|
734 EOF |
cfcbe03c9160
installer: Enable documentation build and add to installer.
John Donoghue <john.donoghue@ieee.org>
parents:
3366
diff
changeset
|
735 fi |
cfcbe03c9160
installer: Enable documentation build and add to installer.
John Donoghue <john.donoghue@ieee.org>
parents:
3366
diff
changeset
|
736 |
3431
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3430
diff
changeset
|
737 cat >> $OUTFILE << EOF |
3453
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
738 |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
739 \${If} \$InstallShortcuts == \${BST_CHECKED} |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
740 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
741 ; get latest octave and create shortcuts to it |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
742 Push \$R0 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
743 Push \$R1 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
744 Push \$R2 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
745 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
746 Call GetLatestOctave |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
747 Pop \$R1 ; Ver |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
748 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
749 ; if no version found - need set INST DIR and VER will use |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
750 StrCmp \$R1 "" set_ver_str |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
751 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
752 ClearErrors |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
753 ; valid install found - get info from registry |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
754 ReadRegStr \$R0 SHCTX "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Octave-\$R1" InstallLocation" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
755 IfErrors sc_no_install_path |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
756 StrCmp \$R0 "" sc_no_install_path sc_install_path |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
757 sc_no_install_path: |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
758 # make dir from installer path |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
759 ReadRegStr \$R0 SHCTX "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Octave-\$R1" "UninstallString" |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
760 \${GetParent} \$R0 \$R0 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
761 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
762 sc_install_path: |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
763 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
764 # remove any '"' in our path |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
765 \${DequoteString} \$R0 \$R0 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
766 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
767 ReadRegStr \$R2 SHCTX "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Octave-\$R1" "DisplayIcon" |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
768 GoTo have_ver_str |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
769 set_ver_str: |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
770 StrCpy \$R1 "$VERSION" |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
771 StrCpy \$R0 "\$INSTDIR" |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
772 StrCpy \$R2 "\$INSTDIR\\$ICON" |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
773 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
774 have_ver_str: |
3453
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
775 SetOutPath "%USERPROFILE%" |
5958
ea224bb389e3
NSIS installer: Use launcher executables.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5549
diff
changeset
|
776 CreateShortCut "\$desktop\\GNU Octave\$MultiUser.Local (CLI).lnk" "\$R0\\octave-launch.exe" "--no-gui" "\$R2" 0 SW_SHOWMINIMIZED |
ea224bb389e3
NSIS installer: Use launcher executables.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5549
diff
changeset
|
777 CreateShortCut "\$desktop\\GNU Octave\$MultiUser.Local (GUI).lnk" "\$R0\\octave-launch.exe" "--gui" "\$R2" 0 SW_SHOWMINIMIZED |
4186
393571034f24
* tools/makeinst-script.sh.in: set appid of desktop (GUI).lnk
John D
parents:
4176
diff
changeset
|
778 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
779 nsExec::Exec /TIMEOUT=30000 '"\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\win7appid.exe" "\$desktop\\GNU Octave\$MultiUser.Local (GUI).lnk" "gnu.octave.\$R1"' |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
780 Pop \$0 |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
781 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
782 Pop \$R2 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
783 Pop \$R1 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
784 Pop \$R0 |
3453
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
785 \${Endif} |
70b110956a4e
nsis-installer: Use custom page for shortcuts and install for all users.
John Donoghue <john.donoghue@ieee.org>
parents:
3431
diff
changeset
|
786 |
3471
6a97f4d1dedb
installer: Add ref BLAS/OpenBLAS install option
John Donoghue <john.donoghue@ieee.org>
parents:
3458
diff
changeset
|
787 ; BLAS set up |
6a97f4d1dedb
installer: Add ref BLAS/OpenBLAS install option
John Donoghue <john.donoghue@ieee.org>
parents:
3458
diff
changeset
|
788 \${If} \$InstallBlasLib == 1 |
3570
c7725f722155
NSIS installer: use Open BLAS by default
John W. Eaton <jwe@octave.org>
parents:
3552
diff
changeset
|
789 ; Reference BLAS |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
790 CopyFiles /SILENT "\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\librefblas.dll" "\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\libblas.dll" |
3570
c7725f722155
NSIS installer: use Open BLAS by default
John W. Eaton <jwe@octave.org>
parents:
3552
diff
changeset
|
791 \${Else} |
3471
6a97f4d1dedb
installer: Add ref BLAS/OpenBLAS install option
John Donoghue <john.donoghue@ieee.org>
parents:
3458
diff
changeset
|
792 ; OpenBLAS |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
793 CopyFiles /SILENT "\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\libopenblas.dll" "\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\libblas.dll" |
3471
6a97f4d1dedb
installer: Add ref BLAS/OpenBLAS install option
John Donoghue <john.donoghue@ieee.org>
parents:
3458
diff
changeset
|
794 \${EndIf} |
6a97f4d1dedb
installer: Add ref BLAS/OpenBLAS install option
John Donoghue <john.donoghue@ieee.org>
parents:
3458
diff
changeset
|
795 |
6591
2dfe73c0c492
* tools/makeinst-script.sh.in: add install system/software opengl option
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
796 ; OpenGL set up |
2dfe73c0c492
* tools/makeinst-script.sh.in: add install system/software opengl option
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
797 \${If} \$InstallOpenGL == 0 |
2dfe73c0c492
* tools/makeinst-script.sh.in: add install system/software opengl option
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
798 ; use system opengl - move opengl to backup |
2dfe73c0c492
* tools/makeinst-script.sh.in: add install system/software opengl option
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
799 CopyFiles /SILENT "\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\opengl32.dll" "\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\opengl32.bak" |
2dfe73c0c492
* tools/makeinst-script.sh.in: add install system/software opengl option
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
800 Delete "\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\opengl32.dll" |
2dfe73c0c492
* tools/makeinst-script.sh.in: add install system/software opengl option
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
801 \${EndIf} |
2dfe73c0c492
* tools/makeinst-script.sh.in: add install system/software opengl option
John Donoghue <john.donoghue@ieee.org>
parents:
6582
diff
changeset
|
802 |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
803 SectionEnd |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
804 |
3458
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
805 Section "FileTypeRego" |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
806 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
807 WriteRegStr SHCTX "Software\\Classes\\Octave.Document.$VERSION" "FriendlyAppName" "GNU Octave $VERSION" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
808 WriteRegStr SHCTX "Software\\Classes\\Octave.Document.$VERSION\\DefaultIcon" "" "\$INSTDIR\\$ICON" |
5958
ea224bb389e3
NSIS installer: Use launcher executables.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5549
diff
changeset
|
809 WriteRegStr SHCTX "Software\\Classes\\Octave.Document.$VERSION\\shell\\open\\command" "" "\$\\"\$INSTDIR\\octave-launch.exe\$\\" --gui --persist --eval \$\\"edit '%1'\$\\"" |
3458
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
810 |
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
811 \${If} \$RegisterOctaveFileType == \${BST_CHECKED} |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
812 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
813 ReadRegStr \$0 SHCTX "Software\\Classes\\.m" "" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
814 StrCmp "\$0" "" ctx_no_back_type |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
815 WriteRegStr SHCTX "Software\\Classes\\.m" "backup_val" "\$0" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
816 ctx_no_back_type: |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
817 WriteRegStr SHCTX "Software\\Classes\\.m" "" "Octave.Document.$VERSION" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
818 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
819 WriteRegDWORD \${PRODUCT_UNINST_ROOT_KEY} "\$MultiUser.UninstallKey" "RegisteredFileType" 1 |
3458
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
820 \${EndIf} |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
821 |
3458
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
822 SectionEnd |
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
823 |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
824 Section "Uninstall" |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
825 |
6392
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
826 ; remove user uninstall stuff if options chosen |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
827 \${If} \$UninstallLocalPackages == 1 |
6394
eb58a62c878e
* tools/makeinst-script.sh.in: use users appdir for removal of settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
6392
diff
changeset
|
828 \${If} \${FileExists} "\$UninstallAppDir\\octave\\api-v$OCTAVE_API_VERSION" |
eb58a62c878e
* tools/makeinst-script.sh.in: use users appdir for removal of settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
6392
diff
changeset
|
829 RMDir /r "\$UninstallAppDir\\octave\\api-v$OCTAVE_API_VERSION" |
6392
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
830 \${EndIf} |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
831 ClearErrors |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
832 \${EndIf} |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
833 |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
834 \${If} \$UninstallUserSettings == 1 |
6394
eb58a62c878e
* tools/makeinst-script.sh.in: use users appdir for removal of settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
6392
diff
changeset
|
835 \${If} \${FileExists} "\$UninstallAppDir\\octave" |
eb58a62c878e
* tools/makeinst-script.sh.in: use users appdir for removal of settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
6392
diff
changeset
|
836 Delete "\$UninstallAppDir\\octave\\octave-gui.ini" |
eb58a62c878e
* tools/makeinst-script.sh.in: use users appdir for removal of settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
6392
diff
changeset
|
837 Delete "\$UninstallAppDir\\octave\\octave-doc-bookmarks.xbel" |
eb58a62c878e
* tools/makeinst-script.sh.in: use users appdir for removal of settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
6392
diff
changeset
|
838 Delete "\$UninstallAppDir\\octave\\history" |
eb58a62c878e
* tools/makeinst-script.sh.in: use users appdir for removal of settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
6392
diff
changeset
|
839 RMDir "\$UninstallAppDir\\octave" |
6392
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
840 \${EndIf} |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
841 ClearErrors |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
842 \${EndIf} |
8fe292548edf
Add uninstall options to remove local packages and settings (Bug #62352)
John Donoghue <john.donoghue@ieee.org>
parents:
5958
diff
changeset
|
843 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
844 ReadRegDWORD \$0 \${PRODUCT_UNINST_ROOT_KEY} "\$MultiUser.UninstallKey" "RegisteredFileType" |
3458
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
845 IfErrors not_registered_file |
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
846 |
4255
ee1ae5d1fd88
installer: dont remove file association if is not for installed octave
John D
parents:
4254
diff
changeset
|
847 ; only try remove if is set to our version of octave |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
848 ReadRegStr \$0 SHCTX "Software\\Classes\\.m" "" |
4255
ee1ae5d1fd88
installer: dont remove file association if is not for installed octave
John D
parents:
4254
diff
changeset
|
849 StrCmp \$0 "Octave.Document.$VERSION" 0 not_registered_file |
ee1ae5d1fd88
installer: dont remove file association if is not for installed octave
John D
parents:
4254
diff
changeset
|
850 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
851 ReadRegStr \$0 SHCTX "Software\\Classes\\.m" "backup_val" |
3458
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
852 IfErrors not_backup_file |
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
853 |
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
854 # retore backup |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
855 WriteRegStr SHCTX "Software\\Classes\\.m" "" "\$0" |
3458
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
856 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
857 DeleteRegValue SHCTX "Software\\Classes\\.m" "backup_val" |
3458
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
858 |
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
859 ; dont delete .m if just restored backup |
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
860 Goto not_registered_file |
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
861 not_backup_file: |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
862 DeleteRegValue SHCTX "Software\\Classes" ".m" |
3458
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
863 |
608931797a53
installer: Add .m association to Octave
John Donoghue <john.donoghue@ieee.org>
parents:
3453
diff
changeset
|
864 not_registered_file: |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
865 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
866 DeleteRegKey SHCTX "Software\\Classes\\Octave.Document.$VERSION" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
867 DeleteRegKey \${PRODUCT_UNINST_ROOT_KEY} "\$MultiUser.UninstallKey" |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
868 |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
869 ; Remove shortcuts |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
870 Delete "\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local\\Documentation\\*.*" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
871 RMDir "\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local\\Documentation" |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
872 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
873 Delete "\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local\\*.*" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
874 RMDir "\$SMPROGRAMS\\GNU Octave $VERSION\$MultiUser.Local" |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
875 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
876 ; TODO: only delete if no other version of octave available |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
877 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
878 Push \$R0 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
879 Push \$R1 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
880 Push \$R2 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
881 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
882 Call un.GetLatestOctave |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
883 Pop \$R1 ; Ver |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
884 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
885 ; no installs detected - remove shortcuts |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
886 StrCmp \$R1 "" remove_desktop_shortcuts |
3367
cfcbe03c9160
installer: Enable documentation build and add to installer.
John Donoghue <john.donoghue@ieee.org>
parents:
3366
diff
changeset
|
887 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
888 ClearErrors |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
889 ; if install detected, get the path and icon |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
890 ReadRegStr \$R0 SHCTX "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Octave-\$R1" "InstallLocation" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
891 IfErrors no_install_path |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
892 StrCmp \$R0 "" no_install_path install_path |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
893 no_install_path: |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
894 # old installers uninstall string was just the name of the installer, so try make path from that |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
895 ReadRegStr \$R0 SHCTX "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Octave-\$R1" "UninstallString" |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
896 \${GetParent} \$R0 \$R0 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
897 install_path: |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
898 ClearErrors |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
899 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
900 # remove any '"' in our path |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
901 \${un.DequoteString} \$R0 \$R0 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
902 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
903 StrCmp \$R0 "" remove_desktop_shortcuts |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
904 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
905 ReadRegStr \$R2 SHCTX "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Octave-\$R1" "DisplayIcon" |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
906 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
907 IfFileExists "\$desktop\\GNU Octave\$MultiUser.Local (CLI).lnk" 0 check_gui_shortcut |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
908 SetOutPath "%USERPROFILE%" |
5958
ea224bb389e3
NSIS installer: Use launcher executables.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5549
diff
changeset
|
909 CreateShortCut "\$desktop\\GNU Octave\$MultiUser.Local (CLI).lnk" "\$R0\\octave-launch.exe" "--no-gui" "\$R2" 0 SW_SHOWMINIMIZED |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
910 |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
911 check_gui_shortcut: |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
912 IfFileExists "\$desktop\\GNU Octave\$MultiUser.Local (GUI).lnk" 0 done_remove_desktop_shortcuts |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
913 SetOutPath "%USERPROFILE%" |
5958
ea224bb389e3
NSIS installer: Use launcher executables.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5549
diff
changeset
|
914 CreateShortCut "\$desktop\\GNU Octave\$MultiUser.Local (GUI).lnk" "\$R0\\octave-launch.exe" "--gui" "\$R2" 0 SW_SHOWMINIMIZED |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
915 nsExec::Exec /TIMEOUT=30000 '"\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\win7appid.exe" "\$desktop\\GNU Octave\$MultiUser.Local (GUI).lnk" "gnu.octave.\$R1"' |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
916 Pop \$0 |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
917 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
918 GoTo done_remove_desktop_shortcuts |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
919 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
920 remove_desktop_shortcuts: |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
921 Delete "\$desktop\\GNU Octave\$MultiUser.Local (CLI).lnk" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
922 Delete "\$desktop\\GNU Octave\$MultiUser.Local (GUI).lnk" |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
923 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
924 done_remove_desktop_shortcuts: |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
925 Pop \$R2 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
926 Pop \$R1 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
927 Pop \$R0 |
3409
5e77c5fc91ed
qt: build translations in cross build and install
John Donoghue <john.donoghue@ieee.org>
parents:
3406
diff
changeset
|
928 |
5e77c5fc91ed
qt: build translations in cross build and install
John Donoghue <john.donoghue@ieee.org>
parents:
3406
diff
changeset
|
929 ; delete generated qt.conf file |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
930 Delete "\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\qt.conf" |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
931 EOF |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
932 |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
933 # insert dir list (backwards order) for uninstall files |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
934 for f in $(find $OCTAVE_SOURCE -depth -type d -printf "%P\n"); do |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
935 winf=`echo $f | sed 's,/,\\\\,g'` |
3431
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3430
diff
changeset
|
936 echo " Delete \"\$INSTDIR\\$winf\\*.*\"" >> $OUTFILE |
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3430
diff
changeset
|
937 echo " RmDir \"\$INSTDIR\\$winf\"" >> $OUTFILE |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
938 done |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
939 |
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
940 # last bit of the uninstaller |
3431
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3430
diff
changeset
|
941 cat >> $OUTFILE << EOF |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
942 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
943 Delete "\$INSTDIR\\uninstall.exe" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
944 |
3409
5e77c5fc91ed
qt: build translations in cross build and install
John Donoghue <john.donoghue@ieee.org>
parents:
3406
diff
changeset
|
945 Delete "\$INSTDIR\\*.*" |
4725
12bfaba26c8d
* tools/makeinst-script.sh.in: clear erros before doing RMDir INSTDIR
John Donoghue
parents:
4658
diff
changeset
|
946 ClearErrors |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
947 RmDir "\$INSTDIR" |
3954
14ad478dc07b
Installer: prompt to unstill additional files (Bug #45188)
John D
parents:
3831
diff
changeset
|
948 |
14ad478dc07b
Installer: prompt to unstill additional files (Bug #45188)
John D
parents:
3831
diff
changeset
|
949 ; didnt remove directory ? most likely from not all files removed |
14ad478dc07b
Installer: prompt to unstill additional files (Bug #45188)
John D
parents:
3831
diff
changeset
|
950 IfErrors 0 uninstall_done |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
951 ClearErrors |
4385 | 952 MessageBox MB_YESNO "One or more folders were not uninstalled because they contain extra files. Try to delete them?" /SD IDYES IDNO uninstall_done |
3954
14ad478dc07b
Installer: prompt to unstill additional files (Bug #45188)
John D
parents:
3831
diff
changeset
|
953 RMDir /r "\$INSTDIR" |
3956 | 954 |
955 IfErrors 0 uninstall_done | |
4385 | 956 MessageBox MB_YESNO "One of more files were still not uninstalled. Do you want to delete them on the next reboot?" /SD IDYES IDNO uninstall_done |
3956 | 957 RMDir /r /REBOOTOK "\$INSTDIR" |
3954
14ad478dc07b
Installer: prompt to unstill additional files (Bug #45188)
John D
parents:
3831
diff
changeset
|
958 uninstall_done: |
14ad478dc07b
Installer: prompt to unstill additional files (Bug #45188)
John D
parents:
3831
diff
changeset
|
959 |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
960 SectionEnd |
3357
456b6e533054
makeinst-script.sh: Added checking for Java Runtime Environment
Anirudha Bose <ani07nov@gmail.com>
parents:
3356
diff
changeset
|
961 |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
962 ; function to get latest version of octave installed |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
963 !macro GET_LATEST_OCTAVE un |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
964 Function \${un}GetLatestOctave |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
965 Push \$R0 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
966 Push \$R1 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
967 Push \$R2 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
968 Push \$R3 |
6395
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
969 Push \$R4 |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
970 |
6395
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
971 StrCpy \$R4 "" |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
972 StrCpy \$R0 "" |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
973 StrCpy \$R1 0 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
974 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
975 ; loop through installed programs to find octave installs |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
976 \${un}octave_ver_loop: |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
977 EnumRegKey \$R2 \${PRODUCT_UNINST_ROOT_KEY} "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\" \$R1 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
978 StrCmp \$R2 "" \${un}latest_octave_done |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
979 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
980 ; len(octave) = 6 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
981 StrCpy \$R3 \$R2 6 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
982 StrCmp \$R3 "Octave" 0 \${un}next_ver_loop |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
983 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
984 ; to verify the install check with the installer exists have uninstaller |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
985 # TODO |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
986 #ReadRegStr \$R3 \${PRODUCT_UNINST_ROOT_KEY} "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\\$R2" "UninstallString" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
987 #ifFileExists \$R3 0 \${un}next_ver_loop |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
988 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
989 # if uninstalling dont count ourselves |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
990 \${If} "\${un}" == "un." |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
991 StrCmp \$R2 "Octave-$VERSION\$MultiUser.Local" \${un}skip_ver_set |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
992 ; grab version part of octave |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
993 StrCpy \$R0 \$R2 "" 7 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
994 \${un}skip_ver_set: |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
995 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
996 \${Else} |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
997 ; grab version part of octave |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
998 StrCpy \$R0 \$R2 "" 7 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
999 \${EndIf} |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1000 |
6395
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
1001 !insertmacro VersionCompare "\${un}" \$R4 \$R0 \$R2 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
1002 \${If} \$R2 == 2 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
1003 # new one if bigger - save it |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
1004 StrCpy \$R4 \$R0 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
1005 \${EndIf} |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
1006 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1007 \${un}next_ver_loop: |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
1008 IntOp \$R1 \$R1 + 1 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1009 GoTo \${un}octave_ver_loop |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
1010 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1011 \${un}latest_octave_done: |
6395
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
1012 # put result in r0 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
1013 StrCpy \$R0 \$R4 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
1014 |
f654b70b6a6e
* tools/makeinst-script.sh.in: compare version string for get latest rather than assume in order
John Donoghue <john.donoghue@ieee.org>
parents:
6394
diff
changeset
|
1015 Pop \$R4 |
4471
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
1016 Pop \$R3 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
1017 Pop \$R2 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
1018 Pop \$R1 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
1019 Exch \$R0 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
1020 ; stack now has octave version on top |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
1021 FunctionEnd |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
1022 !macroend |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
1023 |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
1024 !insertmacro GET_LATEST_OCTAVE "" |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
1025 !insertmacro GET_LATEST_OCTAVE "un." |
1a3deda73484
nsis installer: include version links in startmenu (Bug #51878)
John D
parents:
4458
diff
changeset
|
1026 |
3362
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1027 ; Function to detect Windows version and abort if Octave is unsupported in the current platform |
4120
f2d7bb7777da
installer: dont warn on experimental for win10 (Bug #47576)
John Donoghue
parents:
4075
diff
changeset
|
1028 Function CheckWinVer |
3362
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1029 Push \$0 |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1030 Push \$1 |
3552
b82ff8ba6a8a
nsis-installer: check for win8 version and set -i --line-editing in shortcuts
John Donoghue <john.donoghue@ieee.org>
parents:
3545
diff
changeset
|
1031 |
4387
05b44661c970
nsis-installer: Check new reg values for Win10 (Bug #50552)
John D
parents:
4385
diff
changeset
|
1032 ; try read new way of getting version |
05b44661c970
nsis-installer: Check new reg values for Win10 (Bug #50552)
John D
parents:
4385
diff
changeset
|
1033 ReadRegStr \$0 HKLM "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion" CurrentMajorVersionNumber |
05b44661c970
nsis-installer: Check new reg values for Win10 (Bug #50552)
John D
parents:
4385
diff
changeset
|
1034 ; since is DWORD reg value, error will be set, however will be "" if no value read |
05b44661c970
nsis-installer: Check new reg values for Win10 (Bug #50552)
John D
parents:
4385
diff
changeset
|
1035 StrCmp \$0 "" is_less_than_win10 |
05b44661c970
nsis-installer: Check new reg values for Win10 (Bug #50552)
John D
parents:
4385
diff
changeset
|
1036 ReadRegStr \$1 HKLM "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion" CurrentMinorVersionNumber |
05b44661c970
nsis-installer: Check new reg values for Win10 (Bug #50552)
John D
parents:
4385
diff
changeset
|
1037 StrCmp \$1 "" is_less_than_win10 |
05b44661c970
nsis-installer: Check new reg values for Win10 (Bug #50552)
John D
parents:
4385
diff
changeset
|
1038 |
05b44661c970
nsis-installer: Check new reg values for Win10 (Bug #50552)
John D
parents:
4385
diff
changeset
|
1039 StrCpy \$0 "\$0.\$1" |
05b44661c970
nsis-installer: Check new reg values for Win10 (Bug #50552)
John D
parents:
4385
diff
changeset
|
1040 Goto is_winnt |
05b44661c970
nsis-installer: Check new reg values for Win10 (Bug #50552)
John D
parents:
4385
diff
changeset
|
1041 |
05b44661c970
nsis-installer: Check new reg values for Win10 (Bug #50552)
John D
parents:
4385
diff
changeset
|
1042 is_less_than_win10: |
05b44661c970
nsis-installer: Check new reg values for Win10 (Bug #50552)
John D
parents:
4385
diff
changeset
|
1043 ClearErrors |
3403
f79780bcc843
installer: check destination path later in install (Bug #41069)
John Donoghue <john.donoghue@ieee.org>
parents:
3391
diff
changeset
|
1044 ReadRegStr \$0 HKLM "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion" CurrentVersion |
3362
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1045 IfErrors is_error is_winnt |
4387
05b44661c970
nsis-installer: Check new reg values for Win10 (Bug #50552)
John D
parents:
4385
diff
changeset
|
1046 |
3362
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1047 is_winnt: |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1048 StrCpy \$1 \$0 1 |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1049 StrCmp \$1 4 is_error ; Aborting installation for Windows versions older than Windows 2000 |
3364
4812bade5c85
makeinst-script.sh: Remove Windows 2000 as supported Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3363
diff
changeset
|
1050 StrCmp \$0 "5.0" is_error ; Removing Windows 2000 as supported Windows version |
3362
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1051 StrCmp \$0 "5.1" is_winnt_XP |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1052 StrCmp \$0 "5.2" is_winnt_2003 |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1053 StrCmp \$0 "6.0" is_winnt_vista |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1054 StrCmp \$0 "6.1" is_winnt_7 |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1055 StrCmp \$0 "6.2" is_winnt_8 |
4387
05b44661c970
nsis-installer: Check new reg values for Win10 (Bug #50552)
John D
parents:
4385
diff
changeset
|
1056 StrCmp \$0 "6.3" is_winnt_8 ; win 8.1 |
05b44661c970
nsis-installer: Check new reg values for Win10 (Bug #50552)
John D
parents:
4385
diff
changeset
|
1057 StrCmp \$0 "10.0" is_winnt_10 |
4120
f2d7bb7777da
installer: dont warn on experimental for win10 (Bug #47576)
John Donoghue
parents:
4075
diff
changeset
|
1058 StrCmp \$1 6 is_winnt_10 ; Checking for future versions of Windows 10+ |
4387
05b44661c970
nsis-installer: Check new reg values for Win10 (Bug #50552)
John D
parents:
4385
diff
changeset
|
1059 StrCmp \$1 1 is_winnt_10 ; Checking for future versions of Windows 10+ |
3362
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1060 Goto is_error |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1061 |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1062 is_winnt_XP: |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1063 is_winnt_2003: |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1064 is_winnt_vista: |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1065 is_winnt_7: |
4120
f2d7bb7777da
installer: dont warn on experimental for win10 (Bug #47576)
John Donoghue
parents:
4075
diff
changeset
|
1066 is_winnt_8: |
4787
68deb4d4d928
nsis-installer: eliminate windows 10 warning
John W. Eaton <jwe@octave.org>
parents:
4786
diff
changeset
|
1067 is_winnt_10: |
3362
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1068 Goto done |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1069 is_error: |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1070 StrCpy \$1 \$0 |
4387
05b44661c970
nsis-installer: Check new reg values for Win10 (Bug #50552)
John D
parents:
4385
diff
changeset
|
1071 ClearErrors |
3367
cfcbe03c9160
installer: Enable documentation build and add to installer.
John Donoghue <john.donoghue@ieee.org>
parents:
3366
diff
changeset
|
1072 ReadRegStr \$0 HKLM "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion" ProductName |
3362
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1073 IfErrors 0 +4 |
3367
cfcbe03c9160
installer: Enable documentation build and add to installer.
John Donoghue <john.donoghue@ieee.org>
parents:
3366
diff
changeset
|
1074 ReadRegStr \$0 HKLM "SOFTWARE\\Microsoft\\Windows\\CurrentVersion" Version |
3362
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1075 IfErrors 0 +2 |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1076 StrCpy \$0 "Unknown" |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1077 MessageBox MB_ICONSTOP|MB_OK "This version of Octave cannot be installed on this system. Octave is supported only on Windows NT systems. Current system: \$0 (version: \$1)" |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1078 Abort |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1079 done: |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1080 Pop \$1 |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1081 Pop \$0 |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1082 FunctionEnd |
0f2a5e218359
makeinst-script.sh: Added checking of Windows version
Anirudha Bose <ani07nov@gmail.com>
parents:
3361
diff
changeset
|
1083 |
3403
f79780bcc843
installer: check destination path later in install (Bug #41069)
John Donoghue <john.donoghue@ieee.org>
parents:
3391
diff
changeset
|
1084 ; Function to check whether already installed this version |
f79780bcc843
installer: check destination path later in install (Bug #41069)
John Donoghue <john.donoghue@ieee.org>
parents:
3391
diff
changeset
|
1085 Function CheckCurrVersion |
3358
8708b7d07795
makeinst-script.sh: Added checking for previous installation of Octave
Anirudha Bose <ani07nov@gmail.com>
parents:
3357
diff
changeset
|
1086 Push \$0 |
3403
f79780bcc843
installer: check destination path later in install (Bug #41069)
John Donoghue <john.donoghue@ieee.org>
parents:
3391
diff
changeset
|
1087 ClearErrors |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1088 ReadRegStr \$0 \${PRODUCT_UNINST_ROOT_KEY} "\$MultiUser.UninstallKey" "DisplayName" |
3403
f79780bcc843
installer: check destination path later in install (Bug #41069)
John Donoghue <john.donoghue@ieee.org>
parents:
3391
diff
changeset
|
1089 IfErrors curr_check_ok |
3358
8708b7d07795
makeinst-script.sh: Added checking for previous installation of Octave
Anirudha Bose <ani07nov@gmail.com>
parents:
3357
diff
changeset
|
1090 MessageBox MB_OK|MB_ICONSTOP "Another Octave installation (with the same version) has been detected. Please uninstall it first." |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1091 Quit |
3403
f79780bcc843
installer: check destination path later in install (Bug #41069)
John Donoghue <john.donoghue@ieee.org>
parents:
3391
diff
changeset
|
1092 curr_check_ok: |
4124
5ae69991eaa1
installer: detect win64/win32 java depending on octave 32/64 (Bug #47606)
John Donoghue
parents:
4121
diff
changeset
|
1093 pop \$0 |
3358
8708b7d07795
makeinst-script.sh: Added checking for previous installation of Octave
Anirudha Bose <ani07nov@gmail.com>
parents:
3357
diff
changeset
|
1094 FunctionEnd |
8708b7d07795
makeinst-script.sh: Added checking for previous installation of Octave
Anirudha Bose <ani07nov@gmail.com>
parents:
3357
diff
changeset
|
1095 |
5168
e640a2d2ede0
* tools/makeinst-script.sh.in: update dest folder check to include check of characters that cause issues (Bug #49718)
John Donoghue
parents:
5135
diff
changeset
|
1096 ; Check whether prev install is here and no spaces or special chars in dest name |
3728
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
1097 Function CheckPrevInstallAndDest |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
1098 IfFileExists "\$INSTDIR\\bin\\octave-cli.exe" inst_exists 0 |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4787
diff
changeset
|
1099 IfFileExists "\$INSTDIR\\$OCTAVE_SUBDIR\\bin\\octave-cli.exe" inst_exists inst_none |
3403
f79780bcc843
installer: check destination path later in install (Bug #41069)
John Donoghue <john.donoghue@ieee.org>
parents:
3391
diff
changeset
|
1100 inst_exists: |
4385 | 1101 MessageBox MB_YESNO|MB_ICONEXCLAMATION "Another Octave installation has been detected at that destination. It is recommended to uninstall it if you intend to use the same installation directory. Do you want to proceed with the installation anyway?" /SD IDYES IDYES inst_none IDNO 0 |
3403
f79780bcc843
installer: check destination path later in install (Bug #41069)
John Donoghue <john.donoghue@ieee.org>
parents:
3391
diff
changeset
|
1102 Abort |
3728
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
1103 GoTo inst_end |
3403
f79780bcc843
installer: check destination path later in install (Bug #41069)
John Donoghue <john.donoghue@ieee.org>
parents:
3391
diff
changeset
|
1104 inst_none: |
3728
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
1105 |
5168
e640a2d2ede0
* tools/makeinst-script.sh.in: update dest folder check to include check of characters that cause issues (Bug #49718)
John Donoghue
parents:
5135
diff
changeset
|
1106 ; check for spaces or spcial chars in dest filename |
3728
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
1107 Push \$R0 |
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
1108 Push \$R1 |
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
1109 |
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
1110 StrCpy \$R1 0 # r1 = counter |
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
1111 space_loop: |
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
1112 StrCpy \$R0 \$INSTDIR 1 \$R1 # R0 = character in string to check |
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
1113 StrCmp \$R0 "" space_end # end of string |
5168
e640a2d2ede0
* tools/makeinst-script.sh.in: update dest folder check to include check of characters that cause issues (Bug #49718)
John Donoghue
parents:
5135
diff
changeset
|
1114 StrCmp \$R0 "&" space_found |
e640a2d2ede0
* tools/makeinst-script.sh.in: update dest folder check to include check of characters that cause issues (Bug #49718)
John Donoghue
parents:
5135
diff
changeset
|
1115 StrCmp \$R0 "%" space_found |
e640a2d2ede0
* tools/makeinst-script.sh.in: update dest folder check to include check of characters that cause issues (Bug #49718)
John Donoghue
parents:
5135
diff
changeset
|
1116 StrCmp \$R0 "^" space_found |
3728
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
1117 IntOp \$R1 \$R1 + 1 |
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
1118 GoTo space_loop |
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
1119 space_found: |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1120 MessageBox MB_OK|MB_ICONEXCLAMATION "Octave should not be installed to a destination folder containing &%()^. Please select another destination." |
3728
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
1121 Abort |
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
1122 space_end: |
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
1123 Pop \$R1 |
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
1124 Pop \$R0 |
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
1125 |
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
1126 inst_end: |
8c11c5a1a939
Prevent octave install to path with spaces
John Donoghue <john.donoghue@ieee.org>
parents:
3717
diff
changeset
|
1127 |
3403
f79780bcc843
installer: check destination path later in install (Bug #41069)
John Donoghue <john.donoghue@ieee.org>
parents:
3391
diff
changeset
|
1128 FunctionEnd |
f79780bcc843
installer: check destination path later in install (Bug #41069)
John Donoghue <john.donoghue@ieee.org>
parents:
3391
diff
changeset
|
1129 |
6939
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1130 ; Function to check Console Settings and show a warn |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1131 Function CheckConsole |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1132 Push \$R0 |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1133 Push \$R1 |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1134 |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1135 ClearErrors |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1136 |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1137 ReadRegStr \$R1 HKCU "Console\\%%Startup" "DelegationConsole" |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1138 IfErrors ignore_console 0 |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1139 |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1140 StrCmp \$R1 "" ignore_console 0 |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1141 # already set for console host |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1142 StrCmp \$R1 "{B23D10C0-E52E-411E-9D5B-C09FDF709C7D}" ignore_console 0 |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1143 |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1144 # display message |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1145 MessageBox MB_ICONEXCLAMATION|MB_YESNO|MB_DEFBUTTON2 "Using Octave with the Windows Terminal app could lead to issues with the command window. Please, set the default to the “Windows Console Host”.$\r$\n$\r$\nWould you like to get instructions on how to change the default console?" /SD IDNO IDNO ignore_console |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1146 |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1147 ExecShell open "https://devblogs.microsoft.com/commandline/windows-terminal-as-your-default-command-line-experience/" |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1148 |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1149 ignore_console: |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1150 Pop \$R1 |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1151 Pop \$R0 |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1152 FunctionEnd |
4f25eb25a80b
Installer: Check for default console and show advice for new Terminal
John Donoghue <john.donoghue@ieee.org>
parents:
6592
diff
changeset
|
1153 |
3357
456b6e533054
makeinst-script.sh: Added checking for Java Runtime Environment
Anirudha Bose <ani07nov@gmail.com>
parents:
3356
diff
changeset
|
1154 ; Function to check Java Runtime Environment |
3358
8708b7d07795
makeinst-script.sh: Added checking for previous installation of Octave
Anirudha Bose <ani07nov@gmail.com>
parents:
3357
diff
changeset
|
1155 Function CheckJRE |
3357
456b6e533054
makeinst-script.sh: Added checking for Java Runtime Environment
Anirudha Bose <ani07nov@gmail.com>
parents:
3356
diff
changeset
|
1156 ; looks in: |
3359
40ae138b38a6
Removed checking of JRE locally
Anirudha Bose <ani07nov@gmail.com>
parents:
3358
diff
changeset
|
1157 ; 1 - JAVA_HOME environment variable |
40ae138b38a6
Removed checking of JRE locally
Anirudha Bose <ani07nov@gmail.com>
parents:
3358
diff
changeset
|
1158 ; 2 - the registry |
3357
456b6e533054
makeinst-script.sh: Added checking for Java Runtime Environment
Anirudha Bose <ani07nov@gmail.com>
parents:
3356
diff
changeset
|
1159 |
456b6e533054
makeinst-script.sh: Added checking for Java Runtime Environment
Anirudha Bose <ani07nov@gmail.com>
parents:
3356
diff
changeset
|
1160 Push \$R0 |
456b6e533054
makeinst-script.sh: Added checking for Java Runtime Environment
Anirudha Bose <ani07nov@gmail.com>
parents:
3356
diff
changeset
|
1161 Push \$R1 |
456b6e533054
makeinst-script.sh: Added checking for Java Runtime Environment
Anirudha Bose <ani07nov@gmail.com>
parents:
3356
diff
changeset
|
1162 |
4648
982484a78b75
nsis-installer: check for java using same tests of octave uses (Bug #53572)
John Donoghue
parents:
4613
diff
changeset
|
1163 # get the version |
982484a78b75
nsis-installer: check for java using same tests of octave uses (Bug #53572)
John Donoghue
parents:
4613
diff
changeset
|
1164 ClearErrors |
982484a78b75
nsis-installer: check for java using same tests of octave uses (Bug #53572)
John Donoghue
parents:
4613
diff
changeset
|
1165 ReadEnvStr \$R1 "JAVA_VERSION" |
982484a78b75
nsis-installer: check for java using same tests of octave uses (Bug #53572)
John Donoghue
parents:
4613
diff
changeset
|
1166 StrCmp \$R1 "" 0 have_java_version |
3357
456b6e533054
makeinst-script.sh: Added checking for Java Runtime Environment
Anirudha Bose <ani07nov@gmail.com>
parents:
3356
diff
changeset
|
1167 ClearErrors |
4648
982484a78b75
nsis-installer: check for java using same tests of octave uses (Bug #53572)
John Donoghue
parents:
4613
diff
changeset
|
1168 ReadRegStr \$R1 HKLM "SOFTWARE\\JavaSoft\\JRE" "CurrentVersion" |
982484a78b75
nsis-installer: check for java using same tests of octave uses (Bug #53572)
John Donoghue
parents:
4613
diff
changeset
|
1169 IfErrors 0 have_java_version |
3367
cfcbe03c9160
installer: Enable documentation build and add to installer.
John Donoghue <john.donoghue@ieee.org>
parents:
3366
diff
changeset
|
1170 ReadRegStr \$R1 HKLM "SOFTWARE\\JavaSoft\\Java Runtime Environment" "CurrentVersion" |
4648
982484a78b75
nsis-installer: check for java using same tests of octave uses (Bug #53572)
John Donoghue
parents:
4613
diff
changeset
|
1171 IfErrors JRE_Error have_java_version |
3357
456b6e533054
makeinst-script.sh: Added checking for Java Runtime Environment
Anirudha Bose <ani07nov@gmail.com>
parents:
3356
diff
changeset
|
1172 |
4648
982484a78b75
nsis-installer: check for java using same tests of octave uses (Bug #53572)
John Donoghue
parents:
4613
diff
changeset
|
1173 have_java_version: |
982484a78b75
nsis-installer: check for java using same tests of octave uses (Bug #53572)
John Donoghue
parents:
4613
diff
changeset
|
1174 ClearErrors |
982484a78b75
nsis-installer: check for java using same tests of octave uses (Bug #53572)
John Donoghue
parents:
4613
diff
changeset
|
1175 ReadRegStr \$R0 HKLM "SOFTWARE\\JavaSoft\\JRE\\\$R1" "RuntimeLib" |
982484a78b75
nsis-installer: check for java using same tests of octave uses (Bug #53572)
John Donoghue
parents:
4613
diff
changeset
|
1176 IfErrors 0 have_java_runtime |
982484a78b75
nsis-installer: check for java using same tests of octave uses (Bug #53572)
John Donoghue
parents:
4613
diff
changeset
|
1177 ReadRegStr \$R0 HKLM "SOFTWARE\\JavaSoft\\Java Runtime Environment\\\$R1" "RuntimeLib" |
982484a78b75
nsis-installer: check for java using same tests of octave uses (Bug #53572)
John Donoghue
parents:
4613
diff
changeset
|
1178 IfErrors JRE_Error have_java_runtime |
982484a78b75
nsis-installer: check for java using same tests of octave uses (Bug #53572)
John Donoghue
parents:
4613
diff
changeset
|
1179 |
982484a78b75
nsis-installer: check for java using same tests of octave uses (Bug #53572)
John Donoghue
parents:
4613
diff
changeset
|
1180 have_java_runtime: |
982484a78b75
nsis-installer: check for java using same tests of octave uses (Bug #53572)
John Donoghue
parents:
4613
diff
changeset
|
1181 # have runtime in R0 - check actual file is there |
982484a78b75
nsis-installer: check for java using same tests of octave uses (Bug #53572)
John Donoghue
parents:
4613
diff
changeset
|
1182 StrCmp \$R0 "" JRE_Error 0 |
982484a78b75
nsis-installer: check for java using same tests of octave uses (Bug #53572)
John Donoghue
parents:
4613
diff
changeset
|
1183 ClearErrors |
982484a78b75
nsis-installer: check for java using same tests of octave uses (Bug #53572)
John Donoghue
parents:
4613
diff
changeset
|
1184 IfFileExists \$R0 continue JRE_Error |
3357
456b6e533054
makeinst-script.sh: Added checking for Java Runtime Environment
Anirudha Bose <ani07nov@gmail.com>
parents:
3356
diff
changeset
|
1185 |
456b6e533054
makeinst-script.sh: Added checking for Java Runtime Environment
Anirudha Bose <ani07nov@gmail.com>
parents:
3356
diff
changeset
|
1186 JRE_Error: |
4385 | 1187 MessageBox MB_ICONEXCLAMATION|MB_YESNO "Octave has the capability to call Java libraries, but the installer was unable to find a Java Runtime Environment (JRE) on this system. Octave will still function without a JRE, only certain specific functions will be disabled. If a JRE is installed later, Octave should be able to detect and use it automatically. Continue with installation?" /SD IDYES IDYES continue |
3357
456b6e533054
makeinst-script.sh: Added checking for Java Runtime Environment
Anirudha Bose <ani07nov@gmail.com>
parents:
3356
diff
changeset
|
1188 Abort |
456b6e533054
makeinst-script.sh: Added checking for Java Runtime Environment
Anirudha Bose <ani07nov@gmail.com>
parents:
3356
diff
changeset
|
1189 continue: |
3403
f79780bcc843
installer: check destination path later in install (Bug #41069)
John Donoghue <john.donoghue@ieee.org>
parents:
3391
diff
changeset
|
1190 Pop \$R1 |
f79780bcc843
installer: check destination path later in install (Bug #41069)
John Donoghue <john.donoghue@ieee.org>
parents:
3391
diff
changeset
|
1191 Pop \$R0 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1192 FunctionEnd |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1193 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1194 Function un.FindThisUninstallReg |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1195 # look to find where we were installed for this particular version and then return |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1196 # 0 no install found (shouldnt happen) |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1197 # 1 local install was found |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1198 # 2 allusers install was found |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1199 Push \$R0 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1200 Push \$R1 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1201 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1202 StrCpy \$R0 0 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1203 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1204 find_check_reg_hkcu: |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1205 # check for local installs |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1206 ReadRegStr \$R1 HKCU "\${PRODUCT_UNINST_KEY} (Local)" "InstallLocation" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1207 StrCmp \$R1 "" 0 find_have_reg_hkcu |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1208 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1209 ReadRegStr \$R1 HKCU "\${PRODUCT_UNINST_KEY} (Local)" "UninstallString" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1210 StrCmp \$R1 "" find_check_reg_hklm 0 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1211 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1212 \${GetParent} \$R1 \$R1 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1213 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1214 find_have_reg_hkcu: |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1215 \${un.DequoteString} \$R1 \$R1 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1216 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1217 # is this the match ? |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1218 StrCmp \$R1 "\$INSTDIR" 0 find_check_reg_hklm |
4124
5ae69991eaa1
installer: detect win64/win32 java depending on octave 32/64 (Bug #47606)
John Donoghue
parents:
4121
diff
changeset
|
1219 |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1220 StrCpy \$R0 1 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1221 GoTo find_check_reg_done |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1222 find_check_reg_hklm: |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1223 # check for all installs |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1224 ReadRegStr \$R1 HKLM "\${PRODUCT_UNINST_KEY}" "InstallLocation" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1225 StrCmp \$R1 "" 0 find_have_reg_hklm |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1226 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1227 ReadRegStr \$R1 HKLM "\${PRODUCT_UNINST_KEY}" "UninstallString" |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1228 StrCmp \$R1 "" find_check_reg_done 0 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1229 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1230 \${GetParent} \$R1 \$R1 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1231 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1232 find_have_reg_hklm: |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1233 \${un.DequoteString} \$R1 \$R1 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1234 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1235 # is this the match ? |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1236 StrCmp \$R1 "\$INSTDIR" 0 find_check_reg_done |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1237 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1238 StrCpy \$R0 2 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1239 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1240 find_check_reg_done: |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1241 Pop \$R1 |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1242 # restore r0, but result on stack |
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1243 Exch \$R0 |
3357
456b6e533054
makeinst-script.sh: Added checking for Java Runtime Environment
Anirudha Bose <ani07nov@gmail.com>
parents:
3356
diff
changeset
|
1244 FunctionEnd |
5420
ec1f5c04ca0b
* tools/makeinst-script.sh.in: add multiuser options to nsis installer (Bug #58320)
John Donoghue <john.donoghue@ieee.org>
parents:
5347
diff
changeset
|
1245 |
2992
4b450c162e39
Add ability to create simple NSIS installer
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
1246 EOF |