forked from cwtch.im/cwtch-ui
nsis windows installer detect running, ask to not, abort
This commit is contained in:
parent
b29836ed3b
commit
a6c7682c84
|
@ -45,6 +45,17 @@ InstallDirRegKey HKCU "Software\Cwtch" "installLocation"
|
|||
|
||||
ShowInstDetails show
|
||||
|
||||
; Init / make sure isn't running
|
||||
; https://nsis.sourceforge.io/Check_whether_your_application_is_running
|
||||
|
||||
Function .onInit
|
||||
FindProcDLL::FindProc "Cwtch.exe"
|
||||
StrCmp $R0 "1" found not_found
|
||||
found:
|
||||
MessageBox MB_ICONEXCLAMATION|MB_OK "Cwtch is still running, please exit it before running installer" /SD IDOK
|
||||
Abort
|
||||
not_found:
|
||||
|
||||
; Pages --------
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue