annotate nsis/gvim.nsi @ 35120:a9ee3031a1bb default tip

Added tag v9.1.0393 for changeset 7d6bce8d8875e7deec699d688e081b1450243bb6
author Christian Brabandt <cb@256bit.org>
date Sat, 04 May 2024 10:00:06 +0200
parents e671080ef0e2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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.
34670
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
3 # Last Change: 2024 Mar 20
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 # WARNING: if you make changes to this script, look out for $0 to be valid,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 # because uninstall deletes most files in $0.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
34630
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
20 # Location of extra tools: diff.exe, winpty{32|64}.dll, winpty-agent.exe, etc.
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
34630
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
32 # If you have UPX, use the switch /DHAVE_UPX=1 on the command line makensis.exe.
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
33 # This property will be set to 1. Get it at https://upx.github.io/
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
34 !ifndef HAVE_UPX
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
35 !define HAVE_UPX 0
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
36 !endif
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
37
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
38 # If you do not want to add Native Language Support, use the switch /DHAVE_NLS=0
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
39 # in the command line makensis.exe. This property will be set to 0.
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
40 !ifndef HAVE_NLS
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
41 !define HAVE_NLS 1
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
42 !endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
34630
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
44 # To create an English-only the installer, use the switch /DHAVE_MULTI_LANG=0 on
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
45 # the command line makensis.exe. This property will be set to 0.
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
46 !ifndef HAVE_MULTI_LANG
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
47 !define HAVE_MULTI_LANG 1
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
48 !endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
34630
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
50 # if you want to create a 64-bit the installer, use the switch /DWIN64=1 on
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
51 # the command line makensis.exe. This property will be set to 1.
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
52 !ifndef WIN64
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
53 !define WIN64 0
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
54 !endif
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
55
7443
357b7bd8d612 commit https://github.com/vim/vim/commit/6c7b44472f7055c78d996e1b626bd2932502212f
Christian Brabandt <cb@256bit.org>
parents: 6343
diff changeset
56 !include gvim_version.nsh # for version number
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
34630
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
58 # Definition of Patch for Vim.
16804
9fa322a3bc31 patch 8.1.1404: cannot change the patch level when building with NSIS
Bram Moolenaar <Bram@vim.org>
parents: 16674
diff changeset
59 !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
60 !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
61 !endif
9fa322a3bc31 patch 8.1.1404: cannot change the patch level when building with NSIS
Bram Moolenaar <Bram@vim.org>
parents: 16674
diff changeset
62
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 # ----------- No configurable settings below this line -----------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
34630
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
65 !include "Library.nsh" # for DLL install
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
66 !include "LogicLib.nsh"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
67 !include "MUI2.nsh"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
68 !include "nsDialogs.nsh"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
69 !include "Sections.nsh"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
70 !include "x64.nsh"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
34598
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
72 # See https://nsis.sourceforge.io/LogicLib
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
73 ;FileExists is already part of LogicLib, but returns true for directories
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
74 ;as well as files
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
75 !macro _FileExists2 _a _b _t _f
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
76 !insertmacro _LOGICLIB_TEMP
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
77 StrCpy $_LOGICLIB_TEMP "0"
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
78 ;if path is not blank, continue to next check
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
79 StrCmp `${_b}` `` +4 0
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
80 ;if path exists, continue to next check (IfFileExists returns true if this
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
81 ;is a directory)
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
82 IfFileExists `${_b}` `0` +3
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
83 ;if path is not a directory, continue to confirm exists
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
84 IfFileExists `${_b}\*.*` +2 0
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
85 StrCpy $_LOGICLIB_TEMP "1" ;file exists
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
86 ;now we have a definitive value - the file exists or it does not
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
87 StrCmp $_LOGICLIB_TEMP "1" `${_t}` `${_f}`
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
88 !macroend
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
89 !undef FileExists
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
90 !define FileExists `"" FileExists2`
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
91 !macro _DirExists _a _b _t _f
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
92 !insertmacro _LOGICLIB_TEMP
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
93 StrCpy $_LOGICLIB_TEMP "0"
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
94 ;if path is not blank, continue to next check
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
95 StrCmp `${_b}` `` +3 0
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
96 ;if directory exists, continue to confirm exists
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
97 IfFileExists `${_b}\*.*` 0 +2
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
98 StrCpy $_LOGICLIB_TEMP "1"
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
99 StrCmp $_LOGICLIB_TEMP "1" `${_t}` `${_f}`
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
100 !macroend
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
101 !define DirExists `"" DirExists`
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
102
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
103 !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
104 !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
105 !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
106
34630
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
107 !if ${WIN64}
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
108 Name "${PRODUCT} (x64)"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
109 !else
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
110 Name "${PRODUCT}"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
111 !endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 OutFile gvim${VER_MAJOR}${VER_MINOR}.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 CRCCheck force
7613
4456fa2d22e8 commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents: 7443
diff changeset
114 SetCompressor /SOLID lzma
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
115 SetCompressorDictSize 64
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
116 ManifestDPIAware true
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 SetDatablockOptimize on
2217
120502692d82 Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents: 2154
diff changeset
118 RequestExecutionLevel highest
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119
34630
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
120 !if ${HAVE_UPX}
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 !packhdr temp.dat "upx --best --compress-icons=1 temp.dat"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 !endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123
34630
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
124 !if ${WIN64}
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
125 !define BIT 64
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
126 !else
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
127 !define BIT 32
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
128 !endif
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
129
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
130 ##########################################################
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
131 # MUI2 settings
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
132
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
133 !define MUI_ABORTWARNING
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
134 !define MUI_UNABORTWARNING
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
135
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
136 !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
137 !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
138
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
139 # 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
140 !define MUI_LANGDLL_ALLLANGUAGES
34638
857eb73fb6a7 NSIS: Redesigning the appearance of the vimrc settings page (#14292)
Christian Brabandt <cb@256bit.org>
parents: 34630
diff changeset
141 # Always show dialog choice language
857eb73fb6a7 NSIS: Redesigning the appearance of the vimrc settings page (#14292)
Christian Brabandt <cb@256bit.org>
parents: 34630
diff changeset
142 #!define MUI_LANGDLL_ALWAYSSHOW
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
143 !define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
144 !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
145 !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
146
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
147 !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
148 !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
149 !define MUI_HEADERIMAGE
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
150 !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
151 !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
152
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
153 !define MUI_WELCOMEFINISHPAGE_BITMAP_STRETCH "AspectFitHeight"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
154 !define MUI_UNWELCOMEFINISHPAGE_BITMAP_STRETCH "AspectFitHeight"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
155 !define MUI_HEADERIMAGE_BITMAP_STRETCH "AspectFitHeight"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
156 !define MUI_HEADERIMAGE_UNBITMAP_STRETCH "AspectFitHeight"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
157
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
158 !define MUI_COMPONENTSPAGE_SMALLDESC
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
159 !define MUI_LICENSEPAGE_CHECKBOX
34670
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
160 !define MUI_FINISHPAGE_SHOWREADME
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
161 !define MUI_FINISHPAGE_SHOWREADME_TEXT $(str_show_readme)
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
162 !define MUI_FINISHPAGE_SHOWREADME_FUNCTION LaunchApplication
15213
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 # 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
165 # obtained below with CheckOldVim.
34630
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
166 !if ${WIN64}
25354
54425c665ba9 patch 8.2.3214: MS-Windows: passing /D does not set the install location
Bram Moolenaar <Bram@vim.org>
parents: 24567
diff changeset
167 !define DEFAULT_INSTDIR "$PROGRAMFILES64\Vim"
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
168 !else
25354
54425c665ba9 patch 8.2.3214: MS-Windows: passing /D does not set the install location
Bram Moolenaar <Bram@vim.org>
parents: 24567
diff changeset
169 !define DEFAULT_INSTDIR "$PROGRAMFILES\Vim"
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
170 !endif
25354
54425c665ba9 patch 8.2.3214: MS-Windows: passing /D does not set the install location
Bram Moolenaar <Bram@vim.org>
parents: 24567
diff changeset
171 InstallDir ${DEFAULT_INSTDIR}
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 # 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
174 InstType $(str_type_typical)
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
175 InstType $(str_type_minimal)
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
176 InstType $(str_type_full)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 SilentInstall normal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
180 # General custom functions for MUI2:
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
181 #!define MUI_CUSTOMFUNCTION_ABORT VimOnUserAbort
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
182 #!define MUI_CUSTOMFUNCTION_UNABORT un.VimOnUserAbort
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
183
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
184 # Installer pages
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
185 !insertmacro MUI_PAGE_WELCOME
34670
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
186 !insertmacro MUI_PAGE_LICENSE $(page_lic_file)
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
187 !insertmacro MUI_PAGE_COMPONENTS
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
188 Page custom SetCustom ValidateCustom
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
189 #!define MUI_PAGE_CUSTOMFUNCTION_LEAVE VimFinalCheck
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
190 !insertmacro MUI_PAGE_DIRECTORY
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
191 !insertmacro MUI_PAGE_INSTFILES
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
192 !define MUI_FINISHPAGE_NOREBOOTSUPPORT
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
193 !insertmacro MUI_PAGE_FINISH
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
194
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
195 # Uninstaller pages:
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
196 !insertmacro MUI_UNPAGE_CONFIRM
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
197 #!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
198 !insertmacro MUI_UNPAGE_COMPONENTS
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
199 !insertmacro MUI_UNPAGE_INSTFILES
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
200 !define MUI_FINISHPAGE_NOREBOOTSUPPORT
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
201 !insertmacro MUI_UNPAGE_FINISH
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
202
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
203 ##########################################################
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
204 # Languages Files
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
205
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
206 !insertmacro MUI_RESERVEFILE_LANGDLL
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
207 !include "lang\english.nsi"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
208
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
209 # Include support for other languages:
34630
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
210 !if ${HAVE_MULTI_LANG}
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
211 !include "lang\danish.nsi"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
212 !include "lang\dutch.nsi"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
213 !include "lang\german.nsi"
34492
2dc69bbbf9ac translation(gr): add translation of the installer (#14148)
Christian Brabandt <cb@256bit.org>
parents: 34484
diff changeset
214 !include "lang\greek.nsi"
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
215 !include "lang\italian.nsi"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
216 !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
217 !include "lang\russian.nsi"
34484
2425b78ab0d7 translation(sr): Update Serbian messages (#14143)
Christian Brabandt <cb@256bit.org>
parents: 34346
diff changeset
218 !include "lang\serbian.nsi"
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
219 !include "lang\simpchinese.nsi"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
220 !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
221 !include "lang\turkish.nsi"
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
222 !endif
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
223
16674
3c182c550195 patch 8.1.1339: installer needs to product name et al.
Bram Moolenaar <Bram@vim.org>
parents: 16451
diff changeset
224 ##########################################################
3c182c550195 patch 8.1.1339: installer needs to product name et al.
Bram Moolenaar <Bram@vim.org>
parents: 16451
diff changeset
225 # Version resources
3c182c550195 patch 8.1.1339: installer needs to product name et al.
Bram Moolenaar <Bram@vim.org>
parents: 16451
diff changeset
226
3c182c550195 patch 8.1.1339: installer needs to product name et al.
Bram Moolenaar <Bram@vim.org>
parents: 16451
diff changeset
227 VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "Vim"
35041
e671080ef0e2 patch 9.1.0370: MS-Windows: patch number is zero in installer
Christian Brabandt <cb@256bit.org>
parents: 34856
diff changeset
228 VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "The Vim Project"
16674
3c182c550195 patch 8.1.1339: installer needs to product name et al.
Bram Moolenaar <Bram@vim.org>
parents: 16451
diff changeset
229 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
230 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
231 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
232 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
233 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
234
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
235 # Global variables
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
236 Var vim_dialog
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
237 Var vim_nsd_compat
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
238 Var vim_nsd_keymap
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
239 Var vim_nsd_mouse
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
240 Var vim_compat_stat
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
241 Var vim_keymap_stat
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
242 Var vim_mouse_stat
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
243
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244
13196
fbc58aa4ea1e patch 8.0.1472: MS-Windows: nsis installer is a bit slow
Christian Brabandt <cb@256bit.org>
parents: 12816
diff changeset
245 # Reserve files
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
246 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
247
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 ##########################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 # Functions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
251 # Get parent directory
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
252 # 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
253 !macro GetParent un
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
254 Function ${un}GetParent
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 Exch $0 ; old $0 is on top of stack
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 Push $1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 Push $2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 StrCpy $1 -1
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
259 ${Do}
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 StrCpy $2 $0 1 $1
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
261 ${If} $2 == ""
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
262 ${OrIf} $2 == "\"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
263 ${ExitDo}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
264 ${EndIf}
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 IntOp $1 $1 - 1
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
266 ${Loop}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
267 StrCpy $0 $0 $1
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
268 Pop $2
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
269 Pop $1
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
270 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
271 FunctionEnd
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
272 !macroend
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
273
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
274 !insertmacro GetParent ""
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
275 !insertmacro GetParent "un."
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
276
31968
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
277 # Get home directory
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
278 !macro GetHomeDir un
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
279 Function ${un}GetHomeDir
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
280 Push $0
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
281 Push $1
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
282 ReadEnvStr $0 "HOME"
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
283 ${If} $0 == ""
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
284 ReadEnvStr $0 "HOMEDRIVE"
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
285 ReadEnvStr $1 "HOMEPATH"
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
286 StrCpy $0 "$0$1"
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
287 ${If} $0 == ""
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
288 ReadEnvStr $0 "USERPROFILE"
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
289 ${EndIf}
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
290 ${EndIf}
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
291 Pop $1
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
292 Exch $0 # put $0 on top of stack, restore $0 to original value
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
293 FunctionEnd
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
294 !macroend
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
295
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
296 !insertmacro GetHomeDir ""
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
297 !insertmacro GetHomeDir "un."
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
298
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
299 # Check if Vim is already installed.
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
300 # 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
301 Function CheckOldVim
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
302 Push $0
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
303 Push $R0
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
304 Push $R1
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
305 Push $R2
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 ${If} ${RunningX64}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
308 SetRegView 64
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
309 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
310
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
311 ClearErrors
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
312 StrCpy $0 "" # Installed directory
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
313 StrCpy $R0 0 # Sub-key index
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
314 StrCpy $R1 "" # Sub-key
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
315 ${Do}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
316 # Eumerate the sub-key:
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
317 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
318
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
319 # Stop if no more sub-key:
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
320 ${If} ${Errors}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
321 ${OrIf} $R1 == ""
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
322 ${ExitDo}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
323 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
324
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
325 # Move to the next sub-key:
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
326 IntOp $R0 $R0 + 1
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
327
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
328 # 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
329 StrCpy $R2 $R1 4
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
330 ${If} $R2 S!= "Vim "
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
331 ${Continue}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
332 ${EndIf}
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 # Verifies required sub-keys:
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
335 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
336 ${If} ${Errors}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
337 ${OrIf} $R2 == ""
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
338 ${Continue}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
339 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
340
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
341 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
342 ${If} ${Errors}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
343 ${OrIf} $R2 == ""
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
344 ${Continue}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
345 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
346
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
347 # Found
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
348 Push $R2
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
349 call GetParent
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
350 call GetParent
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
351 Pop $0 # Vim directory
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
352 ${ExitDo}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
353
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
354 ${Loop}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
355
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
356 ${If} ${RunningX64}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
357 SetRegView lastused
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
358 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
359
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
360 Pop $R2
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
361 Pop $R1
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
362 Pop $R0
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
363 Exch $0 # put $0 on top of stack, restore $0 to original value
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
364 FunctionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
365
24565
138e9caf4a7a patch 8.2.2822: MS-Windows: unnessarily loading libraries when unregistering
Bram Moolenaar <Bram@vim.org>
parents: 24018
diff changeset
366 Function LaunchApplication
138e9caf4a7a patch 8.2.2822: MS-Windows: unnessarily loading libraries when unregistering
Bram Moolenaar <Bram@vim.org>
parents: 24018
diff changeset
367 SetOutPath $0
34670
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
368 ShellExecAsUser::ShellExecAsUser "" "$0\gvim.exe" '-R "$0\$(vim_readme_file)"'
24565
138e9caf4a7a patch 8.2.2822: MS-Windows: unnessarily loading libraries when unregistering
Bram Moolenaar <Bram@vim.org>
parents: 24018
diff changeset
369 FunctionEnd
138e9caf4a7a patch 8.2.2822: MS-Windows: unnessarily loading libraries when unregistering
Bram Moolenaar <Bram@vim.org>
parents: 24018
diff changeset
370
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
371 ##########################################################
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
372 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
373 SectionIn 1 2 3 RO
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
374
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
375 # 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
376 SetOutPath $TEMP
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
377 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
378 DetailPrint "$(str_msg_uninstalling)"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
379 ${Do}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
380 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
381 Pop $3
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
382
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
383 call CheckOldVim
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
384 Pop $3
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
385 ${If} $3 == ""
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
386 ${ExitDo}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
387 ${Else}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
388 # 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
389 # 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
390
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
391 ${ExitDo} # Just ignore for now.
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
392 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
393 ${Loop}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
394 Delete $TEMP\install.exe
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
395 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
396
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
397 # 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
398 BringToFront
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
399 SectionEnd
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
400
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
401 ##########################################################
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
402 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
403 SectionIn 1 2 3 RO
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
404
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
405 # we need also this here if the user changes the instdir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
406 StrCpy $0 "$INSTDIR\vim${VER_MAJOR}${VER_MINOR}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
407
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
408 SetOutPath $0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
409 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
410 !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
411 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
412 !endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
413 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
414 File /oname=uninstall.exe ${VIMSRC}\uninstallw32.exe
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
415 File ${VIMSRC}\vimrun.exe
10028
62b7fb15ff7e commit https://github.com/vim/vim/commit/fec246d2c595164ac3b7e9fe9677053d3739b834
Christian Brabandt <cb@256bit.org>
parents: 9005
diff changeset
416 File /oname=tee.exe ${VIMSRC}\teew32.exe
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
417 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
418 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
419 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
420 File ..\uninstall.txt
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
421 File ${VIMRT}\*.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
422
34598
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
423 !if /FileExists "${VIMTOOLS}\diff.exe"
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
424 File ${VIMTOOLS}\diff.exe
34598
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
425 !endif
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
426 !if /FileExists "${VIMTOOLS}\winpty${BIT}.dll"
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
427 File ${VIMTOOLS}\winpty${BIT}.dll
34598
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
428 !endif
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
429 !if /FileExists "${VIMTOOLS}\winpty-agent.exe"
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
430 File ${VIMTOOLS}\winpty-agent.exe
34598
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
431 !endif
34856
73e0743621c3 NSIS: Fix a few issues with gvim.nsi
Christian Brabandt <cb@256bit.org>
parents: 34794
diff changeset
432 !if /FileExists "${VIMTOOLS}\libsodium.dll"
73e0743621c3 NSIS: Fix a few issues with gvim.nsi
Christian Brabandt <cb@256bit.org>
parents: 34794
diff changeset
433 File ${VIMTOOLS}\libsodium.dll
73e0743621c3 NSIS: Fix a few issues with gvim.nsi
Christian Brabandt <cb@256bit.org>
parents: 34794
diff changeset
434 !endif
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
435
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
436 SetOutPath $0\colors
29838
d9c08ff57474 patch 9.0.0258: MS-Windows installer skips syntax/shared
Bram Moolenaar <Bram@vim.org>
parents: 28737
diff changeset
437 File /r ${VIMRT}\colors\*.*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
438
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
439 SetOutPath $0\compiler
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
440 File ${VIMRT}\compiler\*.*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
441
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
442 SetOutPath $0\doc
34598
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
443 File /x uganda.nsis.txt ${VIMRT}\doc\*.txt
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
444 File ${VIMRT}\doc\tags
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
445
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
446 SetOutPath $0\ftplugin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
447 File ${VIMRT}\ftplugin\*.*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
448
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
449 SetOutPath $0\indent
34598
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
450 File ${VIMRT}\indent\README.txt
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
451 File ${VIMRT}\indent\*.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
452
34142
8493cc47ae5b patch 9.1.0032: MS-Windows installer misses keymaps
Christian Brabandt <cb@256bit.org>
parents: 34078
diff changeset
453 SetOutPath $0\keymap
34598
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
454 File ${VIMRT}\keymap\README.txt
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
455 File ${VIMRT}\keymap\*.vim
34142
8493cc47ae5b patch 9.1.0032: MS-Windows installer misses keymaps
Christian Brabandt <cb@256bit.org>
parents: 34078
diff changeset
456
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
457 SetOutPath $0\macros
34598
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
458 File /r /x *.info ${VIMRT}\macros\*.*
9005
c473a9393dc5 commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents: 7613
diff changeset
459
16105
9eb8c0d5c13e patch 8.1.1057: nsis config is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15898
diff changeset
460 SetOutPath $0\pack
9eb8c0d5c13e patch 8.1.1057: nsis config is too complicated
Bram Moolenaar <Bram@vim.org>
parents: 15898
diff changeset
461 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
462
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
463 SetOutPath $0\plugin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
464 File ${VIMRT}\plugin\*.*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
465
801
67fa3b60422d updated for version 7.0b01
vimboss
parents: 799
diff changeset
466 SetOutPath $0\autoload
29838
d9c08ff57474 patch 9.0.0258: MS-Windows installer skips syntax/shared
Bram Moolenaar <Bram@vim.org>
parents: 28737
diff changeset
467 File /r ${VIMRT}\autoload\*.*
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 825
diff changeset
468
28737
2043e243fa89 patch 8.2.4893: distributed import files are not installed
Bram Moolenaar <Bram@vim.org>
parents: 28041
diff changeset
469 SetOutPath $0\import\dist
2043e243fa89 patch 8.2.4893: distributed import files are not installed
Bram Moolenaar <Bram@vim.org>
parents: 28041
diff changeset
470 File ${VIMRT}\import\dist\*.*
2043e243fa89 patch 8.2.4893: distributed import files are not installed
Bram Moolenaar <Bram@vim.org>
parents: 28041
diff changeset
471
28041
64f78eb337ea patch 8.2.4545: MS-Windows: the installed icon is low resolution
Bram Moolenaar <Bram@vim.org>
parents: 27688
diff changeset
472 SetOutPath $0\bitmaps
64f78eb337ea patch 8.2.4545: MS-Windows: the installed icon is low resolution
Bram Moolenaar <Bram@vim.org>
parents: 27688
diff changeset
473 File ${VIMSRC}\vim.ico
64f78eb337ea patch 8.2.4545: MS-Windows: the installed icon is low resolution
Bram Moolenaar <Bram@vim.org>
parents: 27688
diff changeset
474
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
475 SetOutPath $0\syntax
34598
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
476 File /r /x testdir /x generator /x Makefile ${VIMRT}\syntax\*.*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
477
799
6beb2c667935 updated for version 7.0b
vimboss
parents: 7
diff changeset
478 SetOutPath $0\spell
6beb2c667935 updated for version 7.0b
vimboss
parents: 7
diff changeset
479 File ${VIMRT}\spell\*.txt
6beb2c667935 updated for version 7.0b
vimboss
parents: 7
diff changeset
480 File ${VIMRT}\spell\*.vim
6beb2c667935 updated for version 7.0b
vimboss
parents: 7
diff changeset
481 File ${VIMRT}\spell\*.spl
6beb2c667935 updated for version 7.0b
vimboss
parents: 7
diff changeset
482 File ${VIMRT}\spell\*.sug
6beb2c667935 updated for version 7.0b
vimboss
parents: 7
diff changeset
483
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
484 SetOutPath $0\tools
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
485 File ${VIMRT}\tools\*.*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
486
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
487 SetOutPath $0\tutor
34598
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
488 File /x Makefile /x *.info ${VIMRT}\tutor\*.*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
489 SectionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
490
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
491 ##########################################################
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
492 Section "$(str_section_console)" id_section_console
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
493 SectionIn 1 3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
494
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
495 SetOutPath $0
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
496 File /oname=vim.exe ${VIMSRC}\vimw32.exe
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
497 StrCpy $2 "$2 vim view vimdiff"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
498 SectionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
499
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
500 ##########################################################
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
501 Section "$(str_section_batch)" id_section_batch
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
502 SectionIn 3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
503
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
504 StrCpy $1 "$1 -create-batfiles $2"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
505 SectionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
506
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
507 ##########################################################
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
508 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
509 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
510 SectionIn 1 3
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
511
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
512 StrCpy $1 "$1 -install-icons"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
513 SectionEnd
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
514
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
515 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
516 SectionIn 1 3
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
517
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
518 StrCpy $1 "$1 -add-start-menu"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
519 SectionEnd
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
520 SectionGroupEnd
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
521
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
522 ##########################################################
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
523 Section "$(str_section_edit_with)" id_section_editwith
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
524 SectionIn 1 3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
525
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
526 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
527
2217
120502692d82 Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents: 2154
diff changeset
528 ${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
529 # 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
530 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
531 ClearErrors
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
532 !define LIBRARY_SHELL_EXTENSION
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
533 !define LIBRARY_X64
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
534 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
535 "${VIMSRC}\GvimExt\gvimext64.dll" \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
536 "$0\GvimExt64\gvimext.dll" "$0"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
537 !undef LIBRARY_X64
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
538 !undef LIBRARY_SHELL_EXTENSION
2217
120502692d82 Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents: 2154
diff changeset
539 ${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
540
aca41efd888c patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents: 12483
diff changeset
541 # 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
542 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
543 ClearErrors
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
544 !define LIBRARY_SHELL_EXTENSION
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
545 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
546 "${VIMSRC}\GvimExt\gvimext.dll" \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
547 "$0\GvimExt32\gvimext.dll" "$0"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
548 !undef LIBRARY_SHELL_EXTENSION
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
549
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
550 # We don't have a separate entry for the "Open With..." menu, assume
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
551 # the user wants either both or none.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
552 StrCpy $1 "$1 -install-popup -install-openwith"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
553 SectionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
554
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
555 ##########################################################
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
556 Section "$(str_section_vim_rc)" id_section_vimrc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
557 SectionIn 1 3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
558
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
559 StrCpy $1 "$1 -create-vimrc"
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
560
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
561 ${If} ${RunningX64}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
562 SetRegView 64
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
563 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
564 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
565 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
566 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
567 ${If} ${RunningX64}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
568 SetRegView lastused
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
569 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
570
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
571 ${If} $vim_compat_stat == "vi"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
572 StrCpy $1 "$1 -vimrc-compat vi"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
573 ${ElseIf} $vim_compat_stat == "vim"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
574 StrCpy $1 "$1 -vimrc-compat vim"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
575 ${ElseIf} $vim_compat_stat == "defaults"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
576 StrCpy $1 "$1 -vimrc-compat defaults"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
577 ${Else}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
578 StrCpy $1 "$1 -vimrc-compat all"
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 ${If} $vim_keymap_stat == "default"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
582 StrCpy $1 "$1 -vimrc-remap no"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
583 ${Else}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
584 StrCpy $1 "$1 -vimrc-remap win"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
585 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
586
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
587 ${If} $vim_mouse_stat == "default"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
588 StrCpy $1 "$1 -vimrc-behave default"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
589 ${ElseIf} $vim_mouse_stat == "windows"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
590 StrCpy $1 "$1 -vimrc-behave mswin"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
591 ${Else}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
592 StrCpy $1 "$1 -vimrc-behave unix"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
593 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
594
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
595 SectionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
596
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
597 ##########################################################
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
598 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
599 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
600 SectionIn 1 3
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
601
31968
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
602 # use ShellExecAsUser below instead
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
603 # StrCpy $1 "$1 -create-directories home"
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
604 SectionEnd
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
605
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
606 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
607 SectionIn 3
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
608
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
609 StrCpy $1 "$1 -create-directories vim"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
610 SectionEnd
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
611 SectionGroupEnd
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
612
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
613 ##########################################################
34630
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
614 !if ${HAVE_NLS}
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
615 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
616 SectionIn 1 3
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
617
34670
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
618 #; FIXME: When adding new translations, do not forget to make changes here.
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
619 SetOutPath $0
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
620 !if /FileExists ..\README.dax.txt
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
621 ${If} $Language = ${LANG_DANISH}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
622 File ..\README.dax.txt
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
623 ${EndIf}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
624 !endif
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
625 !if /FileExists ..\README.nlx.txt
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
626 ${If} $Language = ${LANG_DUTCH}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
627 File ..\README.nlx.txt
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
628 ${EndIf}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
629 !endif
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
630 !if /FileExists ..\README.dex.txt
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
631 ${If} $Language = ${LANG_GERMAN}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
632 File ..\README.dex.txt
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
633 ${EndIf}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
634 !endif
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
635 !if /FileExists ..\README.itx.txt
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
636 ${If} $Language = ${LANG_ITALIAN}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
637 File ..\README.itx.txt
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
638 ${EndIf}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
639 !endif
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
640 !if /FileExists ..\README.jax.txt
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
641 ${If} $Language = ${LANG_JAPANESE}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
642 File ..\README.jax.txt
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
643 ${EndIf}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
644 !endif
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
645 !if /FileExists ..\README.rux.txt
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
646 ${If} $Language = ${LANG_RUSSIAN}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
647 File ..\README.rux.txt
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
648 ${EndIf}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
649 !endif
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
650 !if /FileExists ..\README.srx.txt
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
651 ${If} $Language = ${LANG_SERBIAN}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
652 File ..\README.srx.txt
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
653 ${EndIf}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
654 !endif
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
655 !if /FileExists ..\README.cnx.txt
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
656 ${If} $Language = ${LANG_SIMPCHINESE}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
657 File ..\README.cnx.txt
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
658 ${EndIf}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
659 !endif
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
660 !if /FileExists ..\README.twx.txt
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
661 ${If} $Language = ${LANG_TRADCHINESE}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
662 File ..\README.twx.txt
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
663 ${EndIf}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
664 !endif
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
665 !if /FileExists ..\README.trx.txt
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
666 ${OrIf} $Language = ${LANG_TURKISH}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
667 File ..\README.trx.txt
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
668 ${EndIf}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
669 !endif
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
670 #; FIXME: When adding new translations, do not forget to make changes here.
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
671 SetOutPath $0\doc
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
672 !if /FileExists "${VIMRT}\doc\uganda.dax"
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
673 ${If} $Language = ${LANG_DANISH}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
674 File ${VIMRT}\doc\uganda.dax
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
675 ${EndIf}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
676 !endif
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
677 !if /FileExists "${VIMRT}\doc\uganda.nlx"
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
678 ${If} $Language = ${LANG_DUTCH}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
679 File ${VIMRT}\doc\uganda.nlx
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
680 ${EndIf}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
681 !endif
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
682 !if /FileExists "${VIMRT}\doc\uganda.dex"
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
683 ${If} $Language = ${LANG_GERMAN}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
684 File ${VIMRT}\doc\uganda.dex
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
685 ${EndIf}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
686 !endif
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
687 !if /FileExists "${VIMRT}\doc\uganda.itx"
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
688 ${If} $Language = ${LANG_ITALIAN}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
689 File ${VIMRT}\doc\uganda.itx
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
690 ${EndIf}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
691 !endif
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
692 !if /FileExists "${VIMRT}\doc\uganda.jax"
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
693 ${If} $Language = ${LANG_JAPANESE}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
694 File ${VIMRT}\doc\uganda.jax
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
695 ${EndIf}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
696 !endif
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
697 !if /FileExists "${VIMRT}\doc\uganda.rux"
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
698 ${If} $Language = ${LANG_RUSSIAN}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
699 File ${VIMRT}\doc\uganda.rux
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
700 ${EndIf}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
701 !endif
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
702 !if /FileExists "${VIMRT}\doc\uganda.srx"
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
703 ${If} $Language = ${LANG_SERBIAN}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
704 File ${VIMRT}\doc\uganda.srx
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
705 ${EndIf}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
706 !endif
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
707 !if /FileExists "${VIMRT}\doc\uganda.cnx"
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
708 ${If} $Language = ${LANG_SIMPCHINESE}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
709 File ${VIMRT}\doc\uganda.cnx
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
710 ${EndIf}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
711 !endif
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
712 !if /FileExists "${VIMRT}\doc\uganda.twx"
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
713 ${If} $Language = ${LANG_TRADCHINESE}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
714 File ${VIMRT}\doc\uganda.twx
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
715 ${EndIf}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
716 !endif
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
717 !if /FileExists "${VIMRT}\doc\uganda.trx"
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
718 ${If} $Language = ${LANG_TURKISH}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
719 File ${VIMRT}\doc\uganda.trx
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
720 ${EndIf}
879a61a9aa07 NSIS: Possibility to include translated license and README.txt files (#14311)
Christian Brabandt <cb@256bit.org>
parents: 34638
diff changeset
721 !endif
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
722 SetOutPath $0\lang
34598
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
723 File /r /x Makefile ${VIMRT}\lang\*.*
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
724 SetOutPath $0
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
725 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
726 "${GETTEXT}\gettext${BIT}\libintl-8.dll" \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
727 "$0\libintl-8.dll" "$0"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
728 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
729 "${GETTEXT}\gettext${BIT}\libiconv-2.dll" \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
730 "$0\libiconv-2.dll" "$0"
34856
73e0743621c3 NSIS: Fix a few issues with gvim.nsi
Christian Brabandt <cb@256bit.org>
parents: 34794
diff changeset
731 # Install libgcc_s_sjlj-1.dll only if it is needed.
73e0743621c3 NSIS: Fix a few issues with gvim.nsi
Christian Brabandt <cb@256bit.org>
parents: 34794
diff changeset
732 # !if /FileExists "${GETTEXT}\gettext${BIT}\libgcc_s_sjlj-1.dll"
73e0743621c3 NSIS: Fix a few issues with gvim.nsi
Christian Brabandt <cb@256bit.org>
parents: 34794
diff changeset
733 # !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
73e0743621c3 NSIS: Fix a few issues with gvim.nsi
Christian Brabandt <cb@256bit.org>
parents: 34794
diff changeset
734 # "${GETTEXT}\gettext${BIT}\libgcc_s_sjlj-1.dll" \
73e0743621c3 NSIS: Fix a few issues with gvim.nsi
Christian Brabandt <cb@256bit.org>
parents: 34794
diff changeset
735 # "$0\libgcc_s_sjlj-1.dll" "$0"
73e0743621c3 NSIS: Fix a few issues with gvim.nsi
Christian Brabandt <cb@256bit.org>
parents: 34794
diff changeset
736 # !endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
737
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
738 ${If} ${SectionIsSelected} ${id_section_editwith}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
739 ${If} ${RunningX64}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
740 # 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
741 SetOutPath $0\GvimExt64
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
742 ClearErrors
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
743 !define LIBRARY_X64
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
744 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
745 "${GETTEXT}\gettext64\libintl-8.dll" \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
746 "$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
747 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
748 "${GETTEXT}\gettext64\libiconv-2.dll" \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
749 "$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
750 !undef LIBRARY_X64
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
751 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
752
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
753 # 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
754 SetOutPath $0\GvimExt32
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
755 ClearErrors
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
756 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
757 "${GETTEXT}\gettext32\libintl-8.dll" \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
758 "$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
759 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
760 "${GETTEXT}\gettext32\libiconv-2.dll" \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
761 "$0\GvimExt32\libiconv-2.dll" "$0\GvimExt32"
34856
73e0743621c3 NSIS: Fix a few issues with gvim.nsi
Christian Brabandt <cb@256bit.org>
parents: 34794
diff changeset
762 # Install libgcc_s_sjlj-1.dll only if it is needed.
73e0743621c3 NSIS: Fix a few issues with gvim.nsi
Christian Brabandt <cb@256bit.org>
parents: 34794
diff changeset
763 # !if /FileExists "${GETTEXT}\gettext32\libgcc_s_sjlj-1.dll"
73e0743621c3 NSIS: Fix a few issues with gvim.nsi
Christian Brabandt <cb@256bit.org>
parents: 34794
diff changeset
764 # !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
73e0743621c3 NSIS: Fix a few issues with gvim.nsi
Christian Brabandt <cb@256bit.org>
parents: 34794
diff changeset
765 # "${GETTEXT}\gettext32\libgcc_s_sjlj-1.dll" \
73e0743621c3 NSIS: Fix a few issues with gvim.nsi
Christian Brabandt <cb@256bit.org>
parents: 34794
diff changeset
766 # "$0\GvimExt32\libgcc_s_sjlj-1.dll" "$0\GvimExt32"
73e0743621c3 NSIS: Fix a few issues with gvim.nsi
Christian Brabandt <cb@256bit.org>
parents: 34794
diff changeset
767 # !endif
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
768 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
769 SectionEnd
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
770 !endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
771
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
772 ##########################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
773 Section -call_install_exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
774 SetOutPath $0
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
775 DetailPrint "$(str_msg_registering)"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
776 nsExec::Exec "$0\install.exe $1"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
777 Pop $3
31968
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
778
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
779 ${If} ${SectionIsSelected} ${id_section_pluginhome}
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
780 ReadEnvStr $3 "COMSPEC"
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
781 Call GetHomeDir
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
782 Pop $4
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
783 ShellExecAsUser::ShellExecAsUser "" "$3" '/c "cd /d "$4" & mkdir vimfiles & cd vimfiles & mkdir colors compiler doc ftdetect ftplugin indent keymap plugin syntax"' SW_HIDE
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
784 ${EndIf}
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
785 SectionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
786
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
787 ##########################################################
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
788 !macro SaveSectionSelection section_id reg_value
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
789 ${If} ${SectionIsSelected} ${section_id}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
790 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
791 ${Else}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
792 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
793 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
794 !macroend
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
795
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
796 Section -post
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
797
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
798 # Get estimated install size
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
799 SectionGetSize ${id_section_exe} $3
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
800 ${If} ${SectionIsSelected} ${id_section_console}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
801 SectionGetSize ${id_section_console} $4
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
802 IntOp $3 $3 + $4
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
803 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
804 ${If} ${SectionIsSelected} ${id_section_editwith}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
805 SectionGetSize ${id_section_editwith} $4
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
806 IntOp $3 $3 + $4
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
807 ${EndIf}
34630
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
808 !if ${HAVE_NLS}
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
809 ${If} ${SectionIsSelected} ${id_section_nls}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
810 SectionGetSize ${id_section_nls} $4
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
811 IntOp $3 $3 + $4
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
812 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
813 !endif
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
814
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
815 # Register EstimatedSize and AllowSilent.
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
816 # 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
817 ${If} ${RunningX64}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
818 SetRegView 64
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
819 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
820 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
821 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
822 ${If} ${RunningX64}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
823 SetRegView lastused
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
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
826 # Store the selections to the registry.
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
827 ${If} ${RunningX64}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
828 SetRegView 64
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
829 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
830 !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
831 !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
832 !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
833 !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
834 !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
835 !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
836 !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
837 !insertmacro SaveSectionSelection ${id_section_pluginvim} "select_pluginvim"
34630
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
838 !if ${HAVE_NLS}
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
839 !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
840 !endif
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
841 ${If} ${RunningX64}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
842 SetRegView lastused
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
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
845 BringToFront
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
846 SectionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
847
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
848 ##########################################################
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
849 !macro LoadSectionSelection section_id reg_value
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
850 ClearErrors
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
851 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
852 ${IfNot} ${Errors}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
853 ${If} $3 = 1
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
854 !insertmacro SelectSection ${section_id}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
855 ${Else}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
856 !insertmacro UnselectSection ${section_id}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
857 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
858 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
859 !macroend
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
860
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 !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
862 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
863 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
864 ${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
865 ${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
866 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
867 ${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
868 !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
869
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
870 Function .onInit
34630
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
871 !if ${HAVE_MULTI_LANG}
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
872 # 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
873 !insertmacro MUI_LANGDLL_DISPLAY
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
874 !endif
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
875
25354
54425c665ba9 patch 8.2.3214: MS-Windows: passing /D does not set the install location
Bram Moolenaar <Bram@vim.org>
parents: 24567
diff changeset
876 ${If} $INSTDIR == ${DEFAULT_INSTDIR}
54425c665ba9 patch 8.2.3214: MS-Windows: passing /D does not set the install location
Bram Moolenaar <Bram@vim.org>
parents: 24567
diff changeset
877 # Check $VIM
54425c665ba9 patch 8.2.3214: MS-Windows: passing /D does not set the install location
Bram Moolenaar <Bram@vim.org>
parents: 24567
diff changeset
878 ReadEnvStr $3 "VIM"
54425c665ba9 patch 8.2.3214: MS-Windows: passing /D does not set the install location
Bram Moolenaar <Bram@vim.org>
parents: 24567
diff changeset
879 ${If} $3 != ""
54425c665ba9 patch 8.2.3214: MS-Windows: passing /D does not set the install location
Bram Moolenaar <Bram@vim.org>
parents: 24567
diff changeset
880 StrCpy $INSTDIR $3
54425c665ba9 patch 8.2.3214: MS-Windows: passing /D does not set the install location
Bram Moolenaar <Bram@vim.org>
parents: 24567
diff changeset
881 ${EndIf}
54425c665ba9 patch 8.2.3214: MS-Windows: passing /D does not set the install location
Bram Moolenaar <Bram@vim.org>
parents: 24567
diff changeset
882 ${EndIf}
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
883
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
884 call CheckOldVim
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
885 Pop $3
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
886 ${If} $3 == ""
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
887 # 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
888 !insertmacro UnselectSection ${id_section_old_ver}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
889 SectionSetInstTypes ${id_section_old_ver} 0
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
890 SectionSetText ${id_section_old_ver} ""
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
891 ${Else}
25354
54425c665ba9 patch 8.2.3214: MS-Windows: passing /D does not set the install location
Bram Moolenaar <Bram@vim.org>
parents: 24567
diff changeset
892 ${If} $INSTDIR == ${DEFAULT_INSTDIR}
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
893 StrCpy $INSTDIR $3
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
894 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
895 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
896
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
897 ${If} ${RunningX64}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
898 SetRegView 64
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
899 ${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
900 # 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
901 !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
902 !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
903 !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
904 !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
905 !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
906 !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
907 !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
908 !insertmacro LoadSectionSelection ${id_section_pluginvim} "select_pluginvim"
34630
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
909 !if ${HAVE_NLS}
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
910 !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
911 !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
912 # 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
913 !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
914 !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
915 !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
916 ${If} ${RunningX64}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
917 SetRegView lastused
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
918 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
919
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
920 # User variables:
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
921 # $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
922 # $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
923 # 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
924 # always register an OLE gvim).
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
925 # $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
926 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
927 StrCpy $1 "-register-OLE"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
928 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
929 FunctionEnd
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
930
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
931 Function .onInstSuccess
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
932 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
933 FunctionEnd
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
934
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
935 Function .onInstFailed
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
936 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
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 ##########################################################
12708
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
940 Function SetCustom
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
941 # 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
942
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
943 # 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
944 ${IfNot} ${SectionIsSelected} ${id_section_vimrc}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
945 Abort
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
946 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
947
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
948 !insertmacro MUI_HEADER_TEXT \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
949 $(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
950
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
951 nsDialogs::Create 1018
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
952 Pop $vim_dialog
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
953
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
954 ${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
955 Abort
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
956 ${EndIf}
12708
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
957
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
958 ${If} ${RunningX64}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
959 SetRegView 64
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
960 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
961
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
962 GetFunctionAddress $3 ValidateCustom
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
963 nsDialogs::OnBack $3
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
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
966 # 1st group - Compatibility
34638
857eb73fb6a7 NSIS: Redesigning the appearance of the vimrc settings page (#14292)
Christian Brabandt <cb@256bit.org>
parents: 34630
diff changeset
967 ${NSD_CreateGroupBox} 0u 0u 296u 44u $(str_msg_compat_title)
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
968 Pop $3
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
969
34638
857eb73fb6a7 NSIS: Redesigning the appearance of the vimrc settings page (#14292)
Christian Brabandt <cb@256bit.org>
parents: 34630
diff changeset
970 ${NSD_CreateLabel} 16u 14u 269u 10u $(str_msg_compat_desc)
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
971 Pop $3
34638
857eb73fb6a7 NSIS: Redesigning the appearance of the vimrc settings page (#14292)
Christian Brabandt <cb@256bit.org>
parents: 34630
diff changeset
972 ${NSD_CreateDropList} 42u 26u 237u 13u ""
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
973 Pop $vim_nsd_compat
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
974 ${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
975 ${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
976 ${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
977 ${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
978
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
979 ${If} $vim_compat_stat == "defaults"
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
980 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
981 ${ElseIf} $vim_compat_stat == "vim"
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
982 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
983 ${ElseIf} $vim_compat_stat == "vi"
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
984 StrCpy $4 0
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
985 ${Else} # default
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
986 StrCpy $4 3
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
987 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
988 ${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
989
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
990
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
991 # 2nd group - Key remapping
34638
857eb73fb6a7 NSIS: Redesigning the appearance of the vimrc settings page (#14292)
Christian Brabandt <cb@256bit.org>
parents: 34630
diff changeset
992 ${NSD_CreateGroupBox} 0u 48u 296u 44u $(str_msg_keymap_title)
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
993 Pop $3
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
994
34638
857eb73fb6a7 NSIS: Redesigning the appearance of the vimrc settings page (#14292)
Christian Brabandt <cb@256bit.org>
parents: 34630
diff changeset
995 ${NSD_CreateLabel} 16u 62u 269u 10u $(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
996 Pop $3
34638
857eb73fb6a7 NSIS: Redesigning the appearance of the vimrc settings page (#14292)
Christian Brabandt <cb@256bit.org>
parents: 34630
diff changeset
997 ${NSD_CreateDropList} 42u 74u 236u 13u ""
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
998 Pop $vim_nsd_keymap
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
999 ${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
1000 ${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
1001
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
1002 ${If} $vim_keymap_stat == "windows"
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1003 StrCpy $4 1
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1004 ${Else} # default
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1005 StrCpy $4 0
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1006 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1007 ${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
1008
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1009
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1010 # 3rd group - Mouse behavior
34638
857eb73fb6a7 NSIS: Redesigning the appearance of the vimrc settings page (#14292)
Christian Brabandt <cb@256bit.org>
parents: 34630
diff changeset
1011 ${NSD_CreateGroupBox} 0u 95u 296u 44u $(str_msg_mouse_title)
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1012 Pop $3
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1013
34638
857eb73fb6a7 NSIS: Redesigning the appearance of the vimrc settings page (#14292)
Christian Brabandt <cb@256bit.org>
parents: 34630
diff changeset
1014 ${NSD_CreateLabel} 16u 108u 269u 10u $(str_msg_mouse_desc)
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1015 Pop $3
34638
857eb73fb6a7 NSIS: Redesigning the appearance of the vimrc settings page (#14292)
Christian Brabandt <cb@256bit.org>
parents: 34630
diff changeset
1016 ${NSD_CreateDropList} 42u 121u 237u 13u ""
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1017 Pop $vim_nsd_mouse
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1018 ${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
1019 ${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
1020 ${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
1021
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
1022 ${If} $vim_mouse_stat == "xterm"
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1023 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
1024 ${ElseIf} $vim_mouse_stat == "windows"
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1025 StrCpy $4 1
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1026 ${Else} # default
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1027 StrCpy $4 0
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1028 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1029 ${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
1030
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1031 ${If} ${RunningX64}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1032 SetRegView lastused
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1033 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1034
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1035 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
1036 FunctionEnd
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
1037
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
1038 Function ValidateCustom
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1039 ${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
1040 ${If} $3 = 0
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1041 StrCpy $vim_compat_stat "vi"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1042 ${ElseIf} $3 = 1
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1043 StrCpy $vim_compat_stat "vim"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1044 ${ElseIf} $3 = 2
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1045 StrCpy $vim_compat_stat "defaults"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1046 ${Else}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1047 StrCpy $vim_compat_stat "all"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1048 ${EndIf}
12708
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
1049
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1050 ${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
1051 ${If} $3 = 0
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1052 StrCpy $vim_keymap_stat "default"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1053 ${Else}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1054 StrCpy $vim_keymap_stat "windows"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1055 ${EndIf}
12708
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
1056
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1057 ${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
1058 ${If} $3 = 0
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1059 StrCpy $vim_mouse_stat "default"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1060 ${ElseIf} $3 = 1
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1061 StrCpy $vim_mouse_stat "windows"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1062 ${Else}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1063 StrCpy $vim_mouse_stat "xterm"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1064 ${EndIf}
12708
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
1065 FunctionEnd
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
1066
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
1067 ##########################################################
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1068 # Description for Installer Sections
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1069
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1070 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1071 !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
1072 !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
1073 !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
1074 !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
1075 !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
1076 !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
1077 !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
1078 !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
1079 !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
1080 !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
1081 !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
1082 !insertmacro MUI_DESCRIPTION_TEXT ${id_section_pluginvim} $(str_desc_plugin_vim)
34630
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
1083 !if ${HAVE_NLS}
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1084 !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
1085 !endif
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1086 !insertmacro MUI_FUNCTION_DESCRIPTION_END
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1087
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1088
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1089 ##########################################################
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1090 # Uninstaller Functions and Sections
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 Function un.onInit
34630
250793f9b574 NSIS: Update nsis installer and nsis docs (#14256)
Christian Brabandt <cb@256bit.org>
parents: 34598
diff changeset
1093 !if ${HAVE_MULTI_LANG}
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1094 # Get the language from the registry.
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1095 !insertmacro MUI_UNGETLANGUAGE
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1096 !endif
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1097 FunctionEnd
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1098
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1099 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
1100 SectionIn RO
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1101
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1102 # Apparently $INSTDIR is set to the directory where the uninstaller is
34598
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
1103 # created. Thus the "vim91" directory is included in it.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1104 StrCpy $0 "$INSTDIR"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1105
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1106 # 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
1107 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
1108 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
1109 Pop $3
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1110
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1111 # We may have been put to the background when uninstall did something.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1112 BringToFront
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1113
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1114 # Delete the installer language setting.
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1115 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
1116 SectionEnd
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1117
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1118 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
1119
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1120 StrCpy $0 "$INSTDIR"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1121
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1122 # Delete gettext and iconv DLLs
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1123 ${If} ${FileExists} "$0\libiconv-2.dll"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1124 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1125 "$0\libiconv-2.dll"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1126 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1127 ${If} ${FileExists} "$0\libintl-8.dll"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1128 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1129 "$0\libintl-8.dll"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1130 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1131 ${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
1132 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1133 "$0\libgcc_s_sjlj-1.dll"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1134 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1135
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1136 # Delete other DLLs
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1137 Delete /REBOOTOK $0\*.dll
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1138
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1139 # 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
1140 ${If} ${RunningX64}
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1141 !define LIBRARY_X64
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1142 ${If} ${FileExists} "$0\GvimExt64\gvimext.dll"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1143 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1144 "$0\GvimExt64\gvimext.dll"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1145 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1146 ${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
1147 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1148 "$0\GvimExt64\libiconv-2.dll"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1149 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1150 ${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
1151 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1152 "$0\GvimExt64\libintl-8.dll"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1153 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1154 ${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
1155 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1156 "$0\GvimExt64\libwinpthread-1.dll"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1157 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1158 !undef LIBRARY_X64
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1159 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
1160 ${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
1161
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1162 # Delete 32-bit GvimExt
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1163 ${If} ${FileExists} "$0\GvimExt32\gvimext.dll"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1164 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1165 "$0\GvimExt32\gvimext.dll"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1166 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1167 ${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
1168 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1169 "$0\GvimExt32\libiconv-2.dll"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1170 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1171 ${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
1172 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1173 "$0\GvimExt32\libintl-8.dll"
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1174 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1175 ${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
1176 !insertmacro UninstallLib DLL NOTSHARED REBOOT_NOTPROTECTED \
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1177 "$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
1178 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1179 RMDir /r $0\GvimExt32
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1180
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1181 ClearErrors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1182 # Remove everything but *.dll files. Avoids that
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1183 # a lot remains when gvimext.dll cannot be deleted.
879
232a4740aa0e updated for version 7.0-005
vimboss
parents: 874
diff changeset
1184 RMDir /r $0\autoload
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1185 RMDir /r $0\colors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1186 RMDir /r $0\compiler
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1187 RMDir /r $0\doc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1188 RMDir /r $0\ftplugin
28737
2043e243fa89 patch 8.2.4893: distributed import files are not installed
Bram Moolenaar <Bram@vim.org>
parents: 28041
diff changeset
1189 RMDir /r $0\import
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1190 RMDir /r $0\indent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1191 RMDir /r $0\macros
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1192 RMDir /r $0\pack
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1193 RMDir /r $0\plugin
879
232a4740aa0e updated for version 7.0-005
vimboss
parents: 874
diff changeset
1194 RMDir /r $0\spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1195 RMDir /r $0\syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1196 RMDir /r $0\tools
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1197 RMDir /r $0\tutor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1198 RMDir /r $0\lang
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1199 RMDir /r $0\keymap
34598
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
1200 RMDir /r $0\bitmaps
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1201 Delete $0\*.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1202 Delete $0\*.bat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1203 Delete $0\*.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1204 Delete $0\*.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1205
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1206 ${If} ${Errors}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1207 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
1208 ${EndIf}
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1209
34598
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
1210 # No error message if the "vim91" directory can't be removed, the
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1211 # gvimext.dll may still be there.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1212 RMDir $0
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1213 SectionEnd
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1214
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1215 # 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
1216 !macro RemoveVimfiles dir
34598
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
1217 ${If} ${FileExists} ${dir}\_viminfo
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
1218 Delete ${dir}\_viminfo
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
1219 ${EndIf}
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
1220 ${If} ${DirExists} ${dir}\vimfiles
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1221 RMDir ${dir}\vimfiles\colors
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1222 RMDir ${dir}\vimfiles\compiler
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1223 RMDir ${dir}\vimfiles\doc
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1224 RMDir ${dir}\vimfiles\ftdetect
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1225 RMDir ${dir}\vimfiles\ftplugin
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1226 RMDir ${dir}\vimfiles\indent
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1227 RMDir ${dir}\vimfiles\keymap
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1228 RMDir ${dir}\vimfiles\plugin
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1229 RMDir ${dir}\vimfiles\syntax
34598
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
1230 ${If} ${FileExists} ${dir}\vimfiles\.netrwhist*
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
1231 Delete ${dir}\vimfiles\.netrwhist*
d91ac228d7df patch 9.1.0191: Installer does not remove all files
Christian Brabandt <cb@256bit.org>
parents: 34492
diff changeset
1232 ${EndIf}
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1233 RMDir ${dir}\vimfiles
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1234 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1235 !macroend
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1236
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1237 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
1238 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
1239 # get the home dir
31968
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
1240 Call un.GetHomeDir
aa38648a8c4e patch 9.0.1316: MS-Windows: vimfiles dir created with admin group
Bram Moolenaar <Bram@vim.org>
parents: 30727
diff changeset
1241 Pop $0
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1242
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1243 ${If} $0 != ""
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1244 !insertmacro RemoveVimfiles $0
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1245 ${EndIf}
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1246 SectionEnd
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1247
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1248 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
1249 # 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
1250 Push $INSTDIR
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1251 Call un.GetParent
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1252 Pop $0
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1253
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1254 # 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
1255 !insertmacro RemoveVimfiles $0
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1256 SectionEnd
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1257 SectionGroupEnd
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1258
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1259 Section "un.$(str_unsection_rootdir)" id_unsection_rootdir
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1260 # get the parent dir of the installation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1261 Push $INSTDIR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1262 Call un.GetParent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1263 Pop $0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1264
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
1265 ${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
1266 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
1267 ${Endif}
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1268 RMDir $0
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1269 SectionEnd
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1270
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1271 ##########################################################
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1272 # Description for Uninstaller Sections
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1273
15213
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1274 !insertmacro MUI_UNFUNCTION_DESCRIPTION_BEGIN
c0eb9a74f73d patch 8.1.0616: NSIS installer is outdated
Bram Moolenaar <Bram@vim.org>
parents: 13884
diff changeset
1275 !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
1276 !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
1277 !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
1278 !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
1279 !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
1280 !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
1281 !insertmacro MUI_UNFUNCTION_DESCRIPTION_END