Sleep a bit after terminating the process when uninstalling to make sure all files in use were released.

This commit is contained in:
Konstantin Isakov 2010-12-04 19:06:13 +03:00
parent 47cdacd504
commit f71c0ac7a7
2 changed files with 4 additions and 0 deletions

View file

@ -203,6 +203,8 @@ LangString stopMsg ${LANG_ENGLISH} "Stopping ${WND_TITLE}"
System::Call 'kernel32.dll::TerminateProcess(i r2, i 0) i .r1' System::Call 'kernel32.dll::TerminateProcess(i r2, i 0) i .r1'
close: close:
System::Call 'kernel32.dll::CloseHandle(i r2) i .r1' System::Call 'kernel32.dll::CloseHandle(i r2) i .r1'
; Make sure all process files are released
Sleep 2000
done: done:
Pop $2 Pop $2
Pop $1 Pop $1

View file

@ -201,6 +201,8 @@ LangString stopMsg ${LANG_ENGLISH} "Stopping ${WND_TITLE}"
System::Call 'kernel32.dll::TerminateProcess(i r2, i 0) i .r1' System::Call 'kernel32.dll::TerminateProcess(i r2, i 0) i .r1'
close: close:
System::Call 'kernel32.dll::CloseHandle(i r2) i .r1' System::Call 'kernel32.dll::CloseHandle(i r2) i .r1'
; Make sure all process files are released
Sleep 2000
done: done:
Pop $2 Pop $2
Pop $1 Pop $1