Mercurial > vim
annotate nsis/gvim.nsi @ 23888:d95403445b6b v8.2.2486
patch 8.2.2486: Vim9: some errors for white space do not show context
Commit: https://github.com/vim/vim/commit/ba98fb54aefada4c36390add4c7dd90b93e7e5bb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 7 18:06:29 2021 +0100
patch 8.2.2486: Vim9: some errors for white space do not show context
Problem: Vim9: some errors for white space do not show context.
Solution: Include the text at the error.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 07 Feb 2021 18:15:05 +0100 |
parents | 7edf403da9f5 |
children | a934526dacd2 |
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 |
19378
e548f5ed3645
patch 8.2.0247: misleading comment in NSIS installer script
Bram Moolenaar <Bram@vim.org>
parents:
19139
diff
changeset
|
42 # Comment the following line to create an English-only installer: |
15213
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 |
16804
9fa322a3bc31
patch 8.1.1404: cannot change the patch level when building with NSIS
Bram Moolenaar <Bram@vim.org>
parents:
16674
diff
changeset
|
50 # Definition of Patch for Vim |
9fa322a3bc31
patch 8.1.1404: cannot change the patch level when building with NSIS
Bram Moolenaar <Bram@vim.org>
parents:
16674
diff
changeset
|
51 !ifndef PATCHLEVEL |
9fa322a3bc31
patch 8.1.1404: cannot change the patch level when building with NSIS
Bram Moolenaar <Bram@vim.org>
parents:
16674
diff
changeset
|
52 !define PATCHLEVEL 0 |
9fa322a3bc31
patch 8.1.1404: cannot change the patch level when building with NSIS
Bram Moolenaar <Bram@vim.org>
parents:
16674
diff
changeset
|
53 !endif |
9fa322a3bc31
patch 8.1.1404: cannot change the patch level when building with NSIS
Bram Moolenaar <Bram@vim.org>
parents:
16674
diff
changeset
|
54 |
7 | 55 # ----------- No configurable settings below this line ----------- |
56 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
57 !include "Library.nsh" # For DLL install |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
58 !ifdef HAVE_VIS_VIM |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
59 !include "UpgradeDLL.nsh" # for VisVim.dll |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
60 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
61 !include "LogicLib.nsh" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
62 !include "MUI2.nsh" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
63 !include "nsDialogs.nsh" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
64 !include "Sections.nsh" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
65 !include "x64.nsh" |
7 | 66 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
67 !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
|
68 !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
|
69 !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
|
70 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
71 !ifdef WIN64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
72 Name "${PRODUCT} (x64)" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
73 !else |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
74 Name "${PRODUCT}" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
75 !endif |
7 | 76 OutFile gvim${VER_MAJOR}${VER_MINOR}.exe |
77 CRCCheck force | |
7613
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
78 SetCompressor /SOLID lzma |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
79 SetCompressorDictSize 64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
80 ManifestDPIAware true |
7 | 81 SetDatablockOptimize on |
2217
120502692d82
Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
82 RequestExecutionLevel highest |
7 | 83 |
84 !ifdef HAVE_UPX | |
85 !packhdr temp.dat "upx --best --compress-icons=1 temp.dat" | |
86 !endif | |
87 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
88 !ifdef WIN64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
89 !define BIT 64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
90 !else |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
91 !define BIT 32 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
92 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
93 |
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 # MUI2 settings |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
96 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
97 !define MUI_ABORTWARNING |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
98 !define MUI_UNABORTWARNING |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
99 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
100 !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
|
101 !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
|
102 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
103 # 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
|
104 !define MUI_LANGDLL_ALLLANGUAGES |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
105 !define MUI_LANGDLL_REGISTRY_ROOT "HKCU" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
106 !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
|
107 !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
|
108 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
109 !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
|
110 !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
|
111 !define MUI_HEADERIMAGE |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
112 !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
|
113 !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
|
114 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
115 !define MUI_WELCOMEFINISHPAGE_BITMAP_STRETCH "AspectFitHeight" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
116 !define MUI_UNWELCOMEFINISHPAGE_BITMAP_STRETCH "AspectFitHeight" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
117 !define MUI_HEADERIMAGE_BITMAP_STRETCH "AspectFitHeight" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
118 !define MUI_HEADERIMAGE_UNBITMAP_STRETCH "AspectFitHeight" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
119 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
120 !define MUI_COMPONENTSPAGE_SMALLDESC |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
121 !define MUI_LICENSEPAGE_CHECKBOX |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
122 !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
|
123 !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
|
124 !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
|
125 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
126 # 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
|
127 # obtained below with CheckOldVim. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
128 !ifdef WIN64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
129 InstallDir "$PROGRAMFILES64\Vim" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
130 !else |
7 | 131 InstallDir "$PROGRAMFILES\Vim" |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
132 !endif |
7 | 133 |
134 # 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
|
135 InstType $(str_type_typical) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
136 InstType $(str_type_minimal) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
137 InstType $(str_type_full) |
7 | 138 |
139 SilentInstall normal | |
140 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
141 # General custom functions for MUI2: |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
142 #!define MUI_CUSTOMFUNCTION_ABORT VimOnUserAbort |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
143 #!define MUI_CUSTOMFUNCTION_UNABORT un.VimOnUserAbort |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
144 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
145 # Installer pages |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
146 !insertmacro MUI_PAGE_WELCOME |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
147 !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
|
148 !insertmacro MUI_PAGE_COMPONENTS |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
149 Page custom SetCustom ValidateCustom |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
150 #!define MUI_PAGE_CUSTOMFUNCTION_LEAVE VimFinalCheck |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
151 !insertmacro MUI_PAGE_DIRECTORY |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
152 !insertmacro MUI_PAGE_INSTFILES |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
153 !define MUI_FINISHPAGE_NOREBOOTSUPPORT |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
154 !insertmacro MUI_PAGE_FINISH |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
155 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
156 # Uninstaller pages: |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
157 !insertmacro MUI_UNPAGE_CONFIRM |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
158 #!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
|
159 !insertmacro MUI_UNPAGE_COMPONENTS |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
160 !insertmacro MUI_UNPAGE_INSTFILES |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
161 !define MUI_FINISHPAGE_NOREBOOTSUPPORT |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
162 !insertmacro MUI_UNPAGE_FINISH |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
163 |
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 # Languages Files |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
166 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
167 !insertmacro MUI_RESERVEFILE_LANGDLL |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
168 !include "lang\english.nsi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
169 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
170 # Include support for other languages: |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
171 !ifdef HAVE_MULTI_LANG |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
172 !include "lang\danish.nsi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
173 !include "lang\dutch.nsi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
174 !include "lang\german.nsi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
175 !include "lang\italian.nsi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
176 !include "lang\japanese.nsi" |
22337
7edf403da9f5
patch 8.2.1717 Problem: MS-Windows installer doesn't have Russian translations. Solution: Add Russian translations. (closes #6985)
Bram Moolenaar <Bram@vim.org>
parents:
21327
diff
changeset
|
177 !include "lang\russian.nsi" |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
178 !include "lang\simpchinese.nsi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
179 !include "lang\tradchinese.nsi" |
19139
edf498427f99
patch 8.2.0129: MS-Windows installer doesn't use Turkish translations
Bram Moolenaar <Bram@vim.org>
parents:
18174
diff
changeset
|
180 !include "lang\turkish.nsi" |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
181 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
182 |
16674
3c182c550195
patch 8.1.1339: installer needs to product name et al.
Bram Moolenaar <Bram@vim.org>
parents:
16451
diff
changeset
|
183 ########################################################## |
3c182c550195
patch 8.1.1339: installer needs to product name et al.
Bram Moolenaar <Bram@vim.org>
parents:
16451
diff
changeset
|
184 # Version resources |
3c182c550195
patch 8.1.1339: installer needs to product name et al.
Bram Moolenaar <Bram@vim.org>
parents:
16451
diff
changeset
|
185 |
3c182c550195
patch 8.1.1339: installer needs to product name et al.
Bram Moolenaar <Bram@vim.org>
parents:
16451
diff
changeset
|
186 VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "Vim" |
3c182c550195
patch 8.1.1339: installer needs to product name et al.
Bram Moolenaar <Bram@vim.org>
parents:
16451
diff
changeset
|
187 VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "Vim Developers" |
3c182c550195
patch 8.1.1339: installer needs to product name et al.
Bram Moolenaar <Bram@vim.org>
parents:
16451
diff
changeset
|
188 VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalTrademarks" "Vim" |
3c182c550195
patch 8.1.1339: installer needs to product name et al.
Bram Moolenaar <Bram@vim.org>
parents:
16451
diff
changeset
|
189 VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "Copyright (C) 1996" |
3c182c550195
patch 8.1.1339: installer needs to product name et al.
Bram Moolenaar <Bram@vim.org>
parents:
16451
diff
changeset
|
190 VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "Vi Improved - A Text Editor" |
16804
9fa322a3bc31
patch 8.1.1404: cannot change the patch level when building with NSIS
Bram Moolenaar <Bram@vim.org>
parents:
16674
diff
changeset
|
191 VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${VER_MAJOR}.${VER_MINOR}.${PATCHLEVEL}.0" |
9fa322a3bc31
patch 8.1.1404: cannot change the patch level when building with NSIS
Bram Moolenaar <Bram@vim.org>
parents:
16674
diff
changeset
|
192 VIProductVersion "${VER_MAJOR}.${VER_MINOR}.${PATCHLEVEL}.0" |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
193 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
194 # Global variables |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
195 Var vim_dialog |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
196 Var vim_nsd_compat |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
197 Var vim_nsd_keymap |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
198 Var vim_nsd_mouse |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
199 Var vim_compat_stat |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
200 Var vim_keymap_stat |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
201 Var vim_mouse_stat |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
202 |
7 | 203 |
13196
fbc58aa4ea1e
patch 8.0.1472: MS-Windows: nsis installer is a bit slow
Christian Brabandt <cb@256bit.org>
parents:
12816
diff
changeset
|
204 # Reserve files |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
205 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
|
206 |
7 | 207 ########################################################## |
208 # Functions | |
209 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
210 # Get parent directory |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
211 # 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
|
212 !macro GetParent un |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
213 Function ${un}GetParent |
7 | 214 Exch $0 ; old $0 is on top of stack |
215 Push $1 | |
216 Push $2 | |
217 StrCpy $1 -1 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
218 ${Do} |
7 | 219 StrCpy $2 $0 1 $1 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
220 ${If} $2 == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
221 ${OrIf} $2 == "\" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
222 ${ExitDo} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
223 ${EndIf} |
7 | 224 IntOp $1 $1 - 1 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
225 ${Loop} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
226 StrCpy $0 $0 $1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
227 Pop $2 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
228 Pop $1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
229 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
|
230 FunctionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
231 !macroend |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
232 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
233 !insertmacro GetParent "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
234 !insertmacro GetParent "un." |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
235 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
236 # Check if Vim is already installed. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
237 # 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
|
238 Function CheckOldVim |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
239 Push $0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
240 Push $R0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
241 Push $R1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
242 Push $R2 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
243 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
244 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
245 SetRegView 64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
246 ${EndIf} |
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 ClearErrors |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
249 StrCpy $0 "" # Installed directory |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
250 StrCpy $R0 0 # Sub-key index |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
251 StrCpy $R1 "" # Sub-key |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
252 ${Do} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
253 # Eumerate the sub-key: |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
254 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
|
255 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
256 # Stop if no more sub-key: |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
257 ${If} ${Errors} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
258 ${OrIf} $R1 == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
259 ${ExitDo} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
260 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
261 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
262 # Move to the next sub-key: |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
263 IntOp $R0 $R0 + 1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
264 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
265 # 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
|
266 StrCpy $R2 $R1 4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
267 ${If} $R2 S!= "Vim " |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
268 ${Continue} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
269 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
270 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
271 # Verifies required sub-keys: |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
272 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
|
273 ${If} ${Errors} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
274 ${OrIf} $R2 == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
275 ${Continue} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
276 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
277 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
278 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
|
279 ${If} ${Errors} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
280 ${OrIf} $R2 == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
281 ${Continue} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
282 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
283 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
284 # Found |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
285 Push $R2 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
286 call GetParent |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
287 call GetParent |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
288 Pop $0 # Vim directory |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
289 ${ExitDo} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
290 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
291 ${Loop} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
292 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
293 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
294 SetRegView lastused |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
295 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
296 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
297 Pop $R2 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
298 Pop $R1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
299 Pop $R0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
300 Exch $0 # put $0 on top of stack, restore $0 to original value |
7 | 301 FunctionEnd |
302 | |
303 ########################################################## | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
304 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
|
305 SectionIn 1 2 3 RO |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
306 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
307 # 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
|
308 SetOutPath $TEMP |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
309 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
|
310 DetailPrint "$(str_msg_uninstalling)" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
311 ${Do} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
312 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
|
313 Pop $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
314 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
315 call CheckOldVim |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
316 Pop $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
317 ${If} $3 == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
318 ${ExitDo} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
319 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
320 # 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
|
321 # 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
|
322 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
323 ${ExitDo} # Just ignore for now. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
324 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
325 ${Loop} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
326 Delete $TEMP\install.exe |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
327 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
|
328 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
329 # 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
|
330 BringToFront |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
331 SectionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
332 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
333 ########################################################## |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
334 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
|
335 SectionIn 1 2 3 RO |
7 | 336 |
337 # we need also this here if the user changes the instdir | |
338 StrCpy $0 "$INSTDIR\vim${VER_MAJOR}${VER_MINOR}" | |
339 | |
340 SetOutPath $0 | |
341 File /oname=gvim.exe ${VIMSRC}\gvim_ole.exe | |
16451
7ae2396cef62
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents:
16308
diff
changeset
|
342 !if /FileExists "${VIMSRC}\vim${BIT}.dll" |
7ae2396cef62
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents:
16308
diff
changeset
|
343 File ${VIMSRC}\vim${BIT}.dll |
7ae2396cef62
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents:
16308
diff
changeset
|
344 !endif |
7 | 345 File /oname=install.exe ${VIMSRC}\installw32.exe |
18174
1ec6539cef68
patch 8.1.2082: some files have a weird name to fit in 8.3 characters
Bram Moolenaar <Bram@vim.org>
parents:
16804
diff
changeset
|
346 File /oname=uninstall.exe ${VIMSRC}\uninstallw32.exe |
7 | 347 File ${VIMSRC}\vimrun.exe |
10028
62b7fb15ff7e
commit https://github.com/vim/vim/commit/fec246d2c595164ac3b7e9fe9677053d3739b834
Christian Brabandt <cb@256bit.org>
parents:
9005
diff
changeset
|
348 File /oname=tee.exe ${VIMSRC}\teew32.exe |
7 | 349 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
|
350 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
|
351 File ..\README.txt |
18174
1ec6539cef68
patch 8.1.2082: some files have a weird name to fit in 8.3 characters
Bram Moolenaar <Bram@vim.org>
parents:
16804
diff
changeset
|
352 File ..\uninstall.txt |
7 | 353 File ${VIMRT}\*.vim |
354 File ${VIMRT}\rgb.txt | |
355 | |
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
|
356 File ${VIMTOOLS}\diff.exe |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
357 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
|
358 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
|
359 |
7 | 360 SetOutPath $0\colors |
361 File ${VIMRT}\colors\*.* | |
362 | |
363 SetOutPath $0\compiler | |
364 File ${VIMRT}\compiler\*.* | |
365 | |
366 SetOutPath $0\doc | |
367 File ${VIMRT}\doc\*.txt | |
368 File ${VIMRT}\doc\tags | |
369 | |
370 SetOutPath $0\ftplugin | |
371 File ${VIMRT}\ftplugin\*.* | |
372 | |
373 SetOutPath $0\indent | |
374 File ${VIMRT}\indent\*.* | |
375 | |
376 SetOutPath $0\macros | |
16105
9eb8c0d5c13e
patch 8.1.1057: nsis config is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15898
diff
changeset
|
377 File /r ${VIMRT}\macros\*.* |
9005
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
378 |
16105
9eb8c0d5c13e
patch 8.1.1057: nsis config is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15898
diff
changeset
|
379 SetOutPath $0\pack |
9eb8c0d5c13e
patch 8.1.1057: nsis config is too complicated
Bram Moolenaar <Bram@vim.org>
parents:
15898
diff
changeset
|
380 File /r ${VIMRT}\pack\*.* |
13884
0ddb61a7404f
patch 8.0.1813: Windows installer doesn't install terminal debugger
Christian Brabandt <cb@256bit.org>
parents:
13196
diff
changeset
|
381 |
7 | 382 SetOutPath $0\plugin |
383 File ${VIMRT}\plugin\*.* | |
384 | |
801 | 385 SetOutPath $0\autoload |
386 File ${VIMRT}\autoload\*.* | |
387 | |
12816
218102da5226
patch 8.0.1285: occasional crash when using a channel
Christian Brabandt <cb@256bit.org>
parents:
12708
diff
changeset
|
388 SetOutPath $0\autoload\dist |
218102da5226
patch 8.0.1285: occasional crash when using a channel
Christian Brabandt <cb@256bit.org>
parents:
12708
diff
changeset
|
389 File ${VIMRT}\autoload\dist\*.* |
218102da5226
patch 8.0.1285: occasional crash when using a channel
Christian Brabandt <cb@256bit.org>
parents:
12708
diff
changeset
|
390 |
827 | 391 SetOutPath $0\autoload\xml |
392 File ${VIMRT}\autoload\xml\*.* | |
393 | |
7 | 394 SetOutPath $0\syntax |
395 File ${VIMRT}\syntax\*.* | |
396 | |
799 | 397 SetOutPath $0\spell |
398 File ${VIMRT}\spell\*.txt | |
399 File ${VIMRT}\spell\*.vim | |
400 File ${VIMRT}\spell\*.spl | |
401 File ${VIMRT}\spell\*.sug | |
402 | |
7 | 403 SetOutPath $0\tools |
404 File ${VIMRT}\tools\*.* | |
405 | |
406 SetOutPath $0\tutor | |
407 File ${VIMRT}\tutor\*.* | |
408 SectionEnd | |
409 | |
410 ########################################################## | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
411 Section "$(str_section_console)" id_section_console |
7 | 412 SectionIn 1 3 |
413 | |
414 SetOutPath $0 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
415 File /oname=vim.exe ${VIMSRC}\vimw32.exe |
7 | 416 StrCpy $2 "$2 vim view vimdiff" |
417 SectionEnd | |
418 | |
419 ########################################################## | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
420 Section "$(str_section_batch)" id_section_batch |
7 | 421 SectionIn 3 |
422 | |
423 StrCpy $1 "$1 -create-batfiles $2" | |
424 SectionEnd | |
425 | |
426 ########################################################## | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
427 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
|
428 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
|
429 SectionIn 1 3 |
7 | 430 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
431 StrCpy $1 "$1 -install-icons" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
432 SectionEnd |
7 | 433 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
434 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
|
435 SectionIn 1 3 |
7 | 436 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
437 StrCpy $1 "$1 -add-start-menu" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
438 SectionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
439 SectionGroupEnd |
7 | 440 |
441 ########################################################## | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
442 Section "$(str_section_edit_with)" id_section_editwith |
7 | 443 SectionIn 1 3 |
444 | |
445 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
|
446 |
2217
120502692d82
Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
447 ${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
|
448 # 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
|
449 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
|
450 ClearErrors |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
451 !define LIBRARY_SHELL_EXTENSION |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
452 !define LIBRARY_X64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
453 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
454 "${VIMSRC}\GvimExt\gvimext64.dll" \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
455 "$0\GvimExt64\gvimext.dll" "$0" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
456 !undef LIBRARY_X64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
457 !undef LIBRARY_SHELL_EXTENSION |
2217
120502692d82
Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
458 ${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
|
459 |
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 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
|
461 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
|
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 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
465 "${VIMSRC}\GvimExt\gvimext.dll" \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
466 "$0\GvimExt32\gvimext.dll" "$0" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
467 !undef LIBRARY_SHELL_EXTENSION |
7 | 468 |
469 # We don't have a separate entry for the "Open With..." menu, assume | |
470 # the user wants either both or none. | |
471 StrCpy $1 "$1 -install-popup -install-openwith" | |
472 SectionEnd | |
473 | |
474 ########################################################## | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
475 Section "$(str_section_vim_rc)" id_section_vimrc |
7 | 476 SectionIn 1 3 |
477 | |
478 StrCpy $1 "$1 -create-vimrc" | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
479 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
480 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
481 SetRegView 64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
482 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
483 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
|
484 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
|
485 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
|
486 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
487 SetRegView lastused |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
488 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
489 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
490 ${If} $vim_compat_stat == "vi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
491 StrCpy $1 "$1 -vimrc-compat vi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
492 ${ElseIf} $vim_compat_stat == "vim" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
493 StrCpy $1 "$1 -vimrc-compat vim" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
494 ${ElseIf} $vim_compat_stat == "defaults" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
495 StrCpy $1 "$1 -vimrc-compat defaults" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
496 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
497 StrCpy $1 "$1 -vimrc-compat all" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
498 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
499 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
500 ${If} $vim_keymap_stat == "default" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
501 StrCpy $1 "$1 -vimrc-remap no" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
502 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
503 StrCpy $1 "$1 -vimrc-remap win" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
504 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
505 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
506 ${If} $vim_mouse_stat == "default" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
507 StrCpy $1 "$1 -vimrc-behave default" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
508 ${ElseIf} $vim_mouse_stat == "windows" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
509 StrCpy $1 "$1 -vimrc-behave mswin" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
510 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
511 StrCpy $1 "$1 -vimrc-behave unix" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
512 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
513 |
7 | 514 SectionEnd |
515 | |
516 ########################################################## | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
517 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
|
518 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
|
519 SectionIn 1 3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
520 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
521 StrCpy $1 "$1 -create-directories home" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
522 SectionEnd |
7 | 523 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
524 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
|
525 SectionIn 3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
526 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
527 StrCpy $1 "$1 -create-directories vim" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
528 SectionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
529 SectionGroupEnd |
7 | 530 |
531 ########################################################## | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
532 !ifdef HAVE_VIS_VIM |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
533 Section "$(str_section_vis_vim)" id_section_visvim |
7 | 534 SectionIn 3 |
535 | |
536 SetOutPath $0 | |
537 !insertmacro UpgradeDLL "${VIMSRC}\VisVim\VisVim.dll" "$0\VisVim.dll" "$0" | |
538 File ${VIMSRC}\VisVim\README_VisVim.txt | |
539 SectionEnd | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
540 !endif |
7 | 541 |
542 ########################################################## | |
543 !ifdef HAVE_NLS | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
544 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
|
545 SectionIn 1 3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
546 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
547 SetOutPath $0\lang |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
548 File /r ${VIMRT}\lang\*.* |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
549 SetOutPath $0\keymap |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
550 File ${VIMRT}\keymap\README.txt |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
551 File ${VIMRT}\keymap\*.vim |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
552 SetOutPath $0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
553 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
554 "${GETTEXT}\gettext${BIT}\libintl-8.dll" \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
555 "$0\libintl-8.dll" "$0" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
556 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
557 "${GETTEXT}\gettext${BIT}\libiconv-2.dll" \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
558 "$0\libiconv-2.dll" "$0" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
559 !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
|
560 # 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
|
561 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
562 "${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
|
563 "$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
|
564 !endif |
7 | 565 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
566 ${If} ${SectionIsSelected} ${id_section_editwith} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
567 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
568 # 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
|
569 SetOutPath $0\GvimExt64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
570 ClearErrors |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
571 !define LIBRARY_X64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
572 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
573 "${GETTEXT}\gettext64\libintl-8.dll" \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
574 "$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
|
575 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
576 "${GETTEXT}\gettext64\libiconv-2.dll" \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
577 "$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
|
578 !undef LIBRARY_X64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
579 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
580 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
581 # 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
|
582 SetOutPath $0\GvimExt32 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
583 ClearErrors |
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}\gettext32\libintl-8.dll" \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
586 "$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
|
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}\gettext32\libiconv-2.dll" \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
589 "$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
|
590 !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
|
591 # 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
|
592 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
593 "${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
|
594 "$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
|
595 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
596 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
597 SectionEnd |
7 | 598 !endif |
599 | |
600 ########################################################## | |
601 Section -call_install_exe | |
602 SetOutPath $0 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
603 DetailPrint "$(str_msg_registering)" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
604 nsExec::Exec "$0\install.exe $1" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
605 Pop $3 |
7 | 606 SectionEnd |
607 | |
608 ########################################################## | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
609 !macro SaveSectionSelection section_id reg_value |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
610 ${If} ${SectionIsSelected} ${section_id} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
611 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
|
612 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
613 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
|
614 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
615 !macroend |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
616 |
7 | 617 Section -post |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
618 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
619 # Get estimated install size |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
620 SectionGetSize ${id_section_exe} $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
621 ${If} ${SectionIsSelected} ${id_section_console} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
622 SectionGetSize ${id_section_console} $4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
623 IntOp $3 $3 + $4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
624 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
625 ${If} ${SectionIsSelected} ${id_section_editwith} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
626 SectionGetSize ${id_section_editwith} $4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
627 IntOp $3 $3 + $4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
628 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
629 !ifdef HAVE_VIS_VIM |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
630 ${If} ${SectionIsSelected} ${id_section_visvim} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
631 SectionGetSize ${id_section_visvim} $4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
632 IntOp $3 $3 + $4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
633 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
634 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
635 !ifdef HAVE_NLS |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
636 ${If} ${SectionIsSelected} ${id_section_nls} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
637 SectionGetSize ${id_section_nls} $4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
638 IntOp $3 $3 + $4 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
639 ${EndIf} |
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 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
642 # Register EstimatedSize and AllowSilent. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
643 # 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
|
644 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
645 SetRegView 64 |
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 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
|
648 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
|
649 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
650 SetRegView lastused |
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 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
653 # Store the selections to the registry. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
654 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
655 SetRegView 64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
656 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
657 !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
|
658 !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
|
659 !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
|
660 !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
|
661 !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
|
662 !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
|
663 !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
|
664 !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
|
665 !ifdef HAVE_VIS_VIM |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
666 !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
|
667 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
668 !ifdef HAVE_NLS |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
669 !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
|
670 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
671 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
672 SetRegView lastused |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
673 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
674 |
7 | 675 BringToFront |
676 SectionEnd | |
677 | |
678 ########################################################## | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
679 !macro LoadSectionSelection section_id reg_value |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
680 ClearErrors |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
681 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
|
682 ${IfNot} ${Errors} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
683 ${If} $3 = 1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
684 !insertmacro SelectSection ${section_id} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
685 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
686 !insertmacro UnselectSection ${section_id} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
687 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
688 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
689 !macroend |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
690 |
21327
ec2f5f0b5dcb
patch 8.2.1214: MS-Windows: default _vimrc not correct in silent install mode
Bram Moolenaar <Bram@vim.org>
parents:
19378
diff
changeset
|
691 !macro LoadDefaultVimrc out_var reg_value default_value |
ec2f5f0b5dcb
patch 8.2.1214: MS-Windows: default _vimrc not correct in silent install mode
Bram Moolenaar <Bram@vim.org>
parents:
19378
diff
changeset
|
692 ClearErrors |
ec2f5f0b5dcb
patch 8.2.1214: MS-Windows: default _vimrc not correct in silent install mode
Bram Moolenaar <Bram@vim.org>
parents:
19378
diff
changeset
|
693 ReadRegStr ${out_var} HKLM "${UNINST_REG_KEY_VIM}" ${reg_value} |
ec2f5f0b5dcb
patch 8.2.1214: MS-Windows: default _vimrc not correct in silent install mode
Bram Moolenaar <Bram@vim.org>
parents:
19378
diff
changeset
|
694 ${If} ${Errors} |
ec2f5f0b5dcb
patch 8.2.1214: MS-Windows: default _vimrc not correct in silent install mode
Bram Moolenaar <Bram@vim.org>
parents:
19378
diff
changeset
|
695 ${OrIf} ${out_var} == "" |
ec2f5f0b5dcb
patch 8.2.1214: MS-Windows: default _vimrc not correct in silent install mode
Bram Moolenaar <Bram@vim.org>
parents:
19378
diff
changeset
|
696 StrCpy ${out_var} ${default_value} |
ec2f5f0b5dcb
patch 8.2.1214: MS-Windows: default _vimrc not correct in silent install mode
Bram Moolenaar <Bram@vim.org>
parents:
19378
diff
changeset
|
697 ${EndIf} |
ec2f5f0b5dcb
patch 8.2.1214: MS-Windows: default _vimrc not correct in silent install mode
Bram Moolenaar <Bram@vim.org>
parents:
19378
diff
changeset
|
698 !macroend |
ec2f5f0b5dcb
patch 8.2.1214: MS-Windows: default _vimrc not correct in silent install mode
Bram Moolenaar <Bram@vim.org>
parents:
19378
diff
changeset
|
699 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
700 Function .onInit |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
701 !ifdef HAVE_MULTI_LANG |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
702 # 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
|
703 !insertmacro MUI_LANGDLL_DISPLAY |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
704 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
705 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
706 # Check $VIM |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
707 ReadEnvStr $INSTDIR "VIM" |
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 call CheckOldVim |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
710 Pop $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
711 ${If} $3 == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
712 # 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
|
713 !insertmacro UnselectSection ${id_section_old_ver} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
714 SectionSetInstTypes ${id_section_old_ver} 0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
715 SectionSetText ${id_section_old_ver} "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
716 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
717 ${If} $INSTDIR == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
718 StrCpy $INSTDIR $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
719 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
720 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
721 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
722 # 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
|
723 ${If} $INSTDIR == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
724 !ifdef WIN64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
725 StrCpy $INSTDIR "$PROGRAMFILES64\Vim" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
726 !else |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
727 StrCpy $INSTDIR "$PROGRAMFILES\Vim" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
728 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
729 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
730 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
731 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
732 SetRegView 64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
733 ${EndIf} |
21327
ec2f5f0b5dcb
patch 8.2.1214: MS-Windows: default _vimrc not correct in silent install mode
Bram Moolenaar <Bram@vim.org>
parents:
19378
diff
changeset
|
734 # Load the selections from the registry (if any). |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
735 !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
|
736 !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
|
737 !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
|
738 !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
|
739 !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
|
740 !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
|
741 !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
|
742 !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
|
743 !ifdef HAVE_VIS_VIM |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
744 !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
|
745 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
746 !ifdef HAVE_NLS |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
747 !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
|
748 !endif |
21327
ec2f5f0b5dcb
patch 8.2.1214: MS-Windows: default _vimrc not correct in silent install mode
Bram Moolenaar <Bram@vim.org>
parents:
19378
diff
changeset
|
749 # Load the default _vimrc settings from the registry (if any). |
ec2f5f0b5dcb
patch 8.2.1214: MS-Windows: default _vimrc not correct in silent install mode
Bram Moolenaar <Bram@vim.org>
parents:
19378
diff
changeset
|
750 !insertmacro LoadDefaultVimrc $vim_compat_stat "vim_compat" "all" |
ec2f5f0b5dcb
patch 8.2.1214: MS-Windows: default _vimrc not correct in silent install mode
Bram Moolenaar <Bram@vim.org>
parents:
19378
diff
changeset
|
751 !insertmacro LoadDefaultVimrc $vim_keymap_stat "vim_keyremap" "default" |
ec2f5f0b5dcb
patch 8.2.1214: MS-Windows: default _vimrc not correct in silent install mode
Bram Moolenaar <Bram@vim.org>
parents:
19378
diff
changeset
|
752 !insertmacro LoadDefaultVimrc $vim_mouse_stat "vim_mouse" "default" |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
753 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
754 SetRegView lastused |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
755 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
756 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
757 # User variables: |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
758 # $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
|
759 # $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
|
760 # 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
|
761 # always register an OLE gvim). |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
762 # $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
|
763 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
|
764 StrCpy $1 "-register-OLE" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
765 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
|
766 FunctionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
767 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
768 Function .onInstSuccess |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
769 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
|
770 FunctionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
771 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
772 Function .onInstFailed |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
773 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
|
774 FunctionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
775 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
776 ########################################################## |
12708
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
777 Function SetCustom |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
778 # 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
|
779 |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
780 # 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
|
781 ${IfNot} ${SectionIsSelected} ${id_section_vimrc} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
782 Abort |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
783 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
784 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
785 !insertmacro MUI_HEADER_TEXT \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
786 $(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
|
787 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
788 nsDialogs::Create 1018 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
789 Pop $vim_dialog |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
790 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
791 ${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
|
792 Abort |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
793 ${EndIf} |
12708
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
794 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
795 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
796 SetRegView 64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
797 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
798 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
799 GetFunctionAddress $3 ValidateCustom |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
800 nsDialogs::OnBack $3 |
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 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
803 # 1st group - Compatibility |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
804 ${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
|
805 Pop $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
806 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
807 ${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
|
808 Pop $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
809 ${NSD_CreateDropList} 18% 19% 75% 8% "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
810 Pop $vim_nsd_compat |
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_vi) |
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_vim) |
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_defaults) |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
814 ${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
|
815 |
21327
ec2f5f0b5dcb
patch 8.2.1214: MS-Windows: default _vimrc not correct in silent install mode
Bram Moolenaar <Bram@vim.org>
parents:
19378
diff
changeset
|
816 ${If} $vim_compat_stat == "defaults" |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
817 StrCpy $4 2 |
21327
ec2f5f0b5dcb
patch 8.2.1214: MS-Windows: default _vimrc not correct in silent install mode
Bram Moolenaar <Bram@vim.org>
parents:
19378
diff
changeset
|
818 ${ElseIf} $vim_compat_stat == "vim" |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
819 StrCpy $4 1 |
21327
ec2f5f0b5dcb
patch 8.2.1214: MS-Windows: default _vimrc not correct in silent install mode
Bram Moolenaar <Bram@vim.org>
parents:
19378
diff
changeset
|
820 ${ElseIf} $vim_compat_stat == "vi" |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
821 StrCpy $4 0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
822 ${Else} # default |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
823 StrCpy $4 3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
824 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
825 ${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
|
826 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
827 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
828 # 2nd group - Key remapping |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
829 ${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
|
830 Pop $3 |
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 ${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
|
833 Pop $3 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
834 ${NSD_CreateDropList} 38% 54% 55% 8% "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
835 Pop $vim_nsd_keymap |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
836 ${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
|
837 ${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
|
838 |
21327
ec2f5f0b5dcb
patch 8.2.1214: MS-Windows: default _vimrc not correct in silent install mode
Bram Moolenaar <Bram@vim.org>
parents:
19378
diff
changeset
|
839 ${If} $vim_keymap_stat == "windows" |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
840 StrCpy $4 1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
841 ${Else} # default |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
842 StrCpy $4 0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
843 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
844 ${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
|
845 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
846 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
847 # 3rd group - Mouse behavior |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
848 ${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
|
849 Pop $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
850 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
851 ${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
|
852 Pop $3 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
853 ${NSD_CreateDropList} 23% 87% 70% 8% "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
854 Pop $vim_nsd_mouse |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
855 ${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
|
856 ${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
|
857 ${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
|
858 |
21327
ec2f5f0b5dcb
patch 8.2.1214: MS-Windows: default _vimrc not correct in silent install mode
Bram Moolenaar <Bram@vim.org>
parents:
19378
diff
changeset
|
859 ${If} $vim_mouse_stat == "xterm" |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
860 StrCpy $4 2 |
21327
ec2f5f0b5dcb
patch 8.2.1214: MS-Windows: default _vimrc not correct in silent install mode
Bram Moolenaar <Bram@vim.org>
parents:
19378
diff
changeset
|
861 ${ElseIf} $vim_mouse_stat == "windows" |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
862 StrCpy $4 1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
863 ${Else} # default |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
864 StrCpy $4 0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
865 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
866 ${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
|
867 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
868 ${If} ${RunningX64} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
869 SetRegView lastused |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
870 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
871 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
872 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
|
873 FunctionEnd |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
874 |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
875 Function ValidateCustom |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
876 ${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
|
877 ${If} $3 = 0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
878 StrCpy $vim_compat_stat "vi" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
879 ${ElseIf} $3 = 1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
880 StrCpy $vim_compat_stat "vim" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
881 ${ElseIf} $3 = 2 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
882 StrCpy $vim_compat_stat "defaults" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
883 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
884 StrCpy $vim_compat_stat "all" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
885 ${EndIf} |
12708
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
886 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
887 ${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
|
888 ${If} $3 = 0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
889 StrCpy $vim_keymap_stat "default" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
890 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
891 StrCpy $vim_keymap_stat "windows" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
892 ${EndIf} |
12708
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
893 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
894 ${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
|
895 ${If} $3 = 0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
896 StrCpy $vim_mouse_stat "default" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
897 ${ElseIf} $3 = 1 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
898 StrCpy $vim_mouse_stat "windows" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
899 ${Else} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
900 StrCpy $vim_mouse_stat "xterm" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
901 ${EndIf} |
12708
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
902 FunctionEnd |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
903 |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
904 ########################################################## |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
905 # Description for Installer Sections |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
906 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
907 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
908 !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
|
909 !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
|
910 !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
|
911 !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
|
912 !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
|
913 !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
|
914 !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
|
915 !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
|
916 !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
|
917 !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
|
918 !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
|
919 !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
|
920 !ifdef HAVE_VIS_VIM |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
921 !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
|
922 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
923 !ifdef HAVE_NLS |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
924 !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
|
925 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
926 !insertmacro MUI_FUNCTION_DESCRIPTION_END |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
927 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
928 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
929 ########################################################## |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
930 # Uninstaller Functions and Sections |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
931 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
932 Function un.onInit |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
933 !ifdef HAVE_MULTI_LANG |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
934 # Get the language from the registry. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
935 !insertmacro MUI_UNGETLANGUAGE |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
936 !endif |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
937 FunctionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
938 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
939 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
|
940 SectionIn RO |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
941 |
7 | 942 # Apparently $INSTDIR is set to the directory where the uninstaller is |
943 # created. Thus the "vim61" directory is included in it. | |
944 StrCpy $0 "$INSTDIR" | |
945 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
946 !ifdef HAVE_VIS_VIM |
7 | 947 # 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
|
948 ${If} ${FileExists} "$0\VisVim.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
949 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
|
950 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
951 !endif |
7 | 952 |
953 # 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
|
954 DetailPrint "$(str_msg_unregistering)" |
18174
1ec6539cef68
patch 8.1.2082: some files have a weird name to fit in 8.3 characters
Bram Moolenaar <Bram@vim.org>
parents:
16804
diff
changeset
|
955 nsExec::Exec "$0\uninstall.exe -nsis" |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
956 Pop $3 |
7 | 957 |
958 # We may have been put to the background when uninstall did something. | |
959 BringToFront | |
960 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
961 # Delete the installer language setting. |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
962 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
|
963 SectionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
964 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
965 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
|
966 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
967 StrCpy $0 "$INSTDIR" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
968 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
969 # Delete gettext and iconv DLLs |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
970 ${If} ${FileExists} "$0\libiconv-2.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
971 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
972 "$0\libiconv-2.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
973 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
974 ${If} ${FileExists} "$0\libintl-8.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
975 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
976 "$0\libintl-8.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
977 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
978 ${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
|
979 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
980 "$0\libgcc_s_sjlj-1.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
981 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
982 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
983 # Delete other DLLs |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
984 Delete /REBOOTOK $0\*.dll |
7 | 985 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
986 # 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
|
987 ${If} ${RunningX64} |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
988 !define LIBRARY_X64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
989 ${If} ${FileExists} "$0\GvimExt64\gvimext.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
990 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
991 "$0\GvimExt64\gvimext.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
992 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
993 ${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
|
994 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
995 "$0\GvimExt64\libiconv-2.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
996 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
997 ${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
|
998 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
999 "$0\GvimExt64\libintl-8.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1000 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1001 ${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
|
1002 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1003 "$0\GvimExt64\libwinpthread-1.dll" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1004 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1005 !undef LIBRARY_X64 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1006 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
|
1007 ${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
|
1008 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1009 # Delete 32-bit GvimExt |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1010 ${If} ${FileExists} "$0\GvimExt32\gvimext.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\GvimExt32\gvimext.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\GvimExt32\libiconv-2.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\GvimExt32\libiconv-2.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\GvimExt32\libintl-8.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\GvimExt32\libintl-8.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 ${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
|
1023 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \ |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1024 "$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
|
1025 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1026 RMDir /r $0\GvimExt32 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1027 |
7 | 1028 ClearErrors |
1029 # Remove everything but *.dll files. Avoids that | |
1030 # a lot remains when gvimext.dll cannot be deleted. | |
879 | 1031 RMDir /r $0\autoload |
7 | 1032 RMDir /r $0\colors |
1033 RMDir /r $0\compiler | |
1034 RMDir /r $0\doc | |
1035 RMDir /r $0\ftplugin | |
1036 RMDir /r $0\indent | |
1037 RMDir /r $0\macros | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1038 RMDir /r $0\pack |
7 | 1039 RMDir /r $0\plugin |
879 | 1040 RMDir /r $0\spell |
7 | 1041 RMDir /r $0\syntax |
1042 RMDir /r $0\tools | |
1043 RMDir /r $0\tutor | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1044 !ifdef HAVE_VIS_VIM |
7 | 1045 RMDir /r $0\VisVim |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1046 !endif |
7 | 1047 RMDir /r $0\lang |
1048 RMDir /r $0\keymap | |
1049 Delete $0\*.exe | |
1050 Delete $0\*.bat | |
1051 Delete $0\*.vim | |
1052 Delete $0\*.txt | |
1053 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1054 ${If} ${Errors} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1055 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
|
1056 ${EndIf} |
7 | 1057 |
1058 # No error message if the "vim62" directory can't be removed, the | |
1059 # gvimext.dll may still be there. | |
1060 RMDir $0 | |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1061 SectionEnd |
7 | 1062 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1063 # 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
|
1064 !macro RemoveVimfiles dir |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1065 ${If} ${FileExists} ${dir}\vimfiles |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1066 RMDir ${dir}\vimfiles\colors |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1067 RMDir ${dir}\vimfiles\compiler |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1068 RMDir ${dir}\vimfiles\doc |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1069 RMDir ${dir}\vimfiles\ftdetect |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1070 RMDir ${dir}\vimfiles\ftplugin |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1071 RMDir ${dir}\vimfiles\indent |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1072 RMDir ${dir}\vimfiles\keymap |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1073 RMDir ${dir}\vimfiles\plugin |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1074 RMDir ${dir}\vimfiles\syntax |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1075 RMDir ${dir}\vimfiles |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1076 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1077 !macroend |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1078 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1079 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
|
1080 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
|
1081 # get the home dir |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1082 ReadEnvStr $0 "HOME" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1083 ${If} $0 == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1084 ReadEnvStr $0 "HOMEDRIVE" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1085 ReadEnvStr $1 "HOMEPATH" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1086 StrCpy $0 "$0$1" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1087 ${If} $0 == "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1088 ReadEnvStr $0 "USERPROFILE" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1089 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1090 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1091 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1092 ${If} $0 != "" |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1093 !insertmacro RemoveVimfiles $0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1094 ${EndIf} |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1095 SectionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1096 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1097 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
|
1098 # 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
|
1099 Push $INSTDIR |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1100 Call un.GetParent |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1101 Pop $0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1102 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1103 # 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
|
1104 !insertmacro RemoveVimfiles $0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1105 SectionEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1106 SectionGroupEnd |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1107 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1108 Section "un.$(str_unsection_rootdir)" id_unsection_rootdir |
7 | 1109 # get the parent dir of the installation |
1110 Push $INSTDIR | |
1111 Call un.GetParent | |
1112 Pop $0 | |
1113 | |
16308
6400235ca4ad
patch 8.1.1159: MS-Windows: with a silent (un)install $VIM/_vimrc is removed
Bram Moolenaar <Bram@vim.org>
parents:
16105
diff
changeset
|
1114 ${IfNot} ${Silent} |
6400235ca4ad
patch 8.1.1159: MS-Windows: with a silent (un)install $VIM/_vimrc is removed
Bram Moolenaar <Bram@vim.org>
parents:
16105
diff
changeset
|
1115 Delete $0\_vimrc |
6400235ca4ad
patch 8.1.1159: MS-Windows: with a silent (un)install $VIM/_vimrc is removed
Bram Moolenaar <Bram@vim.org>
parents:
16105
diff
changeset
|
1116 ${Endif} |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1117 RMDir $0 |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1118 SectionEnd |
7 | 1119 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1120 ########################################################## |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1121 # Description for Uninstaller Sections |
7 | 1122 |
15213
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1123 !insertmacro MUI_UNFUNCTION_DESCRIPTION_BEGIN |
c0eb9a74f73d
patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents:
13884
diff
changeset
|
1124 !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
|
1125 !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
|
1126 !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
|
1127 !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
|
1128 !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
|
1129 !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
|
1130 !insertmacro MUI_UNFUNCTION_DESCRIPTION_END |