From f71c0ac7a7c358ff9bbb08862435f2eec26a3b01 Mon Sep 17 00:00:00 2001 From: Konstantin Isakov Date: Sat, 4 Dec 2010 19:06:13 +0300 Subject: [PATCH] Sleep a bit after terminating the process when uninstalling to make sure all files in use were released. --- nsis/GoldenDict-EnRuEn.nsi | 2 ++ nsis/GoldenDict.nsi | 2 ++ 2 files changed, 4 insertions(+) diff --git a/nsis/GoldenDict-EnRuEn.nsi b/nsis/GoldenDict-EnRuEn.nsi index dd17cf4e..07875943 100644 --- a/nsis/GoldenDict-EnRuEn.nsi +++ b/nsis/GoldenDict-EnRuEn.nsi @@ -203,6 +203,8 @@ LangString stopMsg ${LANG_ENGLISH} "Stopping ${WND_TITLE}" System::Call 'kernel32.dll::TerminateProcess(i r2, i 0) i .r1' close: System::Call 'kernel32.dll::CloseHandle(i r2) i .r1' + ; Make sure all process files are released + Sleep 2000 done: Pop $2 Pop $1 diff --git a/nsis/GoldenDict.nsi b/nsis/GoldenDict.nsi index e5191473..6c00d41e 100644 --- a/nsis/GoldenDict.nsi +++ b/nsis/GoldenDict.nsi @@ -201,6 +201,8 @@ LangString stopMsg ${LANG_ENGLISH} "Stopping ${WND_TITLE}" System::Call 'kernel32.dll::TerminateProcess(i r2, i 0) i .r1' close: System::Call 'kernel32.dll::CloseHandle(i r2) i .r1' + ; Make sure all process files are released + Sleep 2000 done: Pop $2 Pop $1