From 36b75d38b890fce1e71c0513cb32af9761c2bc38 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 17 Feb 2007 15:40:49 +0000 Subject: [PATCH] fail CopyFile of uninstaller in case it already exists this prevents a race condition where Au_.exe is deleted by the current uninstaller and created by another uninstaller before CopyFile is called git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4940 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/Main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/exehead/Main.c b/Source/exehead/Main.c index d677419c..094e9595 100644 --- a/Source/exehead/Main.c +++ b/Source/exehead/Main.c @@ -221,7 +221,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst,LPSTR lpszCmdParam, if (!lstrcmpi(ibuf+l-(sizeof(s)-2),s+1)) break; // copy file - if (CopyFile(ibuf,buf2+1,FALSE)) + if (CopyFile(ibuf,buf2+1,TRUE)) { HANDLE hProc; #ifdef NSIS_SUPPORT_MOVEONREBOOT