Last modified 4 years ago Last modified on 23/06/10 16:36:54
The official gVim installer is an NSIS installer, but does not support silent installation. There are two options: automating the official installer's button clicking, and using a third-party installer.
The Cream project provides NSIS-packaged installers for both gVim (download) and their Cream (download) configurations, both of which support the standard NSIS "/S" installation switch. (It's always worth noting that "/S" must be a capital "S".)
Cream also supports an optional "/CONTEXTMENU 1" switch that installs a context menu option to edit files in Cream. This does not currently (as of v7.2.441) work with the gVim installer, though it's worth checking, as a request has been made.
Until it does, this .REG file should enable the context menus:
REGEDIT4 [HKEY_CLASSES_ROOT\CLSID\{51EEE242-AD87-11d3-9C1E-0090278BBD99}] @="Vim Shell Extension" [HKEY_CLASSES_ROOT\CLSID\{51EEE242-AD87-11d3-9C1E-0090278BBD99}\InProcServer32] @="C:\\Program Files\\vim\\vim72\\gvimext.dll" "ThreadingModel"="Apartment" [HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\gvim] @="{51EEE242-AD87-11d3-9C1E-0090278BBD99}" [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved] "{51EEE242-AD87-11d3-9C1E-0090278BBD99}"="Vim Shell Extension" [HKEY_LOCAL_MACHINE\SOFTWARE\Vim\Gvim] "path"="C:\\Program Files\\vim\\vim72\\gvim.exe"
:: OPTIONAL: Install gVim 7.2 :: HOME: http://www.vim.org/ :: URL|ALL|https://sourceforge.net/projects/cream/files/Vim/7.2.441/gvim-7-2-441.exe/download|packages/gvim/gvim-7-2-441.exe :: Cream's installer is at least silent, but it doesn't install the :: context menu items. This registry file will enable them. todo.pl "regedit /s %Z%\scripts\gvim.reg" :: Silent install of gVim from Cream todo.pl "%Z%\packages\gvim\gvim-7-2-441.exe /S"
:: OPTIONAL: Install gvim 6.3 :: URL|ALL|ftp://ftp.vim.org/pub/vim/pc/gvim63.exe|packages/gvim/gvim63.exe todo.pl "start /wait autoit3 %Z%\packages\gvim\gvim.au3"
Since the stupid vim installer is not done properly, this AutoIt? script is needed...
Run("Z:\packages\gvim\gvim63.exe /S /D%SYSTEMDRIVE%\Program/ Files\gvim") WinWaitActive("Vim 6.3 Setup") Send("y") WinWaitActive("C:\Program Files\Vim\vim63\install.exe") Send("{ENTER}") WinWaitActive("Vim 6.3 Setup") Send("n")