Mercurial > vim
changeset 13196:fbc58aa4ea1e v8.0.1472
patch 8.0.1472: MS-Windows: nsis installer is a bit slow
commit https://github.com/vim/vim/commit/5d4247402b7195c6872485ddf1600a1cea723027
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 4 19:11:30 2018 +0100
patch 8.0.1472: MS-Windows: nsis installer is a bit slow
Problem: MS-Windows: nsis installer is a bit slow.
Solution: Use ReserveFile for vimrc.ini. (closes https://github.com/vim/vim/issues/2522)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 04 Feb 2018 19:15:06 +0100 |
parents | 65d3eb05ad74 |
children | ffbc5e141df5 |
files | nsis/gvim.nsi src/version.c |
diffstat | 2 files changed, 11 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/nsis/gvim.nsi +++ b/nsis/gvim.nsi @@ -89,6 +89,11 @@ Page instfiles UninstPage uninstConfirm UninstPage instfiles +# Reserve files +# Needed for showing the _vimrc setting page faster. +ReserveFile /plugin InstallOptions.dll +ReserveFile vimrc.ini + ########################################################## # Functions @@ -475,14 +480,12 @@ Function SetCustom # Display the InstallOptions dialog # Check if a _vimrc should be created - SectionGetFlags ${sec_vimrc_id} $0 - IntOp $0 $0 & 1 - StrCmp $0 "1" +2 0 + SectionGetFlags ${sec_vimrc_id} $3 + IntOp $3 $3 & 1 + StrCmp $3 "1" +2 0 Abort - Push $3 - InstallOptions::dialog "$PLUGINSDIR\vimrc.ini" - Pop $3 + InstallOptions::dialog "$PLUGINSDIR\vimrc.ini" Pop $3 FunctionEnd