Mercurial > vim
annotate nsis/gvim.nsi @ 15952:6121ab672b3e
Added tag v8.1.0981 for changeset 2c18aaf66e7740a4b53ae880be99f584b8ede504
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 25 Feb 2019 06:15:05 +0100 |
parents | 67729676d3f7 |
children | 9eb8c0d5c13e |
rev | line source |
---|---|
7 | 1 # NSIS file to create a self-installing exe for Vim. |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
2 # It requires NSIS version 3.0 or later. |
6343 | 3 # Last Change: 2014 Nov 5 |
7 | 4 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
5 Unicode true |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
6 |
7 | 7 # WARNING: if you make changes to this script, look out for $0 to be valid, |
8 # because uninstall deletes most files in $0. | |
9 | |
5128
3dafc80e781b
updated for version 7.3.1307
Bram Moolenaar <bram@vim.org>
parents:
2577
diff
changeset
|
10 # Location of gvim_ole.exe, vimw32.exe, GvimExt/*, etc. |
7613
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
11 !ifndef VIMSRC |
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
12 !define VIMSRC "..\src" |
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
13 !endif |
7 | 14 |
15 # Location of runtime files | |
7613
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
16 !ifndef VIMRT |
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
17 !define VIMRT ".." |
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
18 !endif |
7 | 19 |
20 # Location of extra tools: diff.exe | |
7613
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
21 !ifndef VIMTOOLS |
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
22 !define VIMTOOLS ..\.. |
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
23 !endif |
7 | 24 |
12626
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
25 # Location of gettext. |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
26 # It must contain two directories: gettext32 and gettext64. |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
27 # See README.txt for detail. |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
28 !ifndef GETTEXT |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
29 !define GETTEXT ${VIMRT} |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
30 !endif |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
31 |
7 | 32 # Comment the next line if you don't have UPX. |
12626
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
33 # Get it at https://upx.github.io/ |
7 | 34 !define HAVE_UPX |
35 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
36 # Comment the next line if you do not want to add Native Language Support |
7 | 37 !define HAVE_NLS |
38 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
39 # Uncomment the next line if you want to include VisVim extension: |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
40 #!define HAVE_VIS_VIM |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
41 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
42 # Comment the following line to create a multilanguage installer: |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
43 !define HAVE_MULTI_LANG |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
44 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
45 # Uncomment the next line if you want to create a 64-bit installer. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
46 #!define WIN64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
47 |
7443
357b7bd8d612
commit https://github.com/vim/vim/commit/6c7b44472f7055c78d996e1b626bd2932502212f
Christian Brabandt <cb@256bit.org>
parents:
6343
diff
changeset
|
48 !include gvim_version.nsh # for version number |
7 | 49 |
50 # ----------- No configurable settings below this line ----------- | |
51 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
52 !include "Library.nsh" # For DLL install |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
53 !ifdef HAVE_VIS_VIM |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
54 !include "UpgradeDLL.nsh" # for VisVim.dll |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
55 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
56 !include "LogicLib.nsh" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
57 !include "MUI2.nsh" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
58 !include "nsDialogs.nsh" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
59 !include "Sections.nsh" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
60 !include "x64.nsh" |
7 | 61 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
62 !define PRODUCT "Vim ${VER_MAJOR}.${VER_MINOR}" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
63 !define UNINST_REG_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
64 !define UNINST_REG_KEY_VIM "${UNINST_REG_KEY}\${PRODUCT}" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
65 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
66 !ifdef WIN64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
67 Name "${PRODUCT} (x64)" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
68 !else |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
69 Name "${PRODUCT}" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
70 !endif |
7 | 71 OutFile gvim${VER_MAJOR}${VER_MINOR}.exe |
72 CRCCheck force | |
7613
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
73 SetCompressor /SOLID lzma |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
74 SetCompressorDictSize 64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
75 ManifestDPIAware true |
7 | 76 SetDatablockOptimize on |
2217
120502692d82
Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
77 RequestExecutionLevel highest |
7 | 78 |
79 !ifdef HAVE_UPX | |
80 !packhdr temp.dat "upx --best --compress-icons=1 temp.dat" | |
81 !endif | |
82 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
83 !ifdef WIN64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
84 !define BIT 64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
85 !else |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
86 !define BIT 32 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
87 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
88 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
89 ########################################################## |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
90 # MUI2 settings |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
91 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
92 !define MUI_ABORTWARNING |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
93 !define MUI_UNABORTWARNING |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
94 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
95 !define MUI_ICON "icons\vim_16c.ico" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
96 !define MUI_UNICON "icons\vim_uninst_16c.ico" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
97 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
98 # Show all languages, despite user's codepage: |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
99 !define MUI_LANGDLL_ALLLANGUAGES |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
100 !define MUI_LANGDLL_REGISTRY_ROOT "HKCU" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
101 !define MUI_LANGDLL_REGISTRY_KEY "Software\Vim" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
102 !define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
103 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
104 !define MUI_WELCOMEFINISHPAGE_BITMAP "icons\welcome.bmp" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
105 !define MUI_UNWELCOMEFINISHPAGE_BITMAP "icons\uninstall.bmp" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
106 !define MUI_HEADERIMAGE |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
107 !define MUI_HEADERIMAGE_BITMAP "icons\header.bmp" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
108 !define MUI_HEADERIMAGE_UNBITMAP "icons\un_header.bmp" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
109 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
110 !define MUI_WELCOMEFINISHPAGE_BITMAP_STRETCH "AspectFitHeight" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
111 !define MUI_UNWELCOMEFINISHPAGE_BITMAP_STRETCH "AspectFitHeight" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
112 !define MUI_HEADERIMAGE_BITMAP_STRETCH "AspectFitHeight" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
113 !define MUI_HEADERIMAGE_UNBITMAP_STRETCH "AspectFitHeight" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
114 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
115 !define MUI_COMPONENTSPAGE_SMALLDESC |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
116 !define MUI_LICENSEPAGE_CHECKBOX |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
117 !define MUI_FINISHPAGE_RUN "$0\gvim.exe" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
118 !define MUI_FINISHPAGE_RUN_TEXT $(str_show_readme) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
119 !define MUI_FINISHPAGE_RUN_PARAMETERS "-R $\"$0\README.txt$\"" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
120 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
121 # This adds '\Vim' to the user choice automagically. The actual value is |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
122 # obtained below with CheckOldVim. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
123 !ifdef WIN64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
124 InstallDir "$PROGRAMFILES64\Vim" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
125 !else |
7 | 126 InstallDir "$PROGRAMFILES\Vim" |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
127 !endif |
7 | 128 |
129 # Types of installs we can perform: | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
130 InstType $(str_type_typical) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
131 InstType $(str_type_minimal) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
132 InstType $(str_type_full) |
7 | 133 |
134 SilentInstall normal | |
135 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
136 # General custom functions for MUI2: |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
137 #!define MUI_CUSTOMFUNCTION_ABORT VimOnUserAbort |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
138 #!define MUI_CUSTOMFUNCTION_UNABORT un.VimOnUserAbort |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
139 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
140 # Installer pages |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
141 !insertmacro MUI_PAGE_WELCOME |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
142 !insertmacro MUI_PAGE_LICENSE "${VIMRT}\doc\uganda.nsis.txt" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
143 !insertmacro MUI_PAGE_COMPONENTS |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
144 Page custom SetCustom ValidateCustom |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
145 #!define MUI_PAGE_CUSTOMFUNCTION_LEAVE VimFinalCheck |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
146 !insertmacro MUI_PAGE_DIRECTORY |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
147 !insertmacro MUI_PAGE_INSTFILES |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
148 !define MUI_FINISHPAGE_NOREBOOTSUPPORT |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
149 !insertmacro MUI_PAGE_FINISH |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
150 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
151 # Uninstaller pages: |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
152 !insertmacro MUI_UNPAGE_CONFIRM |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
153 #!define MUI_PAGE_CUSTOMFUNCTION_LEAVE un.VimCheckRunning |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
154 !insertmacro MUI_UNPAGE_COMPONENTS |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
155 !insertmacro MUI_UNPAGE_INSTFILES |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
156 !define MUI_FINISHPAGE_NOREBOOTSUPPORT |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
157 !insertmacro MUI_UNPAGE_FINISH |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
158 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
159 ########################################################## |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
160 # Languages Files |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
161 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
162 !insertmacro MUI_RESERVEFILE_LANGDLL |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
163 !include "lang\english.nsi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
164 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
165 # Include support for other languages: |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
166 !ifdef HAVE_MULTI_LANG |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
167 !include "lang\danish.nsi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
168 !include "lang\dutch.nsi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
169 !include "lang\german.nsi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
170 !include "lang\italian.nsi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
171 !include "lang\japanese.nsi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
172 !include "lang\simpchinese.nsi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
173 !include "lang\tradchinese.nsi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
174 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
175 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
176 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
177 # Global variables |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
178 Var vim_dialog |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
179 Var vim_nsd_compat |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
180 Var vim_nsd_keymap |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
181 Var vim_nsd_mouse |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
182 Var vim_compat_stat |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
183 Var vim_keymap_stat |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
184 Var vim_mouse_stat |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
185 |
7 | 186 |
13196
fbc58aa4ea1e
patch 8.0.1472: MS-Windows: nsis installer is a bit slow
Christian Brabandt <cb@256bit.org>
parents:
12816
diff
changeset
|
187 # Reserve files |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
188 ReserveFile ${VIMSRC}\installw32.exe |
13196
fbc58aa4ea1e
patch 8.0.1472: MS-Windows: nsis installer is a bit slow
Christian Brabandt <cb@256bit.org>
parents:
12816
diff
changeset
|
189 |
7 | 190 ########################################################## |
191 # Functions | |
192 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
193 # Get parent directory |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
194 # Share this function both on installer and uninstaller |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
195 !macro GetParent un |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
196 Function ${un}GetParent |
7 | 197 Exch $0 ; old $0 is on top of stack |
198 Push $1 | |
199 Push $2 | |
200 StrCpy $1 -1 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
201 ${Do} |
7 | 202 StrCpy $2 $0 1 $1 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
203 ${If} $2 == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
204 ${OrIf} $2 == "\" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
205 ${ExitDo} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
206 ${EndIf} |
7 | 207 IntOp $1 $1 - 1 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
208 ${Loop} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
209 StrCpy $0 $0 $1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
210 Pop $2 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
211 Pop $1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
212 Exch $0 ; put $0 on top of stack, restore $0 to original value |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
213 FunctionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
214 !macroend |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
215 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
216 !insertmacro GetParent "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
217 !insertmacro GetParent "un." |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
218 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
219 # Check if Vim is already installed. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
220 # return: Installed directory. If not found, it will be empty. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
221 Function CheckOldVim |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
222 Push $0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
223 Push $R0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
224 Push $R1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
225 Push $R2 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
226 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
227 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
228 SetRegView 64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
229 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
230 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
231 ClearErrors |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
232 StrCpy $0 "" # Installed directory |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
233 StrCpy $R0 0 # Sub-key index |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
234 StrCpy $R1 "" # Sub-key |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
235 ${Do} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
236 # Eumerate the sub-key: |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
237 EnumRegKey $R1 HKLM ${UNINST_REG_KEY} $R0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
238 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
239 # Stop if no more sub-key: |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
240 ${If} ${Errors} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
241 ${OrIf} $R1 == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
242 ${ExitDo} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
243 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
244 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
245 # Move to the next sub-key: |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
246 IntOp $R0 $R0 + 1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
247 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
248 # Check if the key is Vim uninstall key or not: |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
249 StrCpy $R2 $R1 4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
250 ${If} $R2 S!= "Vim " |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
251 ${Continue} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
252 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
253 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
254 # Verifies required sub-keys: |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
255 ReadRegStr $R2 HKLM "${UNINST_REG_KEY}\$R1" "DisplayName" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
256 ${If} ${Errors} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
257 ${OrIf} $R2 == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
258 ${Continue} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
259 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
260 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
261 ReadRegStr $R2 HKLM "${UNINST_REG_KEY}\$R1" "UninstallString" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
262 ${If} ${Errors} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
263 ${OrIf} $R2 == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
264 ${Continue} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
265 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
266 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
267 # Found |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
268 Push $R2 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
269 call GetParent |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
270 call GetParent |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
271 Pop $0 # Vim directory |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
272 ${ExitDo} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
273 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
274 ${Loop} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
275 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
276 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
277 SetRegView lastused |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
278 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
279 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
280 Pop $R2 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
281 Pop $R1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
282 Pop $R0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
283 Exch $0 # put $0 on top of stack, restore $0 to original value |
7 | 284 FunctionEnd |
285 | |
286 ########################################################## | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
287 Section "$(str_section_old_ver)" id_section_old_ver |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
288 SectionIn 1 2 3 RO |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
289 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
290 # run the install program to check for already installed versions |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
291 SetOutPath $TEMP |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
292 File /oname=install.exe ${VIMSRC}\installw32.exe |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
293 DetailPrint "$(str_msg_uninstalling)" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
294 ${Do} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
295 nsExec::Exec "$TEMP\install.exe -uninstall-check" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
296 Pop $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
297 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
298 call CheckOldVim |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
299 Pop $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
300 ${If} $3 == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
301 ${ExitDo} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
302 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
303 # It seems that the old version is still remaining. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
304 # TODO: Should we show a warning and run the uninstaller again? |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
305 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
306 ${ExitDo} # Just ignore for now. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
307 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
308 ${Loop} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
309 Delete $TEMP\install.exe |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
310 Delete $TEMP\vimini.ini # install.exe creates this, but we don't need it. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
311 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
312 # We may have been put to the background when uninstall did something. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
313 BringToFront |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
314 SectionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
315 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
316 ########################################################## |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
317 Section "$(str_section_exe)" id_section_exe |
12483
493752ef9f75
patch 8.0.1121: can uncheck executables in MS-Windows installer
Christian Brabandt <cb@256bit.org>
parents:
12371
diff
changeset
|
318 SectionIn 1 2 3 RO |
7 | 319 |
320 # we need also this here if the user changes the instdir | |
321 StrCpy $0 "$INSTDIR\vim${VER_MAJOR}${VER_MINOR}" | |
322 | |
323 SetOutPath $0 | |
324 File /oname=gvim.exe ${VIMSRC}\gvim_ole.exe | |
325 File /oname=install.exe ${VIMSRC}\installw32.exe | |
326 File /oname=uninstal.exe ${VIMSRC}\uninstalw32.exe | |
327 File ${VIMSRC}\vimrun.exe | |
10028
62b7fb15ff7e
commit https://github.com/vim/vim/commit/fec246d2c595164ac3b7e9fe9677053d3739b834
Christian Brabandt <cb@256bit.org>
parents:
9005
diff
changeset
|
328 File /oname=tee.exe ${VIMSRC}\teew32.exe |
7 | 329 File /oname=xxd.exe ${VIMSRC}\xxdw32.exe |
15215
d99d068b996b
patch 8.1.0617: NSIS installer gets two files from the wrong directory
Bram Moolenaar <Bram@vim.org>
parents:
15213
diff
changeset
|
330 File ..\vimtutor.bat |
d99d068b996b
patch 8.1.0617: NSIS installer gets two files from the wrong directory
Bram Moolenaar <Bram@vim.org>
parents:
15213
diff
changeset
|
331 File ..\README.txt |
7 | 332 File ..\uninstal.txt |
333 File ${VIMRT}\*.vim | |
334 File ${VIMRT}\rgb.txt | |
335 | |
12162
e18b9d7d8d78
patch 8.0.0961: the script to build the installer does not include winpty
Christian Brabandt <cb@256bit.org>
parents:
11571
diff
changeset
|
336 File ${VIMTOOLS}\diff.exe |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
337 File ${VIMTOOLS}\winpty${BIT}.dll |
12162
e18b9d7d8d78
patch 8.0.0961: the script to build the installer does not include winpty
Christian Brabandt <cb@256bit.org>
parents:
11571
diff
changeset
|
338 File ${VIMTOOLS}\winpty-agent.exe |
e18b9d7d8d78
patch 8.0.0961: the script to build the installer does not include winpty
Christian Brabandt <cb@256bit.org>
parents:
11571
diff
changeset
|
339 |
7 | 340 SetOutPath $0\colors |
341 File ${VIMRT}\colors\*.* | |
342 | |
343 SetOutPath $0\compiler | |
344 File ${VIMRT}\compiler\*.* | |
345 | |
346 SetOutPath $0\doc | |
347 File ${VIMRT}\doc\*.txt | |
348 File ${VIMRT}\doc\tags | |
349 | |
350 SetOutPath $0\ftplugin | |
351 File ${VIMRT}\ftplugin\*.* | |
352 | |
353 SetOutPath $0\indent | |
354 File ${VIMRT}\indent\*.* | |
355 | |
356 SetOutPath $0\macros | |
357 File ${VIMRT}\macros\*.* | |
12371
55359dabb6cc
patch 8.0.1065: not all macro examples are included
Christian Brabandt <cb@256bit.org>
parents:
12162
diff
changeset
|
358 SetOutPath $0\macros\hanoi |
55359dabb6cc
patch 8.0.1065: not all macro examples are included
Christian Brabandt <cb@256bit.org>
parents:
12162
diff
changeset
|
359 File ${VIMRT}\macros\hanoi\*.* |
55359dabb6cc
patch 8.0.1065: not all macro examples are included
Christian Brabandt <cb@256bit.org>
parents:
12162
diff
changeset
|
360 SetOutPath $0\macros\life |
55359dabb6cc
patch 8.0.1065: not all macro examples are included
Christian Brabandt <cb@256bit.org>
parents:
12162
diff
changeset
|
361 File ${VIMRT}\macros\life\*.* |
55359dabb6cc
patch 8.0.1065: not all macro examples are included
Christian Brabandt <cb@256bit.org>
parents:
12162
diff
changeset
|
362 SetOutPath $0\macros\maze |
55359dabb6cc
patch 8.0.1065: not all macro examples are included
Christian Brabandt <cb@256bit.org>
parents:
12162
diff
changeset
|
363 File ${VIMRT}\macros\maze\*.* |
55359dabb6cc
patch 8.0.1065: not all macro examples are included
Christian Brabandt <cb@256bit.org>
parents:
12162
diff
changeset
|
364 SetOutPath $0\macros\urm |
55359dabb6cc
patch 8.0.1065: not all macro examples are included
Christian Brabandt <cb@256bit.org>
parents:
12162
diff
changeset
|
365 File ${VIMRT}\macros\urm\*.* |
7 | 366 |
9005
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
367 SetOutPath $0\pack\dist\opt\dvorak\dvorak |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
368 File ${VIMRT}\pack\dist\opt\dvorak\dvorak\*.* |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
369 SetOutPath $0\pack\dist\opt\dvorak\plugin |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
370 File ${VIMRT}\pack\dist\opt\dvorak\plugin\*.* |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
371 |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
372 SetOutPath $0\pack\dist\opt\editexisting\plugin |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
373 File ${VIMRT}\pack\dist\opt\editexisting\plugin\*.* |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
374 |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
375 SetOutPath $0\pack\dist\opt\justify\plugin |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
376 File ${VIMRT}\pack\dist\opt\justify\plugin\*.* |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
377 |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
378 SetOutPath $0\pack\dist\opt\matchit\doc |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
379 File ${VIMRT}\pack\dist\opt\matchit\doc\*.* |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
380 SetOutPath $0\pack\dist\opt\matchit\plugin |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
381 File ${VIMRT}\pack\dist\opt\matchit\plugin\*.* |
15898
67729676d3f7
patch 8.1.0955: matchit autoload directory not in installer
Bram Moolenaar <Bram@vim.org>
parents:
15215
diff
changeset
|
382 SetOutPath $0\pack\dist\opt\matchit\autoload |
67729676d3f7
patch 8.1.0955: matchit autoload directory not in installer
Bram Moolenaar <Bram@vim.org>
parents:
15215
diff
changeset
|
383 File ${VIMRT}\pack\dist\opt\matchit\autoload\*.* |
9005
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
384 |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
385 SetOutPath $0\pack\dist\opt\shellmenu\plugin |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
386 File ${VIMRT}\pack\dist\opt\shellmenu\plugin\*.* |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
387 |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
388 SetOutPath $0\pack\dist\opt\swapmouse\plugin |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
389 File ${VIMRT}\pack\dist\opt\swapmouse\plugin\*.* |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
390 |
13884
0ddb61a7404f
patch 8.0.1813: Windows installer doesn't install terminal debugger
Christian Brabandt <cb@256bit.org>
parents:
13196
diff
changeset
|
391 SetOutPath $0\pack\dist\opt\termdebug\plugin |
0ddb61a7404f
patch 8.0.1813: Windows installer doesn't install terminal debugger
Christian Brabandt <cb@256bit.org>
parents:
13196
diff
changeset
|
392 File ${VIMRT}\pack\dist\opt\termdebug\plugin\*.* |
0ddb61a7404f
patch 8.0.1813: Windows installer doesn't install terminal debugger
Christian Brabandt <cb@256bit.org>
parents:
13196
diff
changeset
|
393 |
7 | 394 SetOutPath $0\plugin |
395 File ${VIMRT}\plugin\*.* | |
396 | |
801 | 397 SetOutPath $0\autoload |
398 File ${VIMRT}\autoload\*.* | |
399 | |
12816
218102da5226
patch 8.0.1285: occasional crash when using a channel
Christian Brabandt <cb@256bit.org>
parents:
12708
diff
changeset
|
400 SetOutPath $0\autoload\dist |
218102da5226
patch 8.0.1285: occasional crash when using a channel
Christian Brabandt <cb@256bit.org>
parents:
12708
diff
changeset
|
401 File ${VIMRT}\autoload\dist\*.* |
218102da5226
patch 8.0.1285: occasional crash when using a channel
Christian Brabandt <cb@256bit.org>
parents:
12708
diff
changeset
|
402 |
827 | 403 SetOutPath $0\autoload\xml |
404 File ${VIMRT}\autoload\xml\*.* | |
405 | |
7 | 406 SetOutPath $0\syntax |
407 File ${VIMRT}\syntax\*.* | |
408 | |
799 | 409 SetOutPath $0\spell |
410 File ${VIMRT}\spell\*.txt | |
411 File ${VIMRT}\spell\*.vim | |
412 File ${VIMRT}\spell\*.spl | |
413 File ${VIMRT}\spell\*.sug | |
414 | |
7 | 415 SetOutPath $0\tools |
416 File ${VIMRT}\tools\*.* | |
417 | |
418 SetOutPath $0\tutor | |
419 File ${VIMRT}\tutor\*.* | |
420 SectionEnd | |
421 | |
422 ########################################################## | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
423 Section "$(str_section_console)" id_section_console |
7 | 424 SectionIn 1 3 |
425 | |
426 SetOutPath $0 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
427 File /oname=vim.exe ${VIMSRC}\vimw32.exe |
7 | 428 StrCpy $2 "$2 vim view vimdiff" |
429 SectionEnd | |
430 | |
431 ########################################################## | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
432 Section "$(str_section_batch)" id_section_batch |
7 | 433 SectionIn 3 |
434 | |
435 StrCpy $1 "$1 -create-batfiles $2" | |
436 SectionEnd | |
437 | |
438 ########################################################## | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
439 SectionGroup $(str_group_icons) id_group_icons |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
440 Section "$(str_section_desktop)" id_section_desktop |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
441 SectionIn 1 3 |
7 | 442 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
443 StrCpy $1 "$1 -install-icons" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
444 SectionEnd |
7 | 445 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
446 Section "$(str_section_start_menu)" id_section_startmenu |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
447 SectionIn 1 3 |
7 | 448 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
449 StrCpy $1 "$1 -add-start-menu" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
450 SectionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
451 SectionGroupEnd |
7 | 452 |
453 ########################################################## | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
454 Section "$(str_section_edit_with)" id_section_editwith |
7 | 455 SectionIn 1 3 |
456 | |
457 SetOutPath $0 | |
12626
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
458 |
2217
120502692d82
Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
459 ${If} ${RunningX64} |
12626
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
460 # Install 64-bit gvimext.dll into the GvimExt64 directory. |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
461 SetOutPath $0\GvimExt64 |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
462 ClearErrors |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
463 !define LIBRARY_SHELL_EXTENSION |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
464 !define LIBRARY_X64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
465 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
466 "${VIMSRC}\GvimExt\gvimext64.dll" \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
467 "$0\GvimExt64\gvimext.dll" "$0" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
468 !undef LIBRARY_X64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
469 !undef LIBRARY_SHELL_EXTENSION |
2217
120502692d82
Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
470 ${EndIf} |
12626
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
471 |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
472 # Install 32-bit gvimext.dll into the GvimExt32 directory. |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
473 SetOutPath $0\GvimExt32 |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
474 ClearErrors |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
475 !define LIBRARY_SHELL_EXTENSION |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
476 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
477 "${VIMSRC}\GvimExt\gvimext.dll" \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
478 "$0\GvimExt32\gvimext.dll" "$0" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
479 !undef LIBRARY_SHELL_EXTENSION |
7 | 480 |
481 # We don't have a separate entry for the "Open With..." menu, assume | |
482 # the user wants either both or none. | |
483 StrCpy $1 "$1 -install-popup -install-openwith" | |
484 SectionEnd | |
485 | |
486 ########################################################## | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
487 Section "$(str_section_vim_rc)" id_section_vimrc |
7 | 488 SectionIn 1 3 |
489 | |
490 StrCpy $1 "$1 -create-vimrc" | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
491 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
492 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
493 SetRegView 64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
494 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
495 WriteRegStr HKLM "${UNINST_REG_KEY_VIM}" "vim_compat" "$vim_compat_stat" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
496 WriteRegStr HKLM "${UNINST_REG_KEY_VIM}" "vim_keyremap" "$vim_keymap_stat" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
497 WriteRegStr HKLM "${UNINST_REG_KEY_VIM}" "vim_mouse" "$vim_mouse_stat" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
498 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
499 SetRegView lastused |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
500 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
501 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
502 ${If} $vim_compat_stat == "vi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
503 StrCpy $1 "$1 -vimrc-compat vi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
504 ${ElseIf} $vim_compat_stat == "vim" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
505 StrCpy $1 "$1 -vimrc-compat vim" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
506 ${ElseIf} $vim_compat_stat == "defaults" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
507 StrCpy $1 "$1 -vimrc-compat defaults" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
508 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
509 StrCpy $1 "$1 -vimrc-compat all" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
510 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
511 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
512 ${If} $vim_keymap_stat == "default" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
513 StrCpy $1 "$1 -vimrc-remap no" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
514 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
515 StrCpy $1 "$1 -vimrc-remap win" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
516 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
517 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
518 ${If} $vim_mouse_stat == "default" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
519 StrCpy $1 "$1 -vimrc-behave default" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
520 ${ElseIf} $vim_mouse_stat == "windows" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
521 StrCpy $1 "$1 -vimrc-behave mswin" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
522 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
523 StrCpy $1 "$1 -vimrc-behave unix" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
524 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
525 |
7 | 526 SectionEnd |
527 | |
528 ########################################################## | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
529 SectionGroup $(str_group_plugin) id_group_plugin |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
530 Section "$(str_section_plugin_home)" id_section_pluginhome |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
531 SectionIn 1 3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
532 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
533 StrCpy $1 "$1 -create-directories home" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
534 SectionEnd |
7 | 535 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
536 Section "$(str_section_plugin_vim)" id_section_pluginvim |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
537 SectionIn 3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
538 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
539 StrCpy $1 "$1 -create-directories vim" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
540 SectionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
541 SectionGroupEnd |
7 | 542 |
543 ########################################################## | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
544 !ifdef HAVE_VIS_VIM |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
545 Section "$(str_section_vis_vim)" id_section_visvim |
7 | 546 SectionIn 3 |
547 | |
548 SetOutPath $0 | |
549 !insertmacro UpgradeDLL "${VIMSRC}\VisVim\VisVim.dll" "$0\VisVim.dll" "$0" | |
550 File ${VIMSRC}\VisVim\README_VisVim.txt | |
551 SectionEnd | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
552 !endif |
7 | 553 |
554 ########################################################## | |
555 !ifdef HAVE_NLS | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
556 Section "$(str_section_nls)" id_section_nls |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
557 SectionIn 1 3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
558 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
559 SetOutPath $0\lang |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
560 File /r ${VIMRT}\lang\*.* |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
561 SetOutPath $0\keymap |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
562 File ${VIMRT}\keymap\README.txt |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
563 File ${VIMRT}\keymap\*.vim |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
564 SetOutPath $0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
565 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
566 "${GETTEXT}\gettext${BIT}\libintl-8.dll" \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
567 "$0\libintl-8.dll" "$0" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
568 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
569 "${GETTEXT}\gettext${BIT}\libiconv-2.dll" \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
570 "$0\libiconv-2.dll" "$0" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
571 !if /FileExists "${GETTEXT}\gettext${BIT}\libgcc_s_sjlj-1.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
572 # Install libgcc_s_sjlj-1.dll only if it is needed. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
573 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
574 "${GETTEXT}\gettext${BIT}\libgcc_s_sjlj-1.dll" \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
575 "$0\libgcc_s_sjlj-1.dll" "$0" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
576 !endif |
7 | 577 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
578 ${If} ${SectionIsSelected} ${id_section_editwith} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
579 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
580 # Install DLLs for 64-bit gvimext.dll into the GvimExt64 directory. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
581 SetOutPath $0\GvimExt64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
582 ClearErrors |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
583 !define LIBRARY_X64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
584 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
585 "${GETTEXT}\gettext64\libintl-8.dll" \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
586 "$0\GvimExt64\libintl-8.dll" "$0\GvimExt64" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
587 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
588 "${GETTEXT}\gettext64\libiconv-2.dll" \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
589 "$0\GvimExt64\libiconv-2.dll" "$0\GvimExt64" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
590 !undef LIBRARY_X64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
591 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
592 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
593 # Install DLLs for 32-bit gvimext.dll into the GvimExt32 directory. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
594 SetOutPath $0\GvimExt32 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
595 ClearErrors |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
596 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
597 "${GETTEXT}\gettext32\libintl-8.dll" \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
598 "$0\GvimExt32\libintl-8.dll" "$0\GvimExt32" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
599 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
600 "${GETTEXT}\gettext32\libiconv-2.dll" \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
601 "$0\GvimExt32\libiconv-2.dll" "$0\GvimExt32" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
602 !if /FileExists "${GETTEXT}\gettext32\libgcc_s_sjlj-1.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
603 # Install libgcc_s_sjlj-1.dll only if it is needed. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
604 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
605 "${GETTEXT}\gettext32\libgcc_s_sjlj-1.dll" \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
606 "$0\GvimExt32\libgcc_s_sjlj-1.dll" "$0\GvimExt32" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
607 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
608 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
609 SectionEnd |
7 | 610 !endif |
611 | |
612 ########################################################## | |
613 Section -call_install_exe | |
614 SetOutPath $0 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
615 DetailPrint "$(str_msg_registering)" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
616 nsExec::Exec "$0\install.exe $1" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
617 Pop $3 |
7 | 618 SectionEnd |
619 | |
620 ########################################################## | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
621 !macro SaveSectionSelection section_id reg_value |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
622 ${If} ${SectionIsSelected} ${section_id} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
623 WriteRegDWORD HKLM "${UNINST_REG_KEY_VIM}" ${reg_value} 1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
624 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
625 WriteRegDWORD HKLM "${UNINST_REG_KEY_VIM}" ${reg_value} 0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
626 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
627 !macroend |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
628 |
7 | 629 Section -post |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
630 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
631 # Get estimated install size |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
632 SectionGetSize ${id_section_exe} $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
633 ${If} ${SectionIsSelected} ${id_section_console} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
634 SectionGetSize ${id_section_console} $4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
635 IntOp $3 $3 + $4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
636 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
637 ${If} ${SectionIsSelected} ${id_section_editwith} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
638 SectionGetSize ${id_section_editwith} $4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
639 IntOp $3 $3 + $4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
640 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
641 !ifdef HAVE_VIS_VIM |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
642 ${If} ${SectionIsSelected} ${id_section_visvim} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
643 SectionGetSize ${id_section_visvim} $4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
644 IntOp $3 $3 + $4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
645 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
646 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
647 !ifdef HAVE_NLS |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
648 ${If} ${SectionIsSelected} ${id_section_nls} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
649 SectionGetSize ${id_section_nls} $4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
650 IntOp $3 $3 + $4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
651 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
652 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
653 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
654 # Register EstimatedSize and AllowSilent. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
655 # Other information will be set by the install.exe (dosinst.c). |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
656 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
657 SetRegView 64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
658 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
659 WriteRegDWORD HKLM "${UNINST_REG_KEY_VIM}" "EstimatedSize" $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
660 WriteRegDWORD HKLM "${UNINST_REG_KEY_VIM}" "AllowSilent" 1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
661 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
662 SetRegView lastused |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
663 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
664 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
665 # Store the selections to the registry. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
666 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
667 SetRegView 64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
668 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
669 !insertmacro SaveSectionSelection ${id_section_console} "select_console" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
670 !insertmacro SaveSectionSelection ${id_section_batch} "select_batch" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
671 !insertmacro SaveSectionSelection ${id_section_desktop} "select_desktop" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
672 !insertmacro SaveSectionSelection ${id_section_startmenu} "select_startmenu" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
673 !insertmacro SaveSectionSelection ${id_section_editwith} "select_editwith" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
674 !insertmacro SaveSectionSelection ${id_section_vimrc} "select_vimrc" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
675 !insertmacro SaveSectionSelection ${id_section_pluginhome} "select_pluginhome" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
676 !insertmacro SaveSectionSelection ${id_section_pluginvim} "select_pluginvim" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
677 !ifdef HAVE_VIS_VIM |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
678 !insertmacro SaveSectionSelection ${id_section_visvim} "select_visvim" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
679 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
680 !ifdef HAVE_NLS |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
681 !insertmacro SaveSectionSelection ${id_section_nls} "select_nls" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
682 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
683 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
684 SetRegView lastused |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
685 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
686 |
7 | 687 BringToFront |
688 SectionEnd | |
689 | |
690 ########################################################## | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
691 !macro LoadSectionSelection section_id reg_value |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
692 ClearErrors |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
693 ReadRegDWORD $3 HKLM "${UNINST_REG_KEY_VIM}" ${reg_value} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
694 ${IfNot} ${Errors} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
695 ${If} $3 = 1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
696 !insertmacro SelectSection ${section_id} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
697 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
698 !insertmacro UnselectSection ${section_id} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
699 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
700 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
701 !macroend |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
702 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
703 Function .onInit |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
704 !ifdef HAVE_MULTI_LANG |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
705 # Select a language (or read from the registry). |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
706 !insertmacro MUI_LANGDLL_DISPLAY |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
707 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
708 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
709 # Check $VIM |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
710 ReadEnvStr $INSTDIR "VIM" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
711 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
712 call CheckOldVim |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
713 Pop $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
714 ${If} $3 == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
715 # No old versions of Vim found. Unselect and hide the section. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
716 !insertmacro UnselectSection ${id_section_old_ver} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
717 SectionSetInstTypes ${id_section_old_ver} 0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
718 SectionSetText ${id_section_old_ver} "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
719 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
720 ${If} $INSTDIR == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
721 StrCpy $INSTDIR $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
722 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
723 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
724 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
725 # If did not find a path: use the default dir. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
726 ${If} $INSTDIR == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
727 !ifdef WIN64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
728 StrCpy $INSTDIR "$PROGRAMFILES64\Vim" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
729 !else |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
730 StrCpy $INSTDIR "$PROGRAMFILES\Vim" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
731 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
732 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
733 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
734 # Load the selections from the registry (if any). |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
735 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
736 SetRegView 64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
737 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
738 !insertmacro LoadSectionSelection ${id_section_console} "select_console" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
739 !insertmacro LoadSectionSelection ${id_section_batch} "select_batch" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
740 !insertmacro LoadSectionSelection ${id_section_desktop} "select_desktop" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
741 !insertmacro LoadSectionSelection ${id_section_startmenu} "select_startmenu" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
742 !insertmacro LoadSectionSelection ${id_section_editwith} "select_editwith" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
743 !insertmacro LoadSectionSelection ${id_section_vimrc} "select_vimrc" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
744 !insertmacro LoadSectionSelection ${id_section_pluginhome} "select_pluginhome" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
745 !insertmacro LoadSectionSelection ${id_section_pluginvim} "select_pluginvim" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
746 !ifdef HAVE_VIS_VIM |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
747 !insertmacro LoadSectionSelection ${id_section_visvim} "select_visvim" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
748 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
749 !ifdef HAVE_NLS |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
750 !insertmacro LoadSectionSelection ${id_section_nls} "select_nls" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
751 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
752 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
753 SetRegView lastused |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
754 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
755 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
756 # User variables: |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
757 # $0 - holds the directory the executables are installed to |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
758 # $1 - holds the parameters to be passed to install.exe. Starts with OLE |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
759 # registration (since a non-OLE gvim will not complain, and we want to |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
760 # always register an OLE gvim). |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
761 # $2 - holds the names to create batch files for |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
762 StrCpy $0 "$INSTDIR\vim${VER_MAJOR}${VER_MINOR}" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
763 StrCpy $1 "-register-OLE" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
764 StrCpy $2 "gvim evim gview gvimdiff vimtutor" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
765 FunctionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
766 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
767 Function .onInstSuccess |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
768 WriteUninstaller vim${VER_MAJOR}${VER_MINOR}\uninstall-gui.exe |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
769 FunctionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
770 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
771 Function .onInstFailed |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
772 MessageBox MB_OK|MB_ICONEXCLAMATION "$(str_msg_install_fail)" /SD IDOK |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
773 FunctionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
774 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
775 ########################################################## |
12708
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
776 Function SetCustom |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
777 # Display the _vimrc setting dialog using nsDialogs. |
12708
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
778 |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
779 # Check if a _vimrc should be created |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
780 ${IfNot} ${SectionIsSelected} ${id_section_vimrc} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
781 Abort |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
782 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
783 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
784 !insertmacro MUI_HEADER_TEXT \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
785 $(str_vimrc_page_title) $(str_vimrc_page_subtitle) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
786 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
787 nsDialogs::Create 1018 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
788 Pop $vim_dialog |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
789 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
790 ${If} $vim_dialog == error |
12708
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
791 Abort |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
792 ${EndIf} |
12708
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
793 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
794 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
795 SetRegView 64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
796 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
797 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
798 GetFunctionAddress $3 ValidateCustom |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
799 nsDialogs::OnBack $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
800 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
801 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
802 # 1st group - Compatibility |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
803 ${NSD_CreateGroupBox} 0 0 100% 32% $(str_msg_compat_title) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
804 Pop $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
805 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
806 ${NSD_CreateLabel} 5% 10% 35% 8% $(str_msg_compat_desc) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
807 Pop $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
808 ${NSD_CreateDropList} 18% 19% 75% 8% "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
809 Pop $vim_nsd_compat |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
810 ${NSD_CB_AddString} $vim_nsd_compat $(str_msg_compat_vi) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
811 ${NSD_CB_AddString} $vim_nsd_compat $(str_msg_compat_vim) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
812 ${NSD_CB_AddString} $vim_nsd_compat $(str_msg_compat_defaults) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
813 ${NSD_CB_AddString} $vim_nsd_compat $(str_msg_compat_all) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
814 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
815 # Default selection |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
816 ${If} $vim_compat_stat == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
817 ReadRegStr $3 HKLM "${UNINST_REG_KEY_VIM}" "vim_compat" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
818 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
819 StrCpy $3 $vim_compat_stat |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
820 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
821 ${If} $3 == "defaults" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
822 StrCpy $4 2 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
823 ${ElseIf} $3 == "vim" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
824 StrCpy $4 1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
825 ${ElseIf} $3 == "vi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
826 StrCpy $4 0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
827 ${Else} # default |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
828 StrCpy $4 3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
829 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
830 ${NSD_CB_SetSelectionIndex} $vim_nsd_compat $4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
831 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
832 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
833 # 2nd group - Key remapping |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
834 ${NSD_CreateGroupBox} 0 35% 100% 31% $(str_msg_keymap_title) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
835 Pop $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
836 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
837 ${NSD_CreateLabel} 5% 45% 90% 8% $(str_msg_keymap_desc) |
12708
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
838 Pop $3 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
839 ${NSD_CreateDropList} 38% 54% 55% 8% "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
840 Pop $vim_nsd_keymap |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
841 ${NSD_CB_AddString} $vim_nsd_keymap $(str_msg_keymap_default) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
842 ${NSD_CB_AddString} $vim_nsd_keymap $(str_msg_keymap_windows) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
843 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
844 # Default selection |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
845 ${If} $vim_keymap_stat == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
846 ReadRegStr $3 HKLM "${UNINST_REG_KEY_VIM}" "vim_keyremap" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
847 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
848 StrCpy $3 $vim_keymap_stat |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
849 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
850 ${If} $3 == "windows" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
851 StrCpy $4 1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
852 ${Else} # default |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
853 StrCpy $4 0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
854 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
855 ${NSD_CB_SetSelectionIndex} $vim_nsd_keymap $4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
856 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
857 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
858 # 3rd group - Mouse behavior |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
859 ${NSD_CreateGroupBox} 0 69% 100% 31% $(str_msg_mouse_title) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
860 Pop $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
861 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
862 ${NSD_CreateLabel} 5% 79% 90% 8% $(str_msg_mouse_desc) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
863 Pop $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
864 ${NSD_CreateDropList} 23% 87% 70% 8% "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
865 Pop $vim_nsd_mouse |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
866 ${NSD_CB_AddString} $vim_nsd_mouse $(str_msg_mouse_default) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
867 ${NSD_CB_AddString} $vim_nsd_mouse $(str_msg_mouse_windows) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
868 ${NSD_CB_AddString} $vim_nsd_mouse $(str_msg_mouse_unix) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
869 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
870 # Default selection |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
871 ${If} $vim_mouse_stat == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
872 ReadRegStr $3 HKLM "${UNINST_REG_KEY_VIM}" "vim_mouse" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
873 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
874 StrCpy $3 $vim_mouse_stat |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
875 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
876 ${If} $3 == "xterm" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
877 StrCpy $4 2 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
878 ${ElseIf} $3 == "windows" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
879 StrCpy $4 1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
880 ${Else} # default |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
881 StrCpy $4 0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
882 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
883 ${NSD_CB_SetSelectionIndex} $vim_nsd_mouse $4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
884 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
885 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
886 SetRegView lastused |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
887 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
888 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
889 nsDialogs::Show |
12708
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
890 FunctionEnd |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
891 |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
892 Function ValidateCustom |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
893 ${NSD_CB_GetSelectionIndex} $vim_nsd_compat $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
894 ${If} $3 = 0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
895 StrCpy $vim_compat_stat "vi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
896 ${ElseIf} $3 = 1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
897 StrCpy $vim_compat_stat "vim" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
898 ${ElseIf} $3 = 2 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
899 StrCpy $vim_compat_stat "defaults" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
900 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
901 StrCpy $vim_compat_stat "all" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
902 ${EndIf} |
12708
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
903 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
904 ${NSD_CB_GetSelectionIndex} $vim_nsd_keymap $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
905 ${If} $3 = 0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
906 StrCpy $vim_keymap_stat "default" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
907 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
908 StrCpy $vim_keymap_stat "windows" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
909 ${EndIf} |
12708
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
910 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
911 ${NSD_CB_GetSelectionIndex} $vim_nsd_mouse $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
912 ${If} $3 = 0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
913 StrCpy $vim_mouse_stat "default" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
914 ${ElseIf} $3 = 1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
915 StrCpy $vim_mouse_stat "windows" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
916 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
917 StrCpy $vim_mouse_stat "xterm" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
918 ${EndIf} |
12708
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
919 FunctionEnd |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
920 |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
921 ########################################################## |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
922 # Description for Installer Sections |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
923 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
924 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
925 !insertmacro MUI_DESCRIPTION_TEXT ${id_section_old_ver} $(str_desc_old_ver) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
926 !insertmacro MUI_DESCRIPTION_TEXT ${id_section_exe} $(str_desc_exe) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
927 !insertmacro MUI_DESCRIPTION_TEXT ${id_section_console} $(str_desc_console) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
928 !insertmacro MUI_DESCRIPTION_TEXT ${id_section_batch} $(str_desc_batch) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
929 !insertmacro MUI_DESCRIPTION_TEXT ${id_group_icons} $(str_desc_icons) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
930 !insertmacro MUI_DESCRIPTION_TEXT ${id_section_desktop} $(str_desc_desktop) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
931 !insertmacro MUI_DESCRIPTION_TEXT ${id_section_startmenu} $(str_desc_start_menu) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
932 !insertmacro MUI_DESCRIPTION_TEXT ${id_section_editwith} $(str_desc_edit_with) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
933 !insertmacro MUI_DESCRIPTION_TEXT ${id_section_vimrc} $(str_desc_vim_rc) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
934 !insertmacro MUI_DESCRIPTION_TEXT ${id_group_plugin} $(str_desc_plugin) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
935 !insertmacro MUI_DESCRIPTION_TEXT ${id_section_pluginhome} $(str_desc_plugin_home) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
936 !insertmacro MUI_DESCRIPTION_TEXT ${id_section_pluginvim} $(str_desc_plugin_vim) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
937 !ifdef HAVE_VIS_VIM |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
938 !insertmacro MUI_DESCRIPTION_TEXT ${id_section_visvim} $(str_desc_vis_vim) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
939 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
940 !ifdef HAVE_NLS |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
941 !insertmacro MUI_DESCRIPTION_TEXT ${id_section_nls} $(str_desc_nls) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
942 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
943 !insertmacro MUI_FUNCTION_DESCRIPTION_END |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
944 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
945 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
946 ########################################################## |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
947 # Uninstaller Functions and Sections |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
948 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
949 Function un.onInit |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
950 !ifdef HAVE_MULTI_LANG |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
951 # Get the language from the registry. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
952 !insertmacro MUI_UNGETLANGUAGE |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
953 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
954 FunctionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
955 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
956 Section "un.$(str_unsection_register)" id_unsection_register |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
957 SectionIn RO |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
958 |
7 | 959 # Apparently $INSTDIR is set to the directory where the uninstaller is |
960 # created. Thus the "vim61" directory is included in it. | |
961 StrCpy $0 "$INSTDIR" | |
962 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
963 !ifdef HAVE_VIS_VIM |
7 | 964 # If VisVim was installed, unregister the DLL. |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
965 ${If} ${FileExists} "$0\VisVim.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
966 ExecWait "regsvr32.exe /u /s $0\VisVim.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
967 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
968 !endif |
7 | 969 |
970 # delete the context menu entry and batch files | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
971 DetailPrint "$(str_msg_unregistering)" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
972 nsExec::Exec "$0\uninstal.exe -nsis" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
973 Pop $3 |
7 | 974 |
975 # We may have been put to the background when uninstall did something. | |
976 BringToFront | |
977 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
978 # Delete the installer language setting. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
979 DeleteRegKey ${MUI_LANGDLL_REGISTRY_ROOT} ${MUI_LANGDLL_REGISTRY_KEY} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
980 SectionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
981 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
982 Section "un.$(str_unsection_exe)" id_unsection_exe |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
983 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
984 StrCpy $0 "$INSTDIR" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
985 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
986 # Delete gettext and iconv DLLs |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
987 ${If} ${FileExists} "$0\libiconv-2.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
988 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
989 "$0\libiconv-2.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
990 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
991 ${If} ${FileExists} "$0\libintl-8.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
992 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
993 "$0\libintl-8.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
994 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
995 ${If} ${FileExists} "$0\libgcc_s_sjlj-1.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
996 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
997 "$0\libgcc_s_sjlj-1.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
998 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
999 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1000 # Delete other DLLs |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1001 Delete /REBOOTOK $0\*.dll |
7 | 1002 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1003 # Delete 64-bit GvimExt |
12626
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
1004 ${If} ${RunningX64} |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1005 !define LIBRARY_X64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1006 ${If} ${FileExists} "$0\GvimExt64\gvimext.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1007 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1008 "$0\GvimExt64\gvimext.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1009 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1010 ${If} ${FileExists} "$0\GvimExt64\libiconv-2.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1011 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1012 "$0\GvimExt64\libiconv-2.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1013 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1014 ${If} ${FileExists} "$0\GvimExt64\libintl-8.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1015 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1016 "$0\GvimExt64\libintl-8.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1017 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1018 ${If} ${FileExists} "$0\GvimExt64\libwinpthread-1.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1019 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1020 "$0\GvimExt64\libwinpthread-1.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1021 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1022 !undef LIBRARY_X64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1023 RMDir /r $0\GvimExt64 |
12626
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
1024 ${EndIf} |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
1025 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1026 # Delete 32-bit GvimExt |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1027 ${If} ${FileExists} "$0\GvimExt32\gvimext.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1028 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1029 "$0\GvimExt32\gvimext.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1030 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1031 ${If} ${FileExists} "$0\GvimExt32\libiconv-2.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1032 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1033 "$0\GvimExt32\libiconv-2.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1034 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1035 ${If} ${FileExists} "$0\GvimExt32\libintl-8.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1036 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1037 "$0\GvimExt32\libintl-8.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1038 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1039 ${If} ${FileExists} "$0\GvimExt32\libgcc_s_sjlj-1.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1040 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1041 "$0\GvimExt32\libgcc_s_sjlj-1.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1042 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1043 RMDir /r $0\GvimExt32 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1044 |
7 | 1045 ClearErrors |
1046 # Remove everything but *.dll files. Avoids that | |
1047 # a lot remains when gvimext.dll cannot be deleted. | |
879 | 1048 RMDir /r $0\autoload |
7 | 1049 RMDir /r $0\colors |
1050 RMDir /r $0\compiler | |
1051 RMDir /r $0\doc | |
1052 RMDir /r $0\ftplugin | |
1053 RMDir /r $0\indent | |
1054 RMDir /r $0\macros | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1055 RMDir /r $0\pack |
7 | 1056 RMDir /r $0\plugin |
879 | 1057 RMDir /r $0\spell |
7 | 1058 RMDir /r $0\syntax |
1059 RMDir /r $0\tools | |
1060 RMDir /r $0\tutor | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1061 !ifdef HAVE_VIS_VIM |
7 | 1062 RMDir /r $0\VisVim |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1063 !endif |
7 | 1064 RMDir /r $0\lang |
1065 RMDir /r $0\keymap | |
1066 Delete $0\*.exe | |
1067 Delete $0\*.bat | |
1068 Delete $0\*.vim | |
1069 Delete $0\*.txt | |
1070 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1071 ${If} ${Errors} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1072 MessageBox MB_OK|MB_ICONEXCLAMATION $(str_msg_rm_exe_fail) /SD IDOK |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1073 ${EndIf} |
7 | 1074 |
1075 # No error message if the "vim62" directory can't be removed, the | |
1076 # gvimext.dll may still be there. | |
1077 RMDir $0 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1078 SectionEnd |
7 | 1079 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1080 # Remove "vimfiles" directory under the specified directory. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1081 !macro RemoveVimfiles dir |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1082 ${If} ${FileExists} ${dir}\vimfiles |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1083 RMDir ${dir}\vimfiles\colors |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1084 RMDir ${dir}\vimfiles\compiler |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1085 RMDir ${dir}\vimfiles\doc |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1086 RMDir ${dir}\vimfiles\ftdetect |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1087 RMDir ${dir}\vimfiles\ftplugin |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1088 RMDir ${dir}\vimfiles\indent |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1089 RMDir ${dir}\vimfiles\keymap |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1090 RMDir ${dir}\vimfiles\plugin |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1091 RMDir ${dir}\vimfiles\syntax |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1092 RMDir ${dir}\vimfiles |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1093 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1094 !macroend |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1095 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1096 SectionGroup "un.$(str_ungroup_plugin)" id_ungroup_plugin |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1097 Section /o "un.$(str_unsection_plugin_home)" id_unsection_plugin_home |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1098 # get the home dir |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1099 ReadEnvStr $0 "HOME" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1100 ${If} $0 == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1101 ReadEnvStr $0 "HOMEDRIVE" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1102 ReadEnvStr $1 "HOMEPATH" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1103 StrCpy $0 "$0$1" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1104 ${If} $0 == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1105 ReadEnvStr $0 "USERPROFILE" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1106 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1107 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1108 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1109 ${If} $0 != "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1110 !insertmacro RemoveVimfiles $0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1111 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1112 SectionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1113 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1114 Section "un.$(str_unsection_plugin_vim)" id_unsection_plugin_vim |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1115 # get the parent dir of the installation |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1116 Push $INSTDIR |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1117 Call un.GetParent |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1118 Pop $0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1119 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1120 # if a plugin dir was created at installation remove it |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1121 !insertmacro RemoveVimfiles $0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1122 SectionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1123 SectionGroupEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1124 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1125 Section "un.$(str_unsection_rootdir)" id_unsection_rootdir |
7 | 1126 # get the parent dir of the installation |
1127 Push $INSTDIR | |
1128 Call un.GetParent | |
1129 Pop $0 | |
1130 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1131 Delete $0\_vimrc |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1132 RMDir $0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1133 SectionEnd |
7 | 1134 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1135 ########################################################## |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1136 # Description for Uninstaller Sections |
7 | 1137 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1138 !insertmacro MUI_UNFUNCTION_DESCRIPTION_BEGIN |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1139 !insertmacro MUI_DESCRIPTION_TEXT ${id_unsection_register} $(str_desc_unregister) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1140 !insertmacro MUI_DESCRIPTION_TEXT ${id_unsection_exe} $(str_desc_rm_exe) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1141 !insertmacro MUI_DESCRIPTION_TEXT ${id_ungroup_plugin} $(str_desc_rm_plugin) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1142 !insertmacro MUI_DESCRIPTION_TEXT ${id_unsection_plugin_home} $(str_desc_rm_plugin_home) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1143 !insertmacro MUI_DESCRIPTION_TEXT ${id_unsection_plugin_vim} $(str_desc_rm_plugin_vim) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1144 !insertmacro MUI_DESCRIPTION_TEXT ${id_unsection_rootdir} $(str_desc_rm_rootdir) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1145 !insertmacro MUI_UNFUNCTION_DESCRIPTION_END |