comparison nsis/gvim.nsi @ 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 218102da5226
children 0ddb61a7404f
comparison
equal deleted inserted replaced
13195:65d3eb05ad74 13196:fbc58aa4ea1e
86 Page custom SetCustom ValidateCustom ": _vimrc setting" 86 Page custom SetCustom ValidateCustom ": _vimrc setting"
87 Page directory "" "" CheckInstallDir 87 Page directory "" "" CheckInstallDir
88 Page instfiles 88 Page instfiles
89 UninstPage uninstConfirm 89 UninstPage uninstConfirm
90 UninstPage instfiles 90 UninstPage instfiles
91
92 # Reserve files
93 # Needed for showing the _vimrc setting page faster.
94 ReserveFile /plugin InstallOptions.dll
95 ReserveFile vimrc.ini
91 96
92 ########################################################## 97 ##########################################################
93 # Functions 98 # Functions
94 99
95 Function .onInit 100 Function .onInit
473 ########################################################## 478 ##########################################################
474 Function SetCustom 479 Function SetCustom
475 # Display the InstallOptions dialog 480 # Display the InstallOptions dialog
476 481
477 # Check if a _vimrc should be created 482 # Check if a _vimrc should be created
478 SectionGetFlags ${sec_vimrc_id} $0 483 SectionGetFlags ${sec_vimrc_id} $3
479 IntOp $0 $0 & 1 484 IntOp $3 $3 & 1
480 StrCmp $0 "1" +2 0 485 StrCmp $3 "1" +2 0
481 Abort 486 Abort
482 487
483 Push $3 488 InstallOptions::dialog "$PLUGINSDIR\vimrc.ini"
484 InstallOptions::dialog "$PLUGINSDIR\vimrc.ini"
485 Pop $3
486 Pop $3 489 Pop $3
487 FunctionEnd 490 FunctionEnd
488 491
489 Function ValidateCustom 492 Function ValidateCustom
490 ReadINIStr $3 "$PLUGINSDIR\vimrc.ini" "Field 2" "State" 493 ReadINIStr $3 "$PLUGINSDIR\vimrc.ini" "Field 2" "State"