mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
Sleep a bit after terminating the process when uninstalling to make sure all files in use were released.
This commit is contained in:
parent
47cdacd504
commit
f71c0ac7a7
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue