the following command does not work as expected and installs Vim in C:\Program Files (x86)\vim\vim74:
"%setup%" /S /D=%CD%
--
/D= sets $InstDir before .onInit script code is called, so it doesn't work because script code overrides the $InstDir on line 108 in gvim.nsis.
Line 103, but the point is still the same.
Isn't it a high time to revisit the old thread of NSIS installer using MUI2?
https://groups.google.com/forum/#!searchin/vim_dev/nsis$20mui2/vim_dev/8PektlxWJvQ/68k4_pWT5QMJ
I have been using it for quite a while (with minor updates for Vim 7.4++) and it works quite nice.
KF
I have an installer utilizing the MUI2 script in the thread that people can try out. (I am not familiar with NSIS, but able to "hack" together to make it work...)
https://dl.dropboxusercontent.com/u/21119576/%5B_Utils_%5D/gvim74-442.exe
I have tested it on few PCs with Windows 7 x86/x64 and Windows 8.1u1 x86/x64.
KF
Not sure how to go about it!
KF
Shouldn't it be /D= and not /D:?
Yes, it should be /D= ...
Anyway further testing shows that the silent installation works. From non admin command line, it will prompt to elevate privilege before installation starts. While with admin command line, it will directly install without prompt.
This was tested on Windows 8.1u1 x64 system. (original install of Vim was un-install before test)
KF
You could perhaps try this with the original NSIS file: Replace "Function .onInit" line with the following and use /INSTDIR= instead of /D.
!include FileFunc.nsh
!insertmacro GetParameters
!insertmacro GetOptions
Function .onInit
${GetParameters} $R0
ClearErrors
${GetOptions} $R0 "/INSTDIR=" $INSTDIR
IfErrors 0 IniOK
*Do not top-post! Type your reply below the text you are replying to.*
Can you try option /S with /DD? i.e. "/S /DD" will install to default path.
Second, please locate the vim-install.log file and post the contents? It should be in the temp folder...
For more info on the options:
https://raw.githubusercontent.com/gpwen/vim-installer-mui2/wiki-files/gen/vim73_install_manual.txt
KF
Hmm... path handling issue with the install script. I am not good with NSIS scripts, maybe others can chime in?
KF
Test with "/S /D=C:\vim" or "/S /D=D:\vim" works...
The script expects the final path should be \vim !!! ;D
KF
I had a brief at the script just now. Looks like it checks for "vim" at line 710.
I am not the original developer of the MUI2 installer. I modified the original source to compile for Vim 7.4, as the original source was for Vim 7.3. The changes are to the version numbers.
Please refer below for the discussion:
https://groups.google.com/forum/#!searchin/vim_dev/nsis$20mui2/vim_dev/8PektlxWJvQ/68k4_pWT5QMJ
As I am not familiar with NSIS scripts (still learning...), maybe other more capable person can chime in and correct the /S /D behaviour?
KF
As a temporary solution, you can use the following to install:
/S /D=C:\test5vim
/S /D=C:\vim
/S /D=C:\vimvim
And it will install Vim in the specified folder (end with vim!)...
KF
As your changes to the NSIS script is in main line, I have updated my installer with the changes (MUI2 interface, silent install, etc...) Please test.
Here's the link -- 7.4.506:
https://dl.dropboxusercontent.com/u/21119576/%5B_Utils_%5D/gvim74-506.exe
Cheers,
KF
the repository at https://github.com/gpwen/vim-installer-mui2/wiki is interesting, but the changes there do not help as they will probably never be merged.
My next patch will introduce MUI2.
What is your opinion about the script from gpwen? Why do you think it will never be merged into mainline?
It would also be nice to have pure 64-bit binaries support on 64-bit OS, in addition to the current 32-bit binaries with 64-bit GVimExt DLL on 64-bit OS.
Regards,
KF
I think the code there is good, but it wasn't merged in the last 4 years. Why would it ever be merged? Nobody works on the code.
> It would also be nice to have pure 64-bit binaries support on 64-bit OS, in addition to the current 32-bit binaries with 64-bit GVimExt DLL on 64-bit OS.
>
agree
BTW, my MUI2-patch is almost done.
> Regards,
> KF