Detect if linphone-qt is already running when launching the installer.

This commit is contained in:
Ghislain MARY 2017-05-18 13:59:39 +02:00
parent 1e9431bfeb
commit 1f1651d49e

View file

@ -904,7 +904,8 @@ SectionEnd
Function .onInit
FindWindow $0 "gdkWindowToplevel" "Linphone"
StrCmp $0 0 notRunning
FindWindow $1 "Qt5QWindowOwnDCIcon" "Linphone"
StrCmp "$0$1" "00" notRunning
MessageBox MB_OK|MB_ICONEXCLAMATION "Linphone is running. Please close it first and restart the installation." /SD IDOK
Abort