winUninstall #434

Merged
dan merged 3 commits from winUninstall into trunk 2022-04-21 18:40:32 +00:00
1 changed files with 11 additions and 0 deletions
Showing only changes of commit a6c7682c84 - Show all commits

View File

@ -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 --------