blob: b61580c9b04af9c57eb22ad89f0da88a8c866394 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001This builds a one-click install for Vim for Win32 using the Nullsoft
Bram Moolenaar6199d432017-10-14 19:05:44 +02002Installation System (NSIS), available at http://nsis.sourceforge.net/
Bram Moolenaar071d4272004-06-13 20:20:40 +00003
4To build the installable .exe:
5
61. Unpack three archives:
7 PC sources
8 PC runtime
9 PC language files
10 You can generate these from the Unix sources and runtime plus the extra
11 archive (see the Makefile in the top directory).
12
132. Go to the src directory and build:
14 gvim.exe (the OLE version),
15 vimrun.exe,
16 install.exe,
17 uninstal.exe,
18 xxd/xxd.exe,
19
Bram Moolenaar6199d432017-10-14 19:05:44 +020020 Then execute tools/rename.bat to rename the executables. (mv command is
21 required.)
22
Bram Moolenaar071d4272004-06-13 20:20:40 +0000233. Go to the GvimExt directory and build gvimext.dll (or get it from a binary
Bram Moolenaar6199d432017-10-14 19:05:44 +020024 archive). Both 64- and 32-bit versions are needed and should be placed
25 as follows:
26 64-bit: src/GvimExt/gvimext64.dll
27 32-bit: src/GvimExt/gvimext.dll
Bram Moolenaar071d4272004-06-13 20:20:40 +000028
294. Go to the VisVim directory and build VisVim.dll (or get it from a binary
30 archive).
31
325. Go to the OleVim directory and build OpenWithVim.exe and SendToVim.exe (or
33 get them from a binary archive).
34
356. Get a "diff.exe" program and put it in the "../.." directory (above the
Bram Moolenaar6199d432017-10-14 19:05:44 +020036 "vim80" directory, it's the same for all Vim versions).
Bram Moolenaar071d4272004-06-13 20:20:40 +000037 You can find one in previous Vim versions or in this archive:
38 http://www.mossbayeng.com/~ron/vim/diffutils.tar.gz
Bram Moolenaar6199d432017-10-14 19:05:44 +020039 Also put winpty32.dll and winpty-agent.exe there.
Bram Moolenaar071d4272004-06-13 20:20:40 +000040
417. Do "make uganda.nsis.txt" in runtime/doc. This requires sed, you may have
42 to do this on Unix. Make sure the file is in DOS file format!
43
Bram Moolenaar6199d432017-10-14 19:05:44 +0200448. Get gettext and iconv DLLs from the following site:
45 https://github.com/mlocati/gettext-iconv-windows/releases
46 Both 64- and 32-bit versions are needed.
47 Download the files gettextX.X.X.X-iconvX.XX-shared-{32,64}.zip, extract
48 DLLs and place them as follows:
49
50 <GETTEXT directory>
51 |
52 + gettext32/
53 | libintl-8.dll
54 | libiconv-2.dll
55 | libgcc_s_sjlj-1.dll
56 |
57 ` gettext64/
58 libintl-8.dll
59 libiconv-2.dll
60
61 The default <GETTEXT directory> is "..", however, you can change it by
62 passing /DGETTEXT=... option to the makensis command.
63
64
Bram Moolenaar071d4272004-06-13 20:20:40 +000065Install NSIS if you didn't do that already.
66Also install UPX, if you want a compressed file.
67
68To build then, enter:
69
70 makensis gvim.nsi