annotate nsis/gvim.nsi @ 14719:d5bfff0b5ebe

Added tag v8.1.0371 for changeset cf33c47d66aabb43121ea43d3c98923c651bc510
author Christian Brabandt <cb@256bit.org>
date Wed, 12 Sep 2018 20:30:06 +0200
parents 0ddb61a7404f
children c0eb9a74f73d
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.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 # It requires NSIS version 2.0 or later.
6343
edfa81ea1711 updated for version 7.4.504
Bram Moolenaar <bram@vim.org>
parents: 5294
diff changeset
3 # Last Change: 2014 Nov 5
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 # 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
6 # because uninstall deletes most files in $0.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 !define HAVE_UPX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 # comment the next line if you do not want to add Native Language Support
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 !define HAVE_NLS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 # ----------- No configurable settings below this line -----------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 Name "Vim ${VER_MAJOR}.${VER_MINOR}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 OutFile gvim${VER_MAJOR}${VER_MINOR}.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 ComponentText "This will install Vim ${VER_MAJOR}.${VER_MINOR} on your computer."
6343
edfa81ea1711 updated for version 7.4.504
Bram Moolenaar <bram@vim.org>
parents: 5294
diff changeset
54 DirText "Choose a directory to install Vim (should contain 'vim')"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 #EnabledBitmap icons\enabled.bmp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 #DisabledBitmap icons\disabled.bmp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 UninstallText "This will uninstall Vim ${VER_MAJOR}.${VER_MINOR} from your system."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 UninstallIcon icons\vim_uninst_16c.ico
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 # On NSIS 2 using the BGGradient causes trouble on Windows 98, in combination
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 # with the BringToFront.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 # BGGradient 004000 008200 FFFFFF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 LicenseText "You should read the following before installing:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 LicenseData ${VIMRT}\doc\uganda.nsis.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 !ifdef HAVE_UPX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 !packhdr temp.dat "upx --best --compress-icons=1 temp.dat"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 !endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 # This adds '\vim' to the user choice automagically. The actual value is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 # obtained below with ReadINIStr.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 InstallDir "$PROGRAMFILES\Vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 # Types of installs we can perform:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 InstType Typical
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 InstType Minimal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 InstType Full
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 SilentInstall normal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 # These are the pages we use
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 Page license
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 Page directory "" "" CheckInstallDir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 Page instfiles
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 UninstPage uninstConfirm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 UninstPage instfiles
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 ##########################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 # Functions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 Function .onInit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 MessageBox MB_YESNO|MB_ICONQUESTION \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 Abort ; causes installer to quit.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 NoAbort:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 # run the install program to check for already installed versions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 SetOutPath $TEMP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 File /oname=install.exe ${VIMSRC}\installw32.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 ExecWait "$TEMP\install.exe -uninstall-check"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 Delete $TEMP\install.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 # We may have been put to the background when uninstall did something.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 BringToFront
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 # Install will have created a file for us that contains the directory where
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 # we should install. This is $VIM if it's set. This appears to be the only
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 # way to get the value of $VIM here!?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 ReadINIStr $INSTDIR $TEMP\vimini.ini vimini dir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 Delete $TEMP\vimini.ini
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 # If ReadINIStr failed or did not find a path: use the default dir.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 StrCmp $INSTDIR "" 0 IniOK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 StrCpy $INSTDIR "$PROGRAMFILES\Vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 IniOK:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 # Should check for the value of $VIM and use it. Unfortunately I don't know
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 # how to obtain the value of $VIM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 # IfFileExists "$VIM" 0 No_Vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 # StrCpy $INSTDIR "$VIM"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 # No_Vim:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 # User variables:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 # $0 - holds the directory the executables are installed to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 # $1 - holds the parameters to be passed to install.exe. Starts with OLE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 # registration (since a non-OLE gvim will not complain, and we want to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 # always register an OLE gvim).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 # $2 - holds the names to create batch files for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 StrCpy $0 "$INSTDIR\vim${VER_MAJOR}${VER_MINOR}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 StrCpy $1 "-register-OLE"
801
67fa3b60422d updated for version 7.0b01
vimboss
parents: 799
diff changeset
142 StrCpy $2 "gvim evim gview gvimdiff vimtutor"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 FunctionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 Function .onUserAbort
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 MessageBox MB_YESNO|MB_ICONQUESTION "Abort install?" IDYES NoCancelAbort
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 Abort ; causes installer to not quit.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 NoCancelAbort:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 FunctionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 # We only accept the directory if it ends in "vim". Using .onVerifyInstDir has
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 # the disadvantage that the browse dialog is difficult to use.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 Function CheckInstallDir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 FunctionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 Function .onInstSuccess
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 WriteUninstaller vim${VER_MAJOR}${VER_MINOR}\uninstall-gui.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 MessageBox MB_YESNO|MB_ICONQUESTION \
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1231
diff changeset
164 "The installation process has been successful. Happy Vimming! \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 $\n$\n Do you want to see the README file now?" IDNO NoReadme
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 Exec '$0\gvim.exe -R "$0\README.txt"'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 NoReadme:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 FunctionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 Function .onInstFailed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 MessageBox MB_OK|MB_ICONEXCLAMATION "Installation failed. Better luck next time."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 FunctionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 Function un.onUnInstSuccess
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 MessageBox MB_OK|MB_ICONINFORMATION \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 "Vim ${VER_MAJOR}.${VER_MINOR} has been (partly) removed from your system"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 FunctionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 Function un.GetParent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 Exch $0 ; old $0 is on top of stack
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 Push $1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 Push $2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 StrCpy $1 -1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 loop:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 StrCpy $2 $0 1 $1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 StrCmp $2 "" exit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 StrCmp $2 "\" exit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 IntOp $1 $1 - 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 Goto loop
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 exit:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 StrCpy $0 $0 $1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 Pop $2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 Pop $1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 Exch $0 ; put $0 on top of stack, restore $0 to original value
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 FunctionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 ##########################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 # we need also this here if the user changes the instdir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 StrCpy $0 "$INSTDIR\vim${VER_MAJOR}${VER_MINOR}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 SetOutPath $0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 File /oname=gvim.exe ${VIMSRC}\gvim_ole.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 File /oname=install.exe ${VIMSRC}\installw32.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 File /oname=uninstal.exe ${VIMSRC}\uninstalw32.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 File /oname=xxd.exe ${VIMSRC}\xxdw32.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 File ${VIMRT}\vimtutor.bat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 File ${VIMRT}\README.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 File ..\uninstal.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 File ${VIMRT}\*.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 File ${VIMRT}\rgb.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 SetOutPath $0\colors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 File ${VIMRT}\colors\*.*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 SetOutPath $0\compiler
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 File ${VIMRT}\compiler\*.*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 SetOutPath $0\doc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 File ${VIMRT}\doc\*.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 File ${VIMRT}\doc\tags
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 SetOutPath $0\ftplugin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 File ${VIMRT}\ftplugin\*.*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 SetOutPath $0\indent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 File ${VIMRT}\indent\*.*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 SetOutPath $0\macros
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
13884
0ddb61a7404f patch 8.0.1813: Windows installer doesn't install terminal debugger
Christian Brabandt <cb@256bit.org>
parents: 13196
diff changeset
270 SetOutPath $0\pack\dist\opt\termdebug\plugin
0ddb61a7404f patch 8.0.1813: Windows installer doesn't install terminal debugger
Christian Brabandt <cb@256bit.org>
parents: 13196
diff changeset
271 File ${VIMRT}\pack\dist\opt\termdebug\plugin\*.*
0ddb61a7404f patch 8.0.1813: Windows installer doesn't install terminal debugger
Christian Brabandt <cb@256bit.org>
parents: 13196
diff changeset
272
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 SetOutPath $0\plugin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 File ${VIMRT}\plugin\*.*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275
801
67fa3b60422d updated for version 7.0b01
vimboss
parents: 799
diff changeset
276 SetOutPath $0\autoload
67fa3b60422d updated for version 7.0b01
vimboss
parents: 799
diff changeset
277 File ${VIMRT}\autoload\*.*
67fa3b60422d updated for version 7.0b01
vimboss
parents: 799
diff changeset
278
12816
218102da5226 patch 8.0.1285: occasional crash when using a channel
Christian Brabandt <cb@256bit.org>
parents: 12708
diff changeset
279 SetOutPath $0\autoload\dist
218102da5226 patch 8.0.1285: occasional crash when using a channel
Christian Brabandt <cb@256bit.org>
parents: 12708
diff changeset
280 File ${VIMRT}\autoload\dist\*.*
218102da5226 patch 8.0.1285: occasional crash when using a channel
Christian Brabandt <cb@256bit.org>
parents: 12708
diff changeset
281
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 825
diff changeset
282 SetOutPath $0\autoload\xml
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 825
diff changeset
283 File ${VIMRT}\autoload\xml\*.*
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 825
diff changeset
284
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 SetOutPath $0\syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 File ${VIMRT}\syntax\*.*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287
799
6beb2c667935 updated for version 7.0b
vimboss
parents: 7
diff changeset
288 SetOutPath $0\spell
6beb2c667935 updated for version 7.0b
vimboss
parents: 7
diff changeset
289 File ${VIMRT}\spell\*.txt
6beb2c667935 updated for version 7.0b
vimboss
parents: 7
diff changeset
290 File ${VIMRT}\spell\*.vim
6beb2c667935 updated for version 7.0b
vimboss
parents: 7
diff changeset
291 File ${VIMRT}\spell\*.spl
6beb2c667935 updated for version 7.0b
vimboss
parents: 7
diff changeset
292 File ${VIMRT}\spell\*.sug
6beb2c667935 updated for version 7.0b
vimboss
parents: 7
diff changeset
293
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294 SetOutPath $0\tools
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 File ${VIMRT}\tools\*.*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297 SetOutPath $0\tutor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298 File ${VIMRT}\tutor\*.*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 SectionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301 ##########################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302 Section "Vim console program (vim.exe)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
303 SectionIn 1 3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
304
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
305 SetOutPath $0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306 ReadRegStr $R0 HKLM \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307 "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
308 IfErrors 0 lbl_winnt
5128
3dafc80e781b updated for version 7.3.1307
Bram Moolenaar <bram@vim.org>
parents: 2577
diff changeset
309 # Windows 95/98/ME: not supported
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310 Goto lbl_done
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311 lbl_winnt:
5134
b49784c49d53 updated for version 7.3.1310
Bram Moolenaar <bram@vim.org>
parents: 5128
diff changeset
312 # Windows NT/2000/XP and later
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
313 File /oname=vim.exe ${VIMSRC}\vimw32.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314 lbl_done:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
315 StrCpy $2 "$2 vim view vimdiff"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316 SectionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318 ##########################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
319 Section "Create .bat files for command line use"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
320 SectionIn 3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
321
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
322 StrCpy $1 "$1 -create-batfiles $2"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
323 SectionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
324
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
325 ##########################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
326 Section "Create icons on the Desktop"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
327 SectionIn 1 3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
328
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
329 StrCpy $1 "$1 -install-icons"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330 SectionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
331
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
332 ##########################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
333 Section "Add Vim to the Start Menu"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
334 SectionIn 1 3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
335
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
336 StrCpy $1 "$1 -add-start-menu"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337 SectionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
338
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339 ##########################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340 Section "Add an Edit-with-Vim context menu entry"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341 SectionIn 1 3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343 # Be aware of this sequence of events:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344 # - user uninstalls Vim, gvimext.dll can't be removed (it's in use) and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345 # is scheduled to be removed at next reboot.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346 # - user installs Vim in same directory, gvimext.dll still exists.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347 # If we now skip installing gvimext.dll, it will disappear at the next
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348 # reboot. Thus when copying gvimext.dll fails always schedule it to be
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
349 # installed at the next reboot. Can't use UpgradeDLL!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
350 # We don't ask the user to reboot, the old dll will keep on working.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351 SetOutPath $0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352 ClearErrors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
353 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
354
2217
120502692d82 Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents: 2154
diff changeset
355 ${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
356 # 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
357 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
358 ClearErrors
2217
120502692d82 Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents: 2154
diff changeset
359 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
360 !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
361 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
362 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
363 !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
364
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 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
366
aca41efd888c patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents: 12483
diff changeset
367 # 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
368 # 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
369 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
370 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
371 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
372 !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
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\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
375 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
376 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
377 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
378 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
379 !endif
2217
120502692d82 Improve the MS-Windows installer.
Bram Moolenaar <bram@vim.org>
parents: 2154
diff changeset
380 ${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
381
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 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
383
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 # 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
385 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
386 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
387
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 /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
389 !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
390 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
391 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
392 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
393 !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
394
aca41efd888c patch 8.0.1191: MS-Windows: missing 32 and 64 bit files in installer
Christian Brabandt <cb@256bit.org>
parents: 12483
diff changeset
395 IfErrors 0 GvimExt32Done
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
396
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
397 # Can't copy gvimext.dll, create it under another name and rename it on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
398 # 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
399 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
400 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
401 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
402 !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
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\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
405 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
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\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
408 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
409 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
410 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
411 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
412 !endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
413
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
414 GvimExt32Done:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
415 SetOverwrite lastused
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
416
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
417 # We don't have a separate entry for the "Open With..." menu, assume
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
418 # the user wants either both or none.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
419 StrCpy $1 "$1 -install-popup -install-openwith"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
420 SectionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
421
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
422 ##########################################################
12708
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
423 Section "Create a _vimrc if it doesn't exist" sec_vimrc_id
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
424 SectionIn 1 3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
425
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
426 StrCpy $1 "$1 -create-vimrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
427 SectionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
428
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
429 ##########################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
430 Section "Create plugin directories in HOME or VIM"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
431 SectionIn 1 3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
432
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
433 StrCpy $1 "$1 -create-directories home"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
434 SectionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
435
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
436 ##########################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
437 Section "Create plugin directories in VIM"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
438 SectionIn 3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
439
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
440 StrCpy $1 "$1 -create-directories vim"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
441 SectionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
442
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
443 ##########################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
444 Section "VisVim Extension for MS Visual Studio"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
445 SectionIn 3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
446
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
447 SetOutPath $0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
448 !insertmacro UpgradeDLL "${VIMSRC}\VisVim\VisVim.dll" "$0\VisVim.dll" "$0"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
449 File ${VIMSRC}\VisVim\README_VisVim.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
450 SectionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
451
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
452 ##########################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
453 !ifdef HAVE_NLS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
454 Section "Native Language Support"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
455 SectionIn 1 3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
456
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
457 SetOutPath $0\lang
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
458 File /r ${VIMRT}\lang\*.*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
459 SetOutPath $0\keymap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
460 File ${VIMRT}\keymap\README.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
461 File ${VIMRT}\keymap\*.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
462 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
463 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
464 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
465 #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
466 File /nonfatal ${GETTEXT}\gettext32\libgcc_s_sjlj-1.dll
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
467 SectionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
468 !endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
469
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
470 ##########################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
471 Section -call_install_exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
472 SetOutPath $0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
473 ExecWait "$0\install.exe $1"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
474 SectionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
475
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
476 ##########################################################
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
477 Section -post
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
478 BringToFront
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
479 SectionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
480
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
481 ##########################################################
12708
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
482 Function SetCustom
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
483 # 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
484
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
485 # 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
486 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
487 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
488 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
489 Abort
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
490
13196
fbc58aa4ea1e patch 8.0.1472: MS-Windows: nsis installer is a bit slow
Christian Brabandt <cb@256bit.org>
parents: 12816
diff changeset
491 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
492 Pop $3
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
493 FunctionEnd
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
494
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
495 Function ValidateCustom
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
496 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
497 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
498 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
499 Goto behave
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
500
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
501 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
502
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
503 behave:
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
504 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
505 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
506 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
507 Goto done
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
508
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
509 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
510 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
511 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
512 Goto done
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
513
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
514 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
515 done:
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
516 FunctionEnd
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
517
77960063e2e7 patch 8.0.1232: MS-Windows users are confused about default mappings
Christian Brabandt <cb@256bit.org>
parents: 12638
diff changeset
518 ##########################################################
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
519 Section Uninstall
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
520 # Apparently $INSTDIR is set to the directory where the uninstaller is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
521 # created. Thus the "vim61" directory is included in it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
522 StrCpy $0 "$INSTDIR"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
523
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
524 # If VisVim was installed, unregister the DLL.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
525 IfFileExists "$0\VisVim.dll" Has_VisVim No_VisVim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
526 Has_VisVim:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
527 ExecWait "regsvr32.exe /u /s $0\VisVim.dll"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
528
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
529 No_VisVim:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
530
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
531 # delete the context menu entry and batch files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
532 ExecWait "$0\uninstal.exe -nsis"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
533
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
534 # We may have been put to the background when uninstall did something.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
535 BringToFront
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
536
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
537 # ask the user if the Vim version dir must be removed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
538 MessageBox MB_YESNO|MB_ICONQUESTION \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
539 "Would you like to delete $0?$\n \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
540 $\nIt contains the Vim executables and runtime files." IDNO NoRemoveExes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
541
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
542 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
543 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
544 ${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
545 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
546 ${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
547
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
548 ClearErrors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
549 # Remove everything but *.dll files. Avoids that
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
550 # a lot remains when gvimext.dll cannot be deleted.
879
232a4740aa0e updated for version 7.0-005
vimboss
parents: 874
diff changeset
551 RMDir /r $0\autoload
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
552 RMDir /r $0\colors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
553 RMDir /r $0\compiler
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
554 RMDir /r $0\doc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
555 RMDir /r $0\ftplugin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
556 RMDir /r $0\indent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
557 RMDir /r $0\macros
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
558 RMDir /r $0\plugin
879
232a4740aa0e updated for version 7.0-005
vimboss
parents: 874
diff changeset
559 RMDir /r $0\spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
560 RMDir /r $0\syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
561 RMDir /r $0\tools
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
562 RMDir /r $0\tutor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
563 RMDir /r $0\VisVim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
564 RMDir /r $0\lang
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
565 RMDir /r $0\keymap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
566 Delete $0\*.exe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
567 Delete $0\*.bat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
568 Delete $0\*.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
569 Delete $0\*.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
570
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
571 IfErrors ErrorMess NoErrorMess
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
572 ErrorMess:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
573 MessageBox MB_OK|MB_ICONEXCLAMATION \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
574 "Some files in $0 have not been deleted!$\nYou must do it manually."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
575 NoErrorMess:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
576
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
577 # No error message if the "vim62" directory can't be removed, the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
578 # gvimext.dll may still be there.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
579 RMDir $0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
580
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
581 NoRemoveExes:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
582 # get the parent dir of the installation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
583 Push $INSTDIR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
584 Call un.GetParent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
585 Pop $0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
586 StrCpy $1 $0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
587
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
588 # if a plugin dir was created at installation ask the user to remove it
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
589 # first look in the root of the installation then in HOME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
590 IfFileExists $1\vimfiles AskRemove 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
591 ReadEnvStr $1 "HOME"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
592 StrCmp $1 "" NoRemove 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
593
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
594 IfFileExists $1\vimfiles 0 NoRemove
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
595
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
596 AskRemove:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
597 MessageBox MB_YESNO|MB_ICONQUESTION \
2468
7f578da7edb2 Update version.h for 7.3c -> 7.3d.
Bram Moolenaar <bram@vim.org>
parents: 2465
diff changeset
598 "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
599 $\nCAREFUL: If you have created something there that you want to keep, click No" IDNO Fin
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
600 RMDir /r $1\vimfiles
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
601 NoRemove:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
602
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
603 # ask the user if the Vim root dir must be removed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
604 MessageBox MB_YESNO|MB_ICONQUESTION \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
605 "Would you like to remove $0?$\n \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
606 $\nIt contains your Vim configuration files!" IDNO NoDelete
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
607 RMDir /r $0 ; skipped if no
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
608 NoDelete:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
609
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
610 Fin:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
611 Call un.onUnInstSuccess
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
612
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
613 SectionEnd