Mercurial > vim
annotate nsis/gvim.nsi @ 13648:544d9b63f9e9 v8.0.1696
patch 8.0.1696: coverage statistics don't work
commit https://github.com/vim/vim/commit/d60e0a1d202d49503ba95a40c165172c8f61db7a
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Apr 11 10:06:04 2018 +0200
patch 8.0.1696: coverage statistics don't work
Problem: Coverate statistics don't work.
Solution: Include the xxd directory. (Christian Brabandt)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 11 Apr 2018 10:15:07 +0200 |
parents | fbc58aa4ea1e |
children | 0ddb61a7404f |
rev | line source |
---|---|
7 | 1 # NSIS file to create a self-installing exe for Vim. |
2 # It requires NSIS version 2.0 or later. | |
6343 | 3 # Last Change: 2014 Nov 5 |
7 | 4 |
5 # WARNING: if you make changes to this script, look out for $0 to be valid, | |
6 # because uninstall deletes most files in $0. | |
7 | |
5128
3dafc80e781b
updated for version 7.3.1307
Bram Moolenaar <bram@vim.org>
parents:
2577
diff
changeset
|
8 # 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
|
9 !ifndef VIMSRC |
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
10 !define VIMSRC "..\src" |
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
11 !endif |
7 | 12 |
13 # Location of runtime files | |
7613
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
14 !ifndef VIMRT |
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
15 !define VIMRT ".." |
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
16 !endif |
7 | 17 |
18 # Location of extra tools: diff.exe | |
7613
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
19 !ifndef VIMTOOLS |
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
20 !define VIMTOOLS ..\.. |
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
21 !endif |
7 | 22 |
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
|
23 # 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
|
24 # 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
|
25 # 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
|
26 !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
|
27 !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
|
28 !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
|
29 |
7 | 30 # Comment the next line if you don't have UPX. |
12626
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
31 # Get it at https://upx.github.io/ |
7 | 32 !define HAVE_UPX |
33 | |
34 # comment the next line if you do not want to add Native Language Support | |
35 !define HAVE_NLS | |
36 | |
7443
357b7bd8d612
commit https://github.com/vim/vim/commit/6c7b44472f7055c78d996e1b626bd2932502212f
Christian Brabandt <cb@256bit.org>
parents:
6343
diff
changeset
|
37 !include gvim_version.nsh # for version number |
7 | 38 |
39 # ----------- No configurable settings below this line ----------- | |
40 | |
41 !include UpgradeDLL.nsh # for VisVim.dll | |
2217
120502692d82
Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
42 !include LogicLib.nsh |
120502692d82
Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
43 !include x64.nsh |
7 | 44 |
45 Name "Vim ${VER_MAJOR}.${VER_MINOR}" | |
46 OutFile gvim${VER_MAJOR}${VER_MINOR}.exe | |
47 CRCCheck force | |
7613
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
48 SetCompressor /SOLID lzma |
7 | 49 SetDatablockOptimize on |
2217
120502692d82
Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
50 RequestExecutionLevel highest |
7613
4456fa2d22e8
commit https://github.com/vim/vim/commit/286eacd3f6631e985089176fb1dff1bcf1a1d6b5
Christian Brabandt <cb@256bit.org>
parents:
7443
diff
changeset
|
51 XPStyle on |
7 | 52 |
53 ComponentText "This will install Vim ${VER_MAJOR}.${VER_MINOR} on your computer." | |
6343 | 54 DirText "Choose a directory to install Vim (should contain 'vim')" |
7 | 55 Icon icons\vim_16c.ico |
5134
b49784c49d53
updated for version 7.3.1310
Bram Moolenaar <bram@vim.org>
parents:
5128
diff
changeset
|
56 # NSIS2 uses a different strategy with six different images in a strip... |
7 | 57 #EnabledBitmap icons\enabled.bmp |
58 #DisabledBitmap icons\disabled.bmp | |
59 UninstallText "This will uninstall Vim ${VER_MAJOR}.${VER_MINOR} from your system." | |
60 UninstallIcon icons\vim_uninst_16c.ico | |
61 | |
62 # On NSIS 2 using the BGGradient causes trouble on Windows 98, in combination | |
63 # with the BringToFront. | |
64 # BGGradient 004000 008200 FFFFFF | |
65 LicenseText "You should read the following before installing:" | |
66 LicenseData ${VIMRT}\doc\uganda.nsis.txt | |
67 | |
68 !ifdef HAVE_UPX | |
69 !packhdr temp.dat "upx --best --compress-icons=1 temp.dat" | |
70 !endif | |
71 | |
72 # This adds '\vim' to the user choice automagically. The actual value is | |
73 # obtained below with ReadINIStr. | |
74 InstallDir "$PROGRAMFILES\Vim" | |
75 | |
76 # Types of installs we can perform: | |
77 InstType Typical | |
78 InstType Minimal | |
79 InstType Full | |
80 | |
81 SilentInstall normal | |
82 | |
83 # These are the pages we use | |
84 Page license | |
85 Page components | |
12708
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
86 Page custom SetCustom ValidateCustom ": _vimrc setting" |
7 | 87 Page directory "" "" CheckInstallDir |
88 Page instfiles | |
89 UninstPage uninstConfirm | |
90 UninstPage instfiles | |
91 | |
13196
fbc58aa4ea1e
patch 8.0.1472: MS-Windows: nsis installer is a bit slow
Christian Brabandt <cb@256bit.org>
parents:
12816
diff
changeset
|
92 # Reserve files |
fbc58aa4ea1e
patch 8.0.1472: MS-Windows: nsis installer is a bit slow
Christian Brabandt <cb@256bit.org>
parents:
12816
diff
changeset
|
93 # Needed for showing the _vimrc setting page faster. |
fbc58aa4ea1e
patch 8.0.1472: MS-Windows: nsis installer is a bit slow
Christian Brabandt <cb@256bit.org>
parents:
12816
diff
changeset
|
94 ReserveFile /plugin InstallOptions.dll |
fbc58aa4ea1e
patch 8.0.1472: MS-Windows: nsis installer is a bit slow
Christian Brabandt <cb@256bit.org>
parents:
12816
diff
changeset
|
95 ReserveFile vimrc.ini |
fbc58aa4ea1e
patch 8.0.1472: MS-Windows: nsis installer is a bit slow
Christian Brabandt <cb@256bit.org>
parents:
12816
diff
changeset
|
96 |
7 | 97 ########################################################## |
98 # Functions | |
99 | |
100 Function .onInit | |
101 MessageBox MB_YESNO|MB_ICONQUESTION \ | |
102 "This will install Vim ${VER_MAJOR}.${VER_MINOR} on your computer.$\n Continue?" \ | |
11571
bafb447104f6
patch 8.0.0668: nsis installer script does not work
Christian Brabandt <cb@256bit.org>
parents:
11555
diff
changeset
|
103 /SD IDYES \ |
bafb447104f6
patch 8.0.0668: nsis installer script does not work
Christian Brabandt <cb@256bit.org>
parents:
11555
diff
changeset
|
104 IDYES NoAbort |
7 | 105 Abort ; causes installer to quit. |
106 NoAbort: | |
107 | |
108 # run the install program to check for already installed versions | |
109 SetOutPath $TEMP | |
110 File /oname=install.exe ${VIMSRC}\installw32.exe | |
111 ExecWait "$TEMP\install.exe -uninstall-check" | |
112 Delete $TEMP\install.exe | |
113 | |
114 # We may have been put to the background when uninstall did something. | |
115 BringToFront | |
116 | |
117 # Install will have created a file for us that contains the directory where | |
118 # we should install. This is $VIM if it's set. This appears to be the only | |
119 # way to get the value of $VIM here!? | |
120 ReadINIStr $INSTDIR $TEMP\vimini.ini vimini dir | |
121 Delete $TEMP\vimini.ini | |
122 | |
123 # If ReadINIStr failed or did not find a path: use the default dir. | |
124 StrCmp $INSTDIR "" 0 IniOK | |
125 StrCpy $INSTDIR "$PROGRAMFILES\Vim" | |
126 IniOK: | |
127 | |
128 # Should check for the value of $VIM and use it. Unfortunately I don't know | |
129 # how to obtain the value of $VIM | |
130 # IfFileExists "$VIM" 0 No_Vim | |
131 # StrCpy $INSTDIR "$VIM" | |
132 # No_Vim: | |
133 | |
134 # User variables: | |
135 # $0 - holds the directory the executables are installed to | |
136 # $1 - holds the parameters to be passed to install.exe. Starts with OLE | |
137 # registration (since a non-OLE gvim will not complain, and we want to | |
138 # always register an OLE gvim). | |
139 # $2 - holds the names to create batch files for | |
140 StrCpy $0 "$INSTDIR\vim${VER_MAJOR}${VER_MINOR}" | |
141 StrCpy $1 "-register-OLE" | |
801 | 142 StrCpy $2 "gvim evim gview gvimdiff vimtutor" |
7 | 143 |
12708
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
144 # Extract InstallOptions files |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
145 # $PLUGINSDIR will automatically be removed when the installer closes |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
146 InitPluginsDir |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
147 File /oname=$PLUGINSDIR\vimrc.ini "vimrc.ini" |
7 | 148 FunctionEnd |
149 | |
150 Function .onUserAbort | |
151 MessageBox MB_YESNO|MB_ICONQUESTION "Abort install?" IDYES NoCancelAbort | |
152 Abort ; causes installer to not quit. | |
153 NoCancelAbort: | |
154 FunctionEnd | |
155 | |
156 # We only accept the directory if it ends in "vim". Using .onVerifyInstDir has | |
157 # the disadvantage that the browse dialog is difficult to use. | |
158 Function CheckInstallDir | |
159 FunctionEnd | |
160 | |
161 Function .onInstSuccess | |
162 WriteUninstaller vim${VER_MAJOR}${VER_MINOR}\uninstall-gui.exe | |
163 MessageBox MB_YESNO|MB_ICONQUESTION \ | |
1618 | 164 "The installation process has been successful. Happy Vimming! \ |
7 | 165 $\n$\n Do you want to see the README file now?" IDNO NoReadme |
166 Exec '$0\gvim.exe -R "$0\README.txt"' | |
167 NoReadme: | |
168 FunctionEnd | |
169 | |
170 Function .onInstFailed | |
171 MessageBox MB_OK|MB_ICONEXCLAMATION "Installation failed. Better luck next time." | |
172 FunctionEnd | |
173 | |
174 Function un.onUnInstSuccess | |
175 MessageBox MB_OK|MB_ICONINFORMATION \ | |
176 "Vim ${VER_MAJOR}.${VER_MINOR} has been (partly) removed from your system" | |
177 FunctionEnd | |
178 | |
179 Function un.GetParent | |
180 Exch $0 ; old $0 is on top of stack | |
181 Push $1 | |
182 Push $2 | |
183 StrCpy $1 -1 | |
184 loop: | |
185 StrCpy $2 $0 1 $1 | |
186 StrCmp $2 "" exit | |
187 StrCmp $2 "\" exit | |
188 IntOp $1 $1 - 1 | |
189 Goto loop | |
190 exit: | |
191 StrCpy $0 $0 $1 | |
192 Pop $2 | |
193 Pop $1 | |
194 Exch $0 ; put $0 on top of stack, restore $0 to original value | |
195 FunctionEnd | |
196 | |
197 ########################################################## | |
198 Section "Vim executables and runtime files" | |
12483
493752ef9f75
patch 8.0.1121: can uncheck executables in MS-Windows installer
Christian Brabandt <cb@256bit.org>
parents:
12371
diff
changeset
|
199 SectionIn 1 2 3 RO |
7 | 200 |
201 # we need also this here if the user changes the instdir | |
202 StrCpy $0 "$INSTDIR\vim${VER_MAJOR}${VER_MINOR}" | |
203 | |
204 SetOutPath $0 | |
205 File /oname=gvim.exe ${VIMSRC}\gvim_ole.exe | |
206 File /oname=install.exe ${VIMSRC}\installw32.exe | |
207 File /oname=uninstal.exe ${VIMSRC}\uninstalw32.exe | |
208 File ${VIMSRC}\vimrun.exe | |
10028
62b7fb15ff7e
commit https://github.com/vim/vim/commit/fec246d2c595164ac3b7e9fe9677053d3739b834
Christian Brabandt <cb@256bit.org>
parents:
9005
diff
changeset
|
209 File /oname=tee.exe ${VIMSRC}\teew32.exe |
7 | 210 File /oname=xxd.exe ${VIMSRC}\xxdw32.exe |
211 File ${VIMRT}\vimtutor.bat | |
212 File ${VIMRT}\README.txt | |
213 File ..\uninstal.txt | |
214 File ${VIMRT}\*.vim | |
215 File ${VIMRT}\rgb.txt | |
216 | |
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
|
217 File ${VIMTOOLS}\diff.exe |
e18b9d7d8d78
patch 8.0.0961: the script to build the installer does not include winpty
Christian Brabandt <cb@256bit.org>
parents:
11571
diff
changeset
|
218 File ${VIMTOOLS}\winpty32.dll |
e18b9d7d8d78
patch 8.0.0961: the script to build the installer does not include winpty
Christian Brabandt <cb@256bit.org>
parents:
11571
diff
changeset
|
219 File ${VIMTOOLS}\winpty-agent.exe |
e18b9d7d8d78
patch 8.0.0961: the script to build the installer does not include winpty
Christian Brabandt <cb@256bit.org>
parents:
11571
diff
changeset
|
220 |
7 | 221 SetOutPath $0\colors |
222 File ${VIMRT}\colors\*.* | |
223 | |
224 SetOutPath $0\compiler | |
225 File ${VIMRT}\compiler\*.* | |
226 | |
227 SetOutPath $0\doc | |
228 File ${VIMRT}\doc\*.txt | |
229 File ${VIMRT}\doc\tags | |
230 | |
231 SetOutPath $0\ftplugin | |
232 File ${VIMRT}\ftplugin\*.* | |
233 | |
234 SetOutPath $0\indent | |
235 File ${VIMRT}\indent\*.* | |
236 | |
237 SetOutPath $0\macros | |
238 File ${VIMRT}\macros\*.* | |
12371
55359dabb6cc
patch 8.0.1065: not all macro examples are included
Christian Brabandt <cb@256bit.org>
parents:
12162
diff
changeset
|
239 SetOutPath $0\macros\hanoi |
55359dabb6cc
patch 8.0.1065: not all macro examples are included
Christian Brabandt <cb@256bit.org>
parents:
12162
diff
changeset
|
240 File ${VIMRT}\macros\hanoi\*.* |
55359dabb6cc
patch 8.0.1065: not all macro examples are included
Christian Brabandt <cb@256bit.org>
parents:
12162
diff
changeset
|
241 SetOutPath $0\macros\life |
55359dabb6cc
patch 8.0.1065: not all macro examples are included
Christian Brabandt <cb@256bit.org>
parents:
12162
diff
changeset
|
242 File ${VIMRT}\macros\life\*.* |
55359dabb6cc
patch 8.0.1065: not all macro examples are included
Christian Brabandt <cb@256bit.org>
parents:
12162
diff
changeset
|
243 SetOutPath $0\macros\maze |
55359dabb6cc
patch 8.0.1065: not all macro examples are included
Christian Brabandt <cb@256bit.org>
parents:
12162
diff
changeset
|
244 File ${VIMRT}\macros\maze\*.* |
55359dabb6cc
patch 8.0.1065: not all macro examples are included
Christian Brabandt <cb@256bit.org>
parents:
12162
diff
changeset
|
245 SetOutPath $0\macros\urm |
55359dabb6cc
patch 8.0.1065: not all macro examples are included
Christian Brabandt <cb@256bit.org>
parents:
12162
diff
changeset
|
246 File ${VIMRT}\macros\urm\*.* |
7 | 247 |
9005
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
248 SetOutPath $0\pack\dist\opt\dvorak\dvorak |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
249 File ${VIMRT}\pack\dist\opt\dvorak\dvorak\*.* |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
250 SetOutPath $0\pack\dist\opt\dvorak\plugin |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
251 File ${VIMRT}\pack\dist\opt\dvorak\plugin\*.* |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
252 |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
253 SetOutPath $0\pack\dist\opt\editexisting\plugin |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
254 File ${VIMRT}\pack\dist\opt\editexisting\plugin\*.* |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
255 |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
256 SetOutPath $0\pack\dist\opt\justify\plugin |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
257 File ${VIMRT}\pack\dist\opt\justify\plugin\*.* |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
258 |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
259 SetOutPath $0\pack\dist\opt\matchit\doc |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
260 File ${VIMRT}\pack\dist\opt\matchit\doc\*.* |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
261 SetOutPath $0\pack\dist\opt\matchit\plugin |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
262 File ${VIMRT}\pack\dist\opt\matchit\plugin\*.* |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
263 |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
264 SetOutPath $0\pack\dist\opt\shellmenu\plugin |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
265 File ${VIMRT}\pack\dist\opt\shellmenu\plugin\*.* |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
266 |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
267 SetOutPath $0\pack\dist\opt\swapmouse\plugin |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
268 File ${VIMRT}\pack\dist\opt\swapmouse\plugin\*.* |
c473a9393dc5
commit https://github.com/vim/vim/commit/c7baa43fdb3f5b001ba3e6eb05bf6e199698eeea
Christian Brabandt <cb@256bit.org>
parents:
7613
diff
changeset
|
269 |
7 | 270 SetOutPath $0\plugin |
271 File ${VIMRT}\plugin\*.* | |
272 | |
801 | 273 SetOutPath $0\autoload |
274 File ${VIMRT}\autoload\*.* | |
275 | |
12816
218102da5226
patch 8.0.1285: occasional crash when using a channel
Christian Brabandt <cb@256bit.org>
parents:
12708
diff
changeset
|
276 SetOutPath $0\autoload\dist |
218102da5226
patch 8.0.1285: occasional crash when using a channel
Christian Brabandt <cb@256bit.org>
parents:
12708
diff
changeset
|
277 File ${VIMRT}\autoload\dist\*.* |
218102da5226
patch 8.0.1285: occasional crash when using a channel
Christian Brabandt <cb@256bit.org>
parents:
12708
diff
changeset
|
278 |
827 | 279 SetOutPath $0\autoload\xml |
280 File ${VIMRT}\autoload\xml\*.* | |
281 | |
7 | 282 SetOutPath $0\syntax |
283 File ${VIMRT}\syntax\*.* | |
284 | |
799 | 285 SetOutPath $0\spell |
286 File ${VIMRT}\spell\*.txt | |
287 File ${VIMRT}\spell\*.vim | |
288 File ${VIMRT}\spell\*.spl | |
289 File ${VIMRT}\spell\*.sug | |
290 | |
7 | 291 SetOutPath $0\tools |
292 File ${VIMRT}\tools\*.* | |
293 | |
294 SetOutPath $0\tutor | |
295 File ${VIMRT}\tutor\*.* | |
296 SectionEnd | |
297 | |
298 ########################################################## | |
299 Section "Vim console program (vim.exe)" | |
300 SectionIn 1 3 | |
301 | |
302 SetOutPath $0 | |
303 ReadRegStr $R0 HKLM \ | |
304 "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion | |
305 IfErrors 0 lbl_winnt | |
5128
3dafc80e781b
updated for version 7.3.1307
Bram Moolenaar <bram@vim.org>
parents:
2577
diff
changeset
|
306 # Windows 95/98/ME: not supported |
7 | 307 Goto lbl_done |
308 lbl_winnt: | |
5134
b49784c49d53
updated for version 7.3.1310
Bram Moolenaar <bram@vim.org>
parents:
5128
diff
changeset
|
309 # Windows NT/2000/XP and later |
7 | 310 File /oname=vim.exe ${VIMSRC}\vimw32.exe |
311 lbl_done: | |
312 StrCpy $2 "$2 vim view vimdiff" | |
313 SectionEnd | |
314 | |
315 ########################################################## | |
316 Section "Create .bat files for command line use" | |
317 SectionIn 3 | |
318 | |
319 StrCpy $1 "$1 -create-batfiles $2" | |
320 SectionEnd | |
321 | |
322 ########################################################## | |
323 Section "Create icons on the Desktop" | |
324 SectionIn 1 3 | |
325 | |
326 StrCpy $1 "$1 -install-icons" | |
327 SectionEnd | |
328 | |
329 ########################################################## | |
330 Section "Add Vim to the Start Menu" | |
331 SectionIn 1 3 | |
332 | |
333 StrCpy $1 "$1 -add-start-menu" | |
334 SectionEnd | |
335 | |
336 ########################################################## | |
337 Section "Add an Edit-with-Vim context menu entry" | |
338 SectionIn 1 3 | |
339 | |
340 # Be aware of this sequence of events: | |
341 # - user uninstalls Vim, gvimext.dll can't be removed (it's in use) and | |
342 # is scheduled to be removed at next reboot. | |
343 # - user installs Vim in same directory, gvimext.dll still exists. | |
344 # If we now skip installing gvimext.dll, it will disappear at the next | |
345 # reboot. Thus when copying gvimext.dll fails always schedule it to be | |
346 # installed at the next reboot. Can't use UpgradeDLL! | |
347 # We don't ask the user to reboot, the old dll will keep on working. | |
348 SetOutPath $0 | |
349 ClearErrors | |
350 SetOverwrite try | |
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
|
351 |
2217
120502692d82
Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
352 ${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
|
353 # 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
|
354 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
|
355 ClearErrors |
2217
120502692d82
Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
356 File /oname=gvimext.dll ${VIMSRC}\GvimExt\gvimext64.dll |
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
|
357 !ifdef HAVE_NLS |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
358 File ${GETTEXT}\gettext64\libintl-8.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
359 File ${GETTEXT}\gettext64\libiconv-2.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
360 !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
|
361 |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
362 IfErrors 0 GvimExt64Done |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
363 |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
364 # Can't copy gvimext.dll, create it under another name and rename it |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
365 # on next reboot. |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
366 GetTempFileName $3 $0\GvimExt64 |
12638
52d928d016bc
patch 8.0.1197: MS-Windows build instructions are not up to date
Christian Brabandt <cb@256bit.org>
parents:
12626
diff
changeset
|
367 File /oname=$3 ${VIMSRC}\GvimExt\gvimext64.dll |
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
|
368 Rename /REBOOTOK $3 $0\GvimExt64\gvimext.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
369 !ifdef HAVE_NLS |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
370 GetTempFileName $3 $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
|
371 File /oname=$3 ${GETTEXT}\gettext64\libintl-8.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
372 Rename /REBOOTOK $3 $0\GvimExt64\libintl-8.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
373 GetTempFileName $3 $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
|
374 File /oname=$3 ${GETTEXT}\gettext64\libiconv-2.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
375 Rename /REBOOTOK $3 $0\GvimExt64\libiconv-2.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
376 !endif |
2217
120502692d82
Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
377 ${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
|
378 |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
379 GvimExt64Done: |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
380 |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
381 # 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
|
382 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
|
383 ClearErrors |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
384 |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
385 File /oname=gvimext.dll ${VIMSRC}\GvimExt\gvimext.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
386 !ifdef HAVE_NLS |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
387 File ${GETTEXT}\gettext32\libintl-8.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
388 File ${GETTEXT}\gettext32\libiconv-2.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
389 File ${GETTEXT}\gettext32\libgcc_s_sjlj-1.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
390 !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
|
391 |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
392 IfErrors 0 GvimExt32Done |
7 | 393 |
394 # Can't copy gvimext.dll, create it under another name and rename it on | |
395 # next reboot. | |
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
|
396 GetTempFileName $3 $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
|
397 File /oname=$3 ${VIMSRC}\GvimExt\gvimext.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
398 Rename /REBOOTOK $3 $0\GvimExt32\gvimext.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
399 !ifdef HAVE_NLS |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
400 GetTempFileName $3 $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
|
401 File /oname=$3 ${GETTEXT}\gettext32\libintl-8.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
402 Rename /REBOOTOK $3 $0\GvimExt32\libintl-8.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
403 GetTempFileName $3 $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
|
404 File /oname=$3 ${GETTEXT}\gettext32\libiconv-2.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
405 Rename /REBOOTOK $3 $0\GvimExt32\libiconv-2.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
406 GetTempFileName $3 $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
|
407 File /oname=$3 ${GETTEXT}\gettext32\libgcc_s_sjlj-1.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
408 Rename /REBOOTOK $3 $0\GvimExt32\libgcc_s_sjlj-1.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
409 !endif |
7 | 410 |
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
|
411 GvimExt32Done: |
7 | 412 SetOverwrite lastused |
413 | |
414 # We don't have a separate entry for the "Open With..." menu, assume | |
415 # the user wants either both or none. | |
416 StrCpy $1 "$1 -install-popup -install-openwith" | |
417 SectionEnd | |
418 | |
419 ########################################################## | |
12708
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
420 Section "Create a _vimrc if it doesn't exist" sec_vimrc_id |
7 | 421 SectionIn 1 3 |
422 | |
423 StrCpy $1 "$1 -create-vimrc" | |
424 SectionEnd | |
425 | |
426 ########################################################## | |
427 Section "Create plugin directories in HOME or VIM" | |
428 SectionIn 1 3 | |
429 | |
430 StrCpy $1 "$1 -create-directories home" | |
431 SectionEnd | |
432 | |
433 ########################################################## | |
434 Section "Create plugin directories in VIM" | |
435 SectionIn 3 | |
436 | |
437 StrCpy $1 "$1 -create-directories vim" | |
438 SectionEnd | |
439 | |
440 ########################################################## | |
441 Section "VisVim Extension for MS Visual Studio" | |
442 SectionIn 3 | |
443 | |
444 SetOutPath $0 | |
445 !insertmacro UpgradeDLL "${VIMSRC}\VisVim\VisVim.dll" "$0\VisVim.dll" "$0" | |
446 File ${VIMSRC}\VisVim\README_VisVim.txt | |
447 SectionEnd | |
448 | |
449 ########################################################## | |
450 !ifdef HAVE_NLS | |
451 Section "Native Language Support" | |
452 SectionIn 1 3 | |
453 | |
454 SetOutPath $0\lang | |
455 File /r ${VIMRT}\lang\*.* | |
456 SetOutPath $0\keymap | |
457 File ${VIMRT}\keymap\README.txt | |
458 File ${VIMRT}\keymap\*.vim | |
459 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
|
460 File ${GETTEXT}\gettext32\libintl-8.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
461 File ${GETTEXT}\gettext32\libiconv-2.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
462 #File /nonfatal ${VIMRT}\libwinpthread-1.dll |
aca41efd888c
patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents:
12483
diff
changeset
|
463 File /nonfatal ${GETTEXT}\gettext32\libgcc_s_sjlj-1.dll |
7 | 464 SectionEnd |
465 !endif | |
466 | |
467 ########################################################## | |
468 Section -call_install_exe | |
469 SetOutPath $0 | |
470 ExecWait "$0\install.exe $1" | |
471 SectionEnd | |
472 | |
473 ########################################################## | |
474 Section -post | |
475 BringToFront | |
476 SectionEnd | |
477 | |
478 ########################################################## | |
12708
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
479 Function SetCustom |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
480 # Display the InstallOptions dialog |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
481 |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
482 # Check if a _vimrc should be created |
13196
fbc58aa4ea1e
patch 8.0.1472: MS-Windows: nsis installer is a bit slow
Christian Brabandt <cb@256bit.org>
parents:
12816
diff
changeset
|
483 SectionGetFlags ${sec_vimrc_id} $3 |
fbc58aa4ea1e
patch 8.0.1472: MS-Windows: nsis installer is a bit slow
Christian Brabandt <cb@256bit.org>
parents:
12816
diff
changeset
|
484 IntOp $3 $3 & 1 |
fbc58aa4ea1e
patch 8.0.1472: MS-Windows: nsis installer is a bit slow
Christian Brabandt <cb@256bit.org>
parents:
12816
diff
changeset
|
485 StrCmp $3 "1" +2 0 |
12708
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
486 Abort |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
487 |
13196
fbc58aa4ea1e
patch 8.0.1472: MS-Windows: nsis installer is a bit slow
Christian Brabandt <cb@256bit.org>
parents:
12816
diff
changeset
|
488 InstallOptions::dialog "$PLUGINSDIR\vimrc.ini" |
12708
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
489 Pop $3 |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
490 FunctionEnd |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
491 |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
492 Function ValidateCustom |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
493 ReadINIStr $3 "$PLUGINSDIR\vimrc.ini" "Field 2" "State" |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
494 StrCmp $3 "1" 0 +3 |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
495 StrCpy $1 "$1 -vimrc-remap no" |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
496 Goto behave |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
497 |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
498 StrCpy $1 "$1 -vimrc-remap win" |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
499 |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
500 behave: |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
501 ReadINIStr $3 "$PLUGINSDIR\vimrc.ini" "Field 5" "State" |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
502 StrCmp $3 "1" 0 +3 |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
503 StrCpy $1 "$1 -vimrc-behave unix" |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
504 Goto done |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
505 |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
506 ReadINIStr $3 "$PLUGINSDIR\vimrc.ini" "Field 6" "State" |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
507 StrCmp $3 "1" 0 +3 |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
508 StrCpy $1 "$1 -vimrc-behave mswin" |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
509 Goto done |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
510 |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
511 StrCpy $1 "$1 -vimrc-behave default" |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
512 done: |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
513 FunctionEnd |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
514 |
77960063e2e7
patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents:
12638
diff
changeset
|
515 ########################################################## |
7 | 516 Section Uninstall |
517 # Apparently $INSTDIR is set to the directory where the uninstaller is | |
518 # created. Thus the "vim61" directory is included in it. | |
519 StrCpy $0 "$INSTDIR" | |
520 | |
521 # If VisVim was installed, unregister the DLL. | |
522 IfFileExists "$0\VisVim.dll" Has_VisVim No_VisVim | |
523 Has_VisVim: | |
524 ExecWait "regsvr32.exe /u /s $0\VisVim.dll" | |
525 | |
526 No_VisVim: | |
527 | |
528 # delete the context menu entry and batch files | |
529 ExecWait "$0\uninstal.exe -nsis" | |
530 | |
531 # We may have been put to the background when uninstall did something. | |
532 BringToFront | |
533 | |
534 # ask the user if the Vim version dir must be removed | |
535 MessageBox MB_YESNO|MB_ICONQUESTION \ | |
536 "Would you like to delete $0?$\n \ | |
537 $\nIt contains the Vim executables and runtime files." IDNO NoRemoveExes | |
538 | |
539 Delete /REBOOTOK $0\*.dll | |
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 Delete /REBOOTOK $0\GvimExt32\*.dll |
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 ${If} ${RunningX64} |
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 Delete /REBOOTOK $0\GvimExt64\*.dll |
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 ${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
|
544 |
7 | 545 ClearErrors |
546 # Remove everything but *.dll files. Avoids that | |
547 # a lot remains when gvimext.dll cannot be deleted. | |
879 | 548 RMDir /r $0\autoload |
7 | 549 RMDir /r $0\colors |
550 RMDir /r $0\compiler | |
551 RMDir /r $0\doc | |
552 RMDir /r $0\ftplugin | |
553 RMDir /r $0\indent | |
554 RMDir /r $0\macros | |
555 RMDir /r $0\plugin | |
879 | 556 RMDir /r $0\spell |
7 | 557 RMDir /r $0\syntax |
558 RMDir /r $0\tools | |
559 RMDir /r $0\tutor | |
560 RMDir /r $0\VisVim | |
561 RMDir /r $0\lang | |
562 RMDir /r $0\keymap | |
563 Delete $0\*.exe | |
564 Delete $0\*.bat | |
565 Delete $0\*.vim | |
566 Delete $0\*.txt | |
567 | |
568 IfErrors ErrorMess NoErrorMess | |
569 ErrorMess: | |
570 MessageBox MB_OK|MB_ICONEXCLAMATION \ | |
571 "Some files in $0 have not been deleted!$\nYou must do it manually." | |
572 NoErrorMess: | |
573 | |
574 # No error message if the "vim62" directory can't be removed, the | |
575 # gvimext.dll may still be there. | |
576 RMDir $0 | |
577 | |
578 NoRemoveExes: | |
579 # get the parent dir of the installation | |
580 Push $INSTDIR | |
581 Call un.GetParent | |
582 Pop $0 | |
583 StrCpy $1 $0 | |
584 | |
585 # if a plugin dir was created at installation ask the user to remove it | |
586 # first look in the root of the installation then in HOME | |
587 IfFileExists $1\vimfiles AskRemove 0 | |
588 ReadEnvStr $1 "HOME" | |
589 StrCmp $1 "" NoRemove 0 | |
590 | |
591 IfFileExists $1\vimfiles 0 NoRemove | |
592 | |
593 AskRemove: | |
594 MessageBox MB_YESNO|MB_ICONQUESTION \ | |
2468
7f578da7edb2
Update version.h for 7.3c -> 7.3d.
Bram Moolenaar <bram@vim.org>
parents:
2465
diff
changeset
|
595 "Remove all files in your $1\vimfiles directory?$\n \ |
2449
943280505f72
Fix that uninstaller isn't found on 64-bit Windows.
Bram Moolenaar <bram@vim.org>
parents:
2439
diff
changeset
|
596 $\nCAREFUL: If you have created something there that you want to keep, click No" IDNO Fin |
7 | 597 RMDir /r $1\vimfiles |
598 NoRemove: | |
599 | |
600 # ask the user if the Vim root dir must be removed | |
601 MessageBox MB_YESNO|MB_ICONQUESTION \ | |
602 "Would you like to remove $0?$\n \ | |
603 $\nIt contains your Vim configuration files!" IDNO NoDelete | |
604 RMDir /r $0 ; skipped if no | |
605 NoDelete: | |
606 | |
607 Fin: | |
608 Call un.onUnInstSuccess | |
609 | |
610 SectionEnd |