mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
Change running application from FindWindow to script detection (tasklist/find).
This commit is contained in:
parent
43493de2fd
commit
79f83982bb
1 changed files with 8 additions and 3 deletions
|
|
@ -905,10 +905,15 @@ SectionEnd
|
|||
; Choose different default installation folder based on SV_ALLUSERS...
|
||||
; "Program Files" for AllUsers, "My Documents" for JustMe...
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Function .onInit
|
||||
FindWindow $0 "" "@CPACK_PACKAGE_NAME@"
|
||||
StrCmp "$0" "0" notRunning
|
||||
MessageBox MB_OK|MB_ICONEXCLAMATION "@CPACK_PACKAGE_NAME@ is running. Please close it first from the application menu and restart the installation." /SD IDOK
|
||||
ClearErrors
|
||||
ExecWait '"cmd" /C ""%SystemRoot%\System32\tasklist" /NH /FI "IMAGENAME eq @CPACK_NSIS_MUI_FINISHPAGE_RUN@" | "%SystemRoot%\System32\find" /I /C "@CPACK_NSIS_MUI_FINISHPAGE_RUN@""' $0
|
||||
IntCmp $0 1 notRunning
|
||||
MessageBox MB_OK|MB_ICONEXCLAMATION "@CPACK_NSIS_MUI_FINISHPAGE_RUN@ is running. Please close it first from the application menu and restart the installation." /SD IDOK
|
||||
Abort
|
||||
|
||||
notRunning:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue