fix Windows installer detection of running Jamulus instance, based on code from doloopuntil
This commit is contained in:
parent
bde6e0b296
commit
4b4170e085
3 changed files with 6 additions and 5 deletions
Binary file not shown.
|
@ -31,11 +31,12 @@ Section
|
||||||
|
|
||||||
; check if software is currently running
|
; check if software is currently running
|
||||||
!addplugindir ..\windows
|
!addplugindir ..\windows
|
||||||
FindProcDLL::FindProc "${APP_EXE}"
|
nsProcess::_FindProcess "${APP_EXE}"
|
||||||
IntCmp $R0 1 0 notRunning
|
Pop $R0
|
||||||
MessageBox MB_OK|MB_ICONEXCLAMATION "${APP_NAME} is running. Please close it and run the setup again." /SD IDOK
|
${If} $R0 = 0
|
||||||
Abort
|
MessageBox MB_OK|MB_ICONEXCLAMATION "${APP_NAME} is running. Please close it and run the setup again." /sd IDOK
|
||||||
notRunning:
|
Quit
|
||||||
|
${EndIf}
|
||||||
|
|
||||||
; add reg keys so that software appears in Windows "Add/Remove Software"
|
; add reg keys so that software appears in Windows "Add/Remove Software"
|
||||||
WriteRegStr HKLM "${UNINST_KEY}" "DisplayName" "${APP_NAME} (remove only)"
|
WriteRegStr HKLM "${UNINST_KEY}" "DisplayName" "${APP_NAME} (remove only)"
|
||||||
|
|
BIN
windows/nsProcess.dll
Normal file
BIN
windows/nsProcess.dll
Normal file
Binary file not shown.
Loading…
Reference in a new issue