summaryrefslogtreecommitdiff
path: root/nsis
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-04-12 21:29:33 +0200
committerBram Moolenaar <Bram@vim.org>2019-04-12 21:29:33 +0200
commita8d22e3a40483cd1fa9c6e45dcf383f49f16833a (patch)
treea6e0e4b651c891f9dc37f1f29962fe13a3f1fae6 /nsis
parent04af19637c14045fa33b99576de4eea1e3524edb (diff)
downloadvim-git-a8d22e3a40483cd1fa9c6e45dcf383f49f16833a.tar.gz
patch 8.1.1159: MS-Windows: with a silent (un)install $VIM/_vimrc is removedv8.1.1159
Problem: MS-Windows: with a silent (un)install $VIM/_vimrc is removed. Solution: Don't delete _vimrc in silent mode. (Ken Takata, closes #4242)
Diffstat (limited to 'nsis')
-rw-r--r--nsis/gvim.nsi4
1 files changed, 3 insertions, 1 deletions
diff --git a/nsis/gvim.nsi b/nsis/gvim.nsi
index 8336093be..2e990b8a0 100644
--- a/nsis/gvim.nsi
+++ b/nsis/gvim.nsi
@@ -1096,7 +1096,9 @@ Section "un.$(str_unsection_rootdir)" id_unsection_rootdir
Call un.GetParent
Pop $0
- Delete $0\_vimrc
+ ${IfNot} ${Silent}
+ Delete $0\_vimrc
+ ${Endif}
RMDir $0
SectionEnd