diff nsis/gvim.nsi @ 16308:6400235ca4ad v8.1.1159

patch 8.1.1159: MS-Windows: with a silent (un)install $VIM/_vimrc is removed commit https://github.com/vim/vim/commit/a8d22e3a40483cd1fa9c6e45dcf383f49f16833a Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 12 21:29:33 2019 +0200 patch 8.1.1159: MS-Windows: with a silent (un)install $VIM/_vimrc is removed Problem: MS-Windows: with a silent (un)install $VIM/_vimrc is removed. Solution: Don't delete _vimrc in silent mode. (Ken Takata, closes https://github.com/vim/vim/issues/4242)
author Bram Moolenaar <Bram@vim.org>
date Fri, 12 Apr 2019 21:30:05 +0200
parents 9eb8c0d5c13e
children 7ae2396cef62
line wrap: on
line diff
--- a/nsis/gvim.nsi
+++ b/nsis/gvim.nsi
@@ -1096,7 +1096,9 @@ Section "un.$(str_unsection_rootdir)" id
 	Call un.GetParent
 	Pop $0
 
-	Delete $0\_vimrc
+	${IfNot} ${Silent}
+	  Delete $0\_vimrc
+	${Endif}
 	RMDir $0
 SectionEnd