]>
Commit | Line | Data |
---|---|---|
fe53742a AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.2.520 (extra) | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 6.2.520 (extra) | |
11 | Problem: The NSIS installer is outdated. | |
12 | Solution: Make it work with NSIS 2.0. Also include console executables for | |
13 | Win 95/98/ME and Win NT/2000/XP. Use LZWA compression. Use | |
14 | "/oname" to avoid having to rename files before running NSIS. | |
15 | Files: Makefile, nsis/gvim.nsi | |
16 | ||
17 | ||
18 | *** ../vim-6.2.519/Makefile Fri Mar 12 15:26:18 2004 | |
19 | --- Makefile Sun May 2 15:06:28 2004 | |
20 | *************** | |
21 | *** 118,124 **** | |
22 | # - Rename the executables to "vimd16.exe", "xxdd16.exe", "installd16.exe" and | |
23 | # "uninstald16.exe". | |
24 | # 32 bit DOS version: | |
25 | ! # - Set environment for compiling with DJGPP; "make -f Make_djg.mak". | |
26 | # - "rm testdir/*.out", "make -f Make_djg.mak test" and check the output. | |
27 | # - Rename the executables to "vimd32.exe", "xxdd32.exe", "installd32.exe" and | |
28 | # "uninstald32.exe". | |
29 | --- 120,126 ---- | |
30 | # - Rename the executables to "vimd16.exe", "xxdd16.exe", "installd16.exe" and | |
31 | # "uninstald16.exe". | |
32 | # 32 bit DOS version: | |
33 | ! # - Set environment for compiling with DJGPP; "gmake -f Make_djg.mak". | |
34 | # - "rm testdir/*.out", "make -f Make_djg.mak test" and check the output. | |
35 | # - Rename the executables to "vimd32.exe", "xxdd32.exe", "installd32.exe" and | |
36 | # "uninstald32.exe". | |
37 | *************** | |
38 | *** 156,165 **** | |
39 | # - "make doslang". | |
40 | # NSIS self installing exe: | |
41 | # - Unpack the doslang archive on the PC. | |
42 | ! # - rename gvim_ole.exe to gvim.exe | |
43 | ! # - rename installw32.exe to install.exe | |
44 | ! # - rename uninstalw32.exe to uninstal.exe | |
45 | ! # - rename xxdw32.exe to xxd/xxd.exe | |
46 | # - put gvimext.dll in src/GvimExt and VisVim.dll in src/VisVim (get them | |
47 | # from a binary archive or build them) | |
48 | # - make sure there is a diff.exe two levels up | |
49 | --- 158,166 ---- | |
50 | # - "make doslang". | |
51 | # NSIS self installing exe: | |
52 | # - Unpack the doslang archive on the PC. | |
53 | ! # - Make sure gvim_ole.exe, vimd32.exe, vimw32.exe, installw32.exe, | |
54 | ! # uninstalw32.exe and xxdw32.exe have been build as mentioned above. | |
55 | ! # - Move the files from the "runtime" directory one level up. | |
56 | # - put gvimext.dll in src/GvimExt and VisVim.dll in src/VisVim (get them | |
57 | # from a binary archive or build them) | |
58 | # - make sure there is a diff.exe two levels up | |
59 | *** ../vim-6.2.519/nsis/gvim.nsi Tue Jun 3 21:43:31 2003 | |
60 | --- nsis/gvim.nsi Sun May 2 16:55:20 2004 | |
61 | *************** | |
62 | *** 1,6 **** | |
63 | # NSIS file to create a self-installing exe for Vim. | |
64 | ! # It needs NSIS version 1.80 or later. | |
65 | ! # Last modification: 2001 Oct 31 | |
66 | ||
67 | # WARNING: if you make changes to this script, look out for $0 to be valid, | |
68 | # because this line is very dangerous: RMDir /r $0 | |
69 | --- 1,6 ---- | |
70 | # NSIS file to create a self-installing exe for Vim. | |
71 | ! # It requires NSIS version 2.0 or later. | |
72 | ! # Last change: 2004 May 02 | |
73 | ||
74 | # WARNING: if you make changes to this script, look out for $0 to be valid, | |
75 | # because this line is very dangerous: RMDir /r $0 | |
76 | *************** | |
77 | *** 17,40 **** | |
78 | ||
79 | Name "Vim ${VER_MAJOR}.${VER_MINOR}" | |
80 | OutFile gvim${VER_MAJOR}${VER_MINOR}.exe | |
81 | ! CRCCheck on | |
82 | ComponentText "This will install Vim ${VER_MAJOR}.${VER_MINOR} on your computer." | |
83 | DirText "Choose a directory to install Vim (must end in 'vim')" | |
84 | - SetDatablockOptimize on | |
85 | Icon icons\vim_16c.ico | |
86 | ! EnabledBitmap icons\enabled.bmp | |
87 | ! DisabledBitmap icons\disabled.bmp | |
88 | UninstallText "This will uninstall Vim ${VER_MAJOR}.${VER_MINOR} from your system." | |
89 | UninstallIcon icons\vim_uninst_16c.ico | |
90 | ! BGGradient 004000 008200 ffffff | |
91 | LicenseText "You should read the following before installing:" | |
92 | LicenseData ..\doc\uganda.nsis.txt | |
93 | ||
94 | !ifdef HAVE_UPX | |
95 | !packhdr temp.dat "upx --best --compress-icons=1 temp.dat" | |
96 | !endif | |
97 | ! # This add '\vim' to the user choice automagically. | |
98 | ! InstallDir "C:\vim" | |
99 | ||
100 | # Types of installs we can perform: | |
101 | InstType Typical | |
102 | --- 17,44 ---- | |
103 | ||
104 | Name "Vim ${VER_MAJOR}.${VER_MINOR}" | |
105 | OutFile gvim${VER_MAJOR}${VER_MINOR}.exe | |
106 | ! CRCCheck force | |
107 | ! SetCompressor lzma | |
108 | ! SetDatablockOptimize on | |
109 | ! | |
110 | ComponentText "This will install Vim ${VER_MAJOR}.${VER_MINOR} on your computer." | |
111 | DirText "Choose a directory to install Vim (must end in 'vim')" | |
112 | Icon icons\vim_16c.ico | |
113 | ! # NSIS2 uses a different strategy with six diferent images in a strip... | |
114 | ! #EnabledBitmap icons\enabled.bmp | |
115 | ! #DisabledBitmap icons\disabled.bmp | |
116 | UninstallText "This will uninstall Vim ${VER_MAJOR}.${VER_MINOR} from your system." | |
117 | UninstallIcon icons\vim_uninst_16c.ico | |
118 | ! BGGradient 004000 008200 FFFFFF | |
119 | LicenseText "You should read the following before installing:" | |
120 | LicenseData ..\doc\uganda.nsis.txt | |
121 | ||
122 | !ifdef HAVE_UPX | |
123 | !packhdr temp.dat "upx --best --compress-icons=1 temp.dat" | |
124 | !endif | |
125 | ! | |
126 | ! # This adds '\vim' to the user choice automagically. | |
127 | ! InstallDir $PROGRAMFILES\Vim | |
128 | ||
129 | # Types of installs we can perform: | |
130 | InstType Typical | |
131 | *************** | |
132 | *** 50,62 **** | |
133 | MessageBox MB_YESNO|MB_ICONQUESTION \ | |
134 | "This will install Vim ${VER_MAJOR}.${VER_MINOR} on your computer.$\n Continue?" \ | |
135 | IDYES NoAbort | |
136 | ! | |
137 | ! Abort ; causes installer to quit. | |
138 | ! NoAbort: | |
139 | ||
140 | # run the install program to check for already installed versions | |
141 | SetOutPath $TEMP | |
142 | ! File ..\src\install.exe | |
143 | ExecWait "$TEMP\install.exe -uninstall-check" | |
144 | Delete $TEMP\install.exe | |
145 | ||
146 | --- 54,65 ---- | |
147 | MessageBox MB_YESNO|MB_ICONQUESTION \ | |
148 | "This will install Vim ${VER_MAJOR}.${VER_MINOR} on your computer.$\n Continue?" \ | |
149 | IDYES NoAbort | |
150 | ! Abort ; causes installer to quit. | |
151 | ! NoAbort: | |
152 | ||
153 | # run the install program to check for already installed versions | |
154 | SetOutPath $TEMP | |
155 | ! File /oname=install.exe ..\src\installw32.exe | |
156 | ExecWait "$TEMP\install.exe -uninstall-check" | |
157 | Delete $TEMP\install.exe | |
158 | ||
159 | *************** | |
160 | *** 71,77 **** | |
161 | ||
162 | # If ReadINIStr failed for some reason, use default dir. | |
163 | StrCmp $INSTDIR "" 0 IniOK | |
164 | ! StrCpy $INSTDIR "C:\vim" | |
165 | IniOK: | |
166 | ||
167 | # Should check for the value of $VIM and use it. Unfortunately I don't know | |
168 | --- 74,80 ---- | |
169 | ||
170 | # If ReadINIStr failed for some reason, use default dir. | |
171 | StrCmp $INSTDIR "" 0 IniOK | |
172 | ! StrCpy $INSTDIR "$PROGRAMFILES\Vim" | |
173 | IniOK: | |
174 | ||
175 | # Should check for the value of $VIM and use it. Unfortunately I don't know | |
176 | *************** | |
177 | *** 80,92 **** | |
178 | # StrCpy $INSTDIR "$VIM" | |
179 | # No_Vim: | |
180 | ||
181 | ! # User variables: | |
182 | ! # $0 - holds the directory the executables are installed to | |
183 | ! # $1 - holds the parameters to be passed to install.exe. Starts with OLE | |
184 | ! # registration (since a non-OLE gvim will not complain, and we want to | |
185 | ! # always register an OLE gvim). | |
186 | StrCpy $0 "$INSTDIR\vim${VER_MAJOR}${VER_MINOR}" | |
187 | StrCpy $1 "-register-OLE" | |
188 | ||
189 | FunctionEnd | |
190 | ||
191 | --- 83,97 ---- | |
192 | # StrCpy $INSTDIR "$VIM" | |
193 | # No_Vim: | |
194 | ||
195 | ! # User variables: | |
196 | ! # $0 - holds the directory the executables are installed to | |
197 | ! # $1 - holds the parameters to be passed to install.exe. Starts with OLE | |
198 | ! # registration (since a non-OLE gvim will not complain, and we want to | |
199 | ! # always register an OLE gvim). | |
200 | ! # $2 - holds the names to create batch files for | |
201 | StrCpy $0 "$INSTDIR\vim${VER_MAJOR}${VER_MINOR}" | |
202 | StrCpy $1 "-register-OLE" | |
203 | + StrCpy $2 "gvim evim gview gvimdiff" | |
204 | ||
205 | FunctionEnd | |
206 | ||
207 | *************** | |
208 | *** 100,107 **** | |
209 | Function .onVerifyInstDir | |
210 | StrCpy $0 $INSTDIR 3 -3 | |
211 | StrCmp $0 "vim" PathGood | |
212 | ! Abort | |
213 | ! | |
214 | PathGood: | |
215 | FunctionEnd | |
216 | ||
217 | --- 105,111 ---- | |
218 | Function .onVerifyInstDir | |
219 | StrCpy $0 $INSTDIR 3 -3 | |
220 | StrCmp $0 "vim" PathGood | |
221 | ! Abort | |
222 | PathGood: | |
223 | FunctionEnd | |
224 | ||
225 | *************** | |
226 | *** 110,116 **** | |
227 | MessageBox MB_YESNO|MB_ICONQUESTION \ | |
228 | "The installation process has been successfull. Happy Vimming! \ | |
229 | $\n$\n Do you want to see the README file now?" IDNO NoReadme | |
230 | ! Exec '$0\gvim.exe -R "$0\README.txt"' | |
231 | NoReadme: | |
232 | FunctionEnd | |
233 | ||
234 | --- 114,120 ---- | |
235 | MessageBox MB_YESNO|MB_ICONQUESTION \ | |
236 | "The installation process has been successfull. Happy Vimming! \ | |
237 | $\n$\n Do you want to see the README file now?" IDNO NoReadme | |
238 | ! Exec '$0\gvim.exe -R "$0\README.txt"' | |
239 | NoReadme: | |
240 | FunctionEnd | |
241 | ||
242 | *************** | |
243 | *** 143,364 **** | |
244 | ||
245 | ########################################################## | |
246 | Section "Vim executables and runtime files" | |
247 | ! SectionIn 1 2 3 | |
248 | ! | |
249 | ! # we need also this here if the user changes the instdir | |
250 | ! StrCpy $0 "$INSTDIR\vim${VER_MAJOR}${VER_MINOR}" | |
251 | ! | |
252 | ! SetOutPath $0 | |
253 | ! File ..\src\gvim.exe | |
254 | ! File ..\src\install.exe | |
255 | ! File ..\src\uninstal.exe | |
256 | ! File ..\src\vimrun.exe | |
257 | ! File ..\src\xxd\xxd.exe | |
258 | ! File ..\..\diff.exe | |
259 | ! File ..\vimtutor.bat | |
260 | ! File ..\README.txt | |
261 | ! File ..\uninstal.txt | |
262 | ! File ..\*.vim | |
263 | ! File ..\rgb.txt | |
264 | ! | |
265 | ! SetOutPath $0\colors | |
266 | ! File ..\colors\*.* | |
267 | ! | |
268 | ! SetOutPath $0\compiler | |
269 | ! File ..\compiler\*.* | |
270 | ! | |
271 | ! SetOutPath $0\doc | |
272 | ! File ..\doc\*.txt | |
273 | ! File ..\doc\tags | |
274 | ! | |
275 | ! SetOutPath $0\ftplugin | |
276 | ! File ..\ftplugin\*.* | |
277 | ||
278 | ! SetOutPath $0\indent | |
279 | ! File ..\indent\*.* | |
280 | ! | |
281 | ! SetOutPath $0\macros | |
282 | ! File ..\macros\*.* | |
283 | ! | |
284 | ! SetOutPath $0\plugin | |
285 | ! File ..\plugin\*.* | |
286 | ! | |
287 | ! SetOutPath $0\syntax | |
288 | ! File ..\syntax\*.* | |
289 | ! | |
290 | ! SetOutPath $0\tools | |
291 | ! File ..\tools\*.* | |
292 | ! | |
293 | ! SetOutPath $0\tutor | |
294 | ! File ..\tutor\*.* | |
295 | ||
296 | SectionEnd | |
297 | ! ########################################################## | |
298 | ! SectionDivider | |
299 | ########################################################## | |
300 | Section "Create icons on the Desktop" | |
301 | ! SectionIn 1 3 | |
302 | ! | |
303 | ! StrCpy $1 "$1 -install-icons" | |
304 | ||
305 | SectionEnd | |
306 | ########################################################## | |
307 | Section "Add Vim to the Start Menu" | |
308 | ! SectionIn 1 3 | |
309 | ! | |
310 | ! StrCpy $1 "$1 -add-start-menu" | |
311 | ||
312 | SectionEnd | |
313 | ########################################################## | |
314 | Section "Add an Edit-with-Vim context menu entry" | |
315 | ! SectionIn 1 3 | |
316 | ! | |
317 | ! SetOutPath $0 | |
318 | ! File ..\src\GvimExt\gvimext.dll | |
319 | ! | |
320 | ! StrCpy $1 "$1 -install-popup" | |
321 | ||
322 | SectionEnd | |
323 | ! ########################################################## | |
324 | ! SectionDivider | |
325 | ########################################################## | |
326 | Section "Create a _vimrc if it doesn't exist" | |
327 | ! SectionIn 1 3 | |
328 | ! | |
329 | ! StrCpy $1 "$1 -create-vimrc" | |
330 | ||
331 | SectionEnd | |
332 | ########################################################## | |
333 | Section "Create .bat files for command line use" | |
334 | ! SectionIn 3 | |
335 | ! | |
336 | ! StrCpy $1 "$1 -create-batfiles gvim evim gview gvimdiff" | |
337 | ||
338 | SectionEnd | |
339 | ########################################################## | |
340 | Section "Create plugin directories in HOME or VIM" | |
341 | ! SectionIn 1 3 | |
342 | ! | |
343 | ! StrCpy $1 "$1 -create-directories home" | |
344 | ||
345 | SectionEnd | |
346 | ########################################################## | |
347 | Section "Create plugin directories in VIM" | |
348 | ! SectionIn 3 | |
349 | ! | |
350 | ! StrCpy $1 "$1 -create-directories vim" | |
351 | ||
352 | SectionEnd | |
353 | ||
354 | ########################################################## | |
355 | - SectionDivider | |
356 | - ########################################################## | |
357 | Section "VisVim Extension for MS Visual Studio" | |
358 | ! SectionIn 3 | |
359 | ! | |
360 | ! SetOutPath $0 | |
361 | ! File ..\src\VisVim\VisVim.dll | |
362 | ! File ..\src\VisVim\README_VisVim.txt | |
363 | ! ExecWait "regsvr32.exe /s $0\VisVim.dll" | |
364 | ||
365 | SectionEnd | |
366 | ########################################################## | |
367 | !ifdef HAVE_NLS | |
368 | ! Section "Native Language Support" | |
369 | ! SectionIn 1 3 | |
370 | ! | |
371 | ! SetOutPath $0\lang | |
372 | ! File /r ..\lang\*.* | |
373 | ! SetOutPath $0\keymap | |
374 | ! File ..\keymap\README.txt | |
375 | ! File ..\keymap\*.vim | |
376 | ! SetOutPath $0 | |
377 | ! File ..\libintl.dll | |
378 | ||
379 | ! SectionEnd | |
380 | !endif | |
381 | ########################################################## | |
382 | Section -call_install_exe | |
383 | ! | |
384 | ! SetOutPath $0 | |
385 | ! ExecWait "$0\install.exe $1" | |
386 | ! | |
387 | SectionEnd | |
388 | ########################################################## | |
389 | Section -post | |
390 | ! | |
391 | ! BringToFront | |
392 | ! | |
393 | SectionEnd | |
394 | ||
395 | ########################################################## | |
396 | Section Uninstall | |
397 | ||
398 | ! # Apparently $INSTDIR is set to the directory where the uninstaller is created. | |
399 | ! # Thus the "vim61" directory is included in it. | |
400 | ! StrCpy $0 "$INSTDIR" | |
401 | ! | |
402 | ! ; If VisVim was installed, unregister the DLL | |
403 | ! IfFileExists "$0\VisVim.dll" Has_VisVim No_VisVim | |
404 | ! Has_VisVim: | |
405 | ! ExecWait "regsvr32.exe /u /s $0\VisVim.dll" | |
406 | ! | |
407 | ! No_VisVim: | |
408 | ! | |
409 | ! ; delete the context menu entry and batch files | |
410 | ! ExecWait "$0\uninstal.exe -nsis" | |
411 | ! | |
412 | ! # We may have been put to the background when uninstall did something. | |
413 | ! BringToFront | |
414 | ! | |
415 | ! # ask the user if the Vim version dir must be removed | |
416 | ! MessageBox MB_YESNO|MB_ICONQUESTION \ | |
417 | ! "Would you like to delete $0?$\n \ | |
418 | ! $\nIt contains the Vim executables and runtime files." IDNO NoRemoveExes | |
419 | ! | |
420 | ! Delete /REBOOTOK $0\gvimext.dll | |
421 | ! ClearErrors | |
422 | ! RMDir /r $0 | |
423 | ! | |
424 | ! IfErrors ErrorMess NoErrorMess | |
425 | ! ErrorMess: | |
426 | ! MessageBox MB_OK|MB_ICONEXCLAMATION \ | |
427 | ! "Some files in $0 have not been deleted!$\nYou must do it manually." | |
428 | ! NoErrorMess: | |
429 | ! | |
430 | ! NoRemoveExes: | |
431 | ! | |
432 | ! # get the parent dir of the installation | |
433 | ! Push $INSTDIR | |
434 | ! Call un.GetParent | |
435 | ! Pop $0 | |
436 | ! | |
437 | ! StrCpy $1 $0 | |
438 | ! | |
439 | ! # if a plugin dir was created at installation ask the user to remove it | |
440 | ! # first look in the root of the installation then in HOME | |
441 | ! IfFileExists $1\vimfiles AskRemove 0 | |
442 | ! ReadEnvStr $1 "HOME" | |
443 | ! StrCmp $1 "" NoRemove 0 | |
444 | ! | |
445 | ! IfFileExists $1\vimfiles 0 NoRemove | |
446 | ! | |
447 | ! AskRemove: | |
448 | ! MessageBox MB_YESNO|MB_ICONQUESTION \ | |
449 | ! "Remove all files in your $1\vimfiles directory? \ | |
450 | ! $\nIf you have created something there that you want to keep, click No" IDNO Fin | |
451 | ! RMDir /r $1\vimfiles | |
452 | ! NoRemove: | |
453 | ! | |
454 | ! # ask the user if the Vim root dir must be removed | |
455 | ! MessageBox MB_YESNO|MB_ICONQUESTION \ | |
456 | ! "Would you like to remove $0?$\n \ | |
457 | ! $\nIt contains your Vim configuration files!" IDNO NoDelete | |
458 | ! RMDir /r $0 ; skipped if no | |
459 | ! NoDelete: | |
460 | ! | |
461 | ! Fin: | |
462 | ! | |
463 | ! Call un.onUnInstSuccess | |
464 | ||
465 | SectionEnd | |
466 | --- 147,371 ---- | |
467 | ||
468 | ########################################################## | |
469 | Section "Vim executables and runtime files" | |
470 | ! SectionIn 1 2 3 | |
471 | ||
472 | ! # we need also this here if the user changes the instdir | |
473 | ! StrCpy $0 "$INSTDIR\vim${VER_MAJOR}${VER_MINOR}" | |
474 | ||
475 | + SetOutPath $0 | |
476 | + File /oname=gvim.exe ..\src\gvim_ole.exe | |
477 | + File /oname=install.exe ..\src\installw32.exe | |
478 | + File /oname=uninstal.exe ..\src\uninstalw32.exe | |
479 | + File ..\src\vimrun.exe | |
480 | + File /oname=xxd.exe ..\src\xxdw32.exe | |
481 | + File ..\..\diff.exe | |
482 | + File ..\vimtutor.bat | |
483 | + File ..\README.txt | |
484 | + File ..\uninstal.txt | |
485 | + File ..\*.vim | |
486 | + File ..\rgb.txt | |
487 | + | |
488 | + SetOutPath $0\colors | |
489 | + File ..\colors\*.* | |
490 | + | |
491 | + SetOutPath $0\compiler | |
492 | + File ..\compiler\*.* | |
493 | + | |
494 | + SetOutPath $0\doc | |
495 | + File ..\doc\*.txt | |
496 | + File ..\doc\tags | |
497 | + | |
498 | + SetOutPath $0\ftplugin | |
499 | + File ..\ftplugin\*.* | |
500 | + | |
501 | + SetOutPath $0\indent | |
502 | + File ..\indent\*.* | |
503 | + | |
504 | + SetOutPath $0\macros | |
505 | + File ..\macros\*.* | |
506 | + | |
507 | + SetOutPath $0\plugin | |
508 | + File ..\plugin\*.* | |
509 | + | |
510 | + SetOutPath $0\syntax | |
511 | + File ..\syntax\*.* | |
512 | + | |
513 | + SetOutPath $0\tools | |
514 | + File ..\tools\*.* | |
515 | + | |
516 | + SetOutPath $0\tutor | |
517 | + File ..\tutor\*.* | |
518 | + SectionEnd | |
519 | + | |
520 | + ########################################################## | |
521 | + Section "Vim console program (vim.exe)" | |
522 | + SectionIn 1 3 | |
523 | + | |
524 | + SetOutPath $0 | |
525 | + ReadRegStr $R0 HKLM \ | |
526 | + "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion | |
527 | + IfErrors 0 lbl_winnt | |
528 | + # Windows 95/98/ME | |
529 | + File /oname=vim.exe ..\src\vimd32.exe | |
530 | + Goto lbl_done | |
531 | + lbl_winnt: | |
532 | + # Windows NT/2000/XT | |
533 | + File /oname=vim.exe ..\src\vimw32.exe | |
534 | + lbl_done: | |
535 | + StrCpy $2 "$2 vim view vimdiff" | |
536 | SectionEnd | |
537 | ! | |
538 | ########################################################## | |
539 | Section "Create icons on the Desktop" | |
540 | ! SectionIn 1 3 | |
541 | ||
542 | + StrCpy $1 "$1 -install-icons" | |
543 | SectionEnd | |
544 | + | |
545 | ########################################################## | |
546 | Section "Add Vim to the Start Menu" | |
547 | ! SectionIn 1 3 | |
548 | ||
549 | + StrCpy $1 "$1 -add-start-menu" | |
550 | SectionEnd | |
551 | + | |
552 | ########################################################## | |
553 | Section "Add an Edit-with-Vim context menu entry" | |
554 | ! SectionIn 1 3 | |
555 | ||
556 | + SetOutPath $0 | |
557 | + File ..\src\GvimExt\gvimext.dll | |
558 | + StrCpy $1 "$1 -install-popup" | |
559 | SectionEnd | |
560 | ! | |
561 | ########################################################## | |
562 | Section "Create a _vimrc if it doesn't exist" | |
563 | ! SectionIn 1 3 | |
564 | ||
565 | + StrCpy $1 "$1 -create-vimrc" | |
566 | SectionEnd | |
567 | + | |
568 | ########################################################## | |
569 | Section "Create .bat files for command line use" | |
570 | ! SectionIn 3 | |
571 | ||
572 | + StrCpy $1 "$1 -create-batfiles $2" | |
573 | SectionEnd | |
574 | + | |
575 | ########################################################## | |
576 | Section "Create plugin directories in HOME or VIM" | |
577 | ! SectionIn 1 3 | |
578 | ||
579 | + StrCpy $1 "$1 -create-directories home" | |
580 | SectionEnd | |
581 | + | |
582 | ########################################################## | |
583 | Section "Create plugin directories in VIM" | |
584 | ! SectionIn 3 | |
585 | ||
586 | + StrCpy $1 "$1 -create-directories vim" | |
587 | SectionEnd | |
588 | ||
589 | ########################################################## | |
590 | Section "VisVim Extension for MS Visual Studio" | |
591 | ! SectionIn 3 | |
592 | ||
593 | + SetOutPath $0 | |
594 | + File ..\src\VisVim\VisVim.dll | |
595 | + File ..\src\VisVim\README_VisVim.txt | |
596 | + ExecWait "regsvr32.exe /s $0\VisVim.dll" | |
597 | SectionEnd | |
598 | + | |
599 | ########################################################## | |
600 | !ifdef HAVE_NLS | |
601 | ! Section "Native Language Support" | |
602 | ! SectionIn 1 3 | |
603 | ||
604 | ! SetOutPath $0\lang | |
605 | ! File /r ..\lang\*.* | |
606 | ! SetOutPath $0\keymap | |
607 | ! File ..\keymap\README.txt | |
608 | ! File ..\keymap\*.vim | |
609 | ! SetOutPath $0 | |
610 | ! File ..\libintl.dll | |
611 | ! SectionEnd | |
612 | !endif | |
613 | + | |
614 | ########################################################## | |
615 | Section -call_install_exe | |
616 | ! SetOutPath $0 | |
617 | ! ExecWait "$0\install.exe $1" | |
618 | SectionEnd | |
619 | + | |
620 | ########################################################## | |
621 | Section -post | |
622 | ! BringToFront | |
623 | SectionEnd | |
624 | ||
625 | ########################################################## | |
626 | Section Uninstall | |
627 | + # Apparently $INSTDIR is set to the directory where the uninstaller is | |
628 | + # created. Thus the "vim61" directory is included in it. | |
629 | + StrCpy $0 "$INSTDIR" | |
630 | + | |
631 | + # If VisVim was installed, unregister the DLL | |
632 | + IfFileExists "$0\VisVim.dll" Has_VisVim No_VisVim | |
633 | + Has_VisVim: | |
634 | + ExecWait "regsvr32.exe /u /s $0\VisVim.dll" | |
635 | + | |
636 | + No_VisVim: | |
637 | + | |
638 | + # delete the context menu entry and batch files | |
639 | + ExecWait "$0\uninstal.exe -nsis" | |
640 | + | |
641 | + # We may have been put to the background when uninstall did something. | |
642 | + BringToFront | |
643 | + | |
644 | + # ask the user if the Vim version dir must be removed | |
645 | + MessageBox MB_YESNO|MB_ICONQUESTION \ | |
646 | + "Would you like to delete $0?$\n \ | |
647 | + $\nIt contains the Vim executables and runtime files." IDNO NoRemoveExes | |
648 | + | |
649 | + Delete /REBOOTOK $0\gvimext.dll | |
650 | + ClearErrors | |
651 | + RMDir /r $0 | |
652 | + | |
653 | + IfErrors ErrorMess NoErrorMess | |
654 | + ErrorMess: | |
655 | + MessageBox MB_OK|MB_ICONEXCLAMATION \ | |
656 | + "Some files in $0 have not been deleted!$\nYou must do it manually." | |
657 | + NoErrorMess: | |
658 | + | |
659 | + NoRemoveExes: | |
660 | + # get the parent dir of the installation | |
661 | + Push $INSTDIR | |
662 | + Call un.GetParent | |
663 | + Pop $0 | |
664 | + StrCpy $1 $0 | |
665 | + | |
666 | + # if a plugin dir was created at installation ask the user to remove it | |
667 | + # first look in the root of the installation then in HOME | |
668 | + IfFileExists $1\vimfiles AskRemove 0 | |
669 | + ReadEnvStr $1 "HOME" | |
670 | + StrCmp $1 "" NoRemove 0 | |
671 | + | |
672 | + IfFileExists $1\vimfiles 0 NoRemove | |
673 | + | |
674 | + AskRemove: | |
675 | + MessageBox MB_YESNO|MB_ICONQUESTION \ | |
676 | + "Remove all files in your $1\vimfiles directory? \ | |
677 | + $\nIf you have created something there that you want to keep, click No" IDNO Fin | |
678 | + RMDir /r $1\vimfiles | |
679 | + NoRemove: | |
680 | + | |
681 | + # ask the user if the Vim root dir must be removed | |
682 | + MessageBox MB_YESNO|MB_ICONQUESTION \ | |
683 | + "Would you like to remove $0?$\n \ | |
684 | + $\nIt contains your Vim configuration files!" IDNO NoDelete | |
685 | + RMDir /r $0 ; skipped if no | |
686 | + NoDelete: | |
687 | ||
688 | ! Fin: | |
689 | ! Call un.onUnInstSuccess | |
690 | ||
691 | SectionEnd | |
692 | *** ../vim-6.2.519/src/version.c Sat May 1 21:04:31 2004 | |
693 | --- src/version.c Sun May 2 16:46:38 2004 | |
694 | *************** | |
695 | *** 639,640 **** | |
696 | --- 639,642 ---- | |
697 | { /* Add new patch number below this line */ | |
698 | + /**/ | |
699 | + 520, | |
700 | /**/ | |
701 | ||
702 | -- | |
703 | From "know your smileys": | |
704 | *<|:-) Santa Claus (Ho Ho Ho) | |
705 | ||
706 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
707 | /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
708 | \\\ Project leader for A-A-P -- http://www.A-A-P.org /// | |
709 | \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html /// |