This is how I created an unattended install when the NSIS failed to silent install.(It throws up the prompt if I want to install?yes|no)
I downloaded vim63rt.zip and gvim63.zip(or you can get vim63ole.zip if you prefer to) from Vim downloads.
then I extracted them to my testgrounds(G:, The drive I use 4 experimenting).
Now download and place the attached uninstaller and place it in (testgrounds)\vim\vim63 folder. this created a folder structure like follows
CODE
(testgrounds)
|
-Vim
|
-vim63
|
-install.exe
-uninstall-gui.exe
-(Other files)
|
-Vim
|
-vim63
|
-install.exe
-uninstall-gui.exe
-(Other files)
Then I created a file [vinst.cmd] in 'Vim' directory
CODE
@echo off
cd vim63
echo. | install.exe -create-batfiles gvim evim gview gvimdiff -create-vimrc -install-popup -install-openwith -add-start-menu -create-directories vim -register-OLE
cd ..
echo colorscheme evening>>_vimrc
del vinst.cmd
cd vim63
echo. | install.exe -create-batfiles gvim evim gview gvimdiff -create-vimrc -install-popup -install-openwith -add-start-menu -create-directories vim -register-OLE
cd ..
echo colorscheme evening>>_vimrc
del vinst.cmd
notice the echo colorscheme evening>>_vimrc line, this is to customise the vim. To add more settings, add more lines similar to it. see the vim manual on _vimrc file and replace the colorscheme evening part with anything you want.
now select the contents of the vim directory, i.e, vim63 folder and vinst.cmd file (not the vim directory) and rar them(get winrar from www.rarlab.com).
now click on the sfx button and then 'Advanced SFX options'.
Enter "Vim" as path to extract and select "create in program files" radio button.
enter vinst.cmd in "Run after extraction" text box.
Then go to Modes (third) tab nad select Hide all for silent mode and overwrite all files for overwrite mode.
click ok and again ok.
you will get an exe file in the same directory as your rar file. Double click it to silent install or copy it to
CODE
$OEM$\$1\Install\VIM
and add the following to your RunOnceEx.cmdCODE
REG ADD %KEY%\020 /VE /D "gVIM 6.3" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\VIM\vim.exe" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\VIM\vim.exe" /f
see aarons Unattended guide for more details on later method.