Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | This builds a one-click install for Vim for Win32 using the Nullsoft |
Bram Moolenaar | 6199d43 | 2017-10-14 19:05:44 +0200 | [diff] [blame^] | 2 | Installation System (NSIS), available at http://nsis.sourceforge.net/ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3 | |
| 4 | To build the installable .exe: |
| 5 | |
| 6 | 1. 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 | |
| 13 | 2. 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 Moolenaar | 6199d43 | 2017-10-14 19:05:44 +0200 | [diff] [blame^] | 20 | Then execute tools/rename.bat to rename the executables. (mv command is |
| 21 | required.) |
| 22 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 23 | 3. Go to the GvimExt directory and build gvimext.dll (or get it from a binary |
Bram Moolenaar | 6199d43 | 2017-10-14 19:05:44 +0200 | [diff] [blame^] | 24 | 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 Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 28 | |
| 29 | 4. Go to the VisVim directory and build VisVim.dll (or get it from a binary |
| 30 | archive). |
| 31 | |
| 32 | 5. Go to the OleVim directory and build OpenWithVim.exe and SendToVim.exe (or |
| 33 | get them from a binary archive). |
| 34 | |
| 35 | 6. Get a "diff.exe" program and put it in the "../.." directory (above the |
Bram Moolenaar | 6199d43 | 2017-10-14 19:05:44 +0200 | [diff] [blame^] | 36 | "vim80" directory, it's the same for all Vim versions). |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 37 | You can find one in previous Vim versions or in this archive: |
| 38 | http://www.mossbayeng.com/~ron/vim/diffutils.tar.gz |
Bram Moolenaar | 6199d43 | 2017-10-14 19:05:44 +0200 | [diff] [blame^] | 39 | Also put winpty32.dll and winpty-agent.exe there. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 40 | |
| 41 | 7. 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 Moolenaar | 6199d43 | 2017-10-14 19:05:44 +0200 | [diff] [blame^] | 44 | 8. 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 Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 65 | Install NSIS if you didn't do that already. |
| 66 | Also install UPX, if you want a compressed file. |
| 67 | |
| 68 | To build then, enter: |
| 69 | |
| 70 | makensis gvim.nsi |