From a7d42ace7e2b085db2b985c087f7121910dac52b Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 19 May 2006 07:49:16 +0000 Subject: [PATCH] fixed bug #1481664 - RMDir can't delete read-only folders git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4667 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/exehead/util.c b/Source/exehead/util.c index 01a34b13..548c6f01 100644 --- a/Source/exehead/util.c +++ b/Source/exehead/util.c @@ -192,6 +192,7 @@ void NSISCALL myDelete(char *buf, int flags) { addtrailingslash(buf); log_printf2("RMDir: RemoveDirectory(\"%s\")",buf); + SetFileAttributes(buf,FILE_ATTRIBUTE_NORMAL); if (!RemoveDirectory(buf)) { #ifdef NSIS_SUPPORT_MOVEONREBOOT