The installer now checks if qbt is running before proceeding.

This commit is contained in:
sledgehammer999
2013-01-28 00:44:51 +02:00
parent 653d49ab3c
commit 78ee01b03c
4 changed files with 35 additions and 1 deletions

View File

@@ -90,3 +90,17 @@ Function un.onInit
!insertmacro MUI_UNGETLANGUAGE
FunctionEnd
Function un.check_instance
check:
FindProcDLL::FindProc "qbittorrent.exe"
StrCmp $R0 "1" 0 notfound
MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(uninst_warning) IDRETRY check IDCANCEL done
done:
Abort
notfound:
FunctionEnd