diff --git a/windows/FindProcDLL.dll b/windows/FindProcDLL.dll deleted file mode 100644 index 790c2279..00000000 Binary files a/windows/FindProcDLL.dll and /dev/null differ diff --git a/windows/installer.nsi b/windows/installer.nsi index 8f04714e..53b19fb3 100755 --- a/windows/installer.nsi +++ b/windows/installer.nsi @@ -31,11 +31,12 @@ Section ; check if software is currently running !addplugindir ..\windows - FindProcDLL::FindProc "${APP_EXE}" - IntCmp $R0 1 0 notRunning - MessageBox MB_OK|MB_ICONEXCLAMATION "${APP_NAME} is running. Please close it and run the setup again." /SD IDOK - Abort - notRunning: + nsProcess::_FindProcess "${APP_EXE}" + Pop $R0 + ${If} $R0 = 0 + MessageBox MB_OK|MB_ICONEXCLAMATION "${APP_NAME} is running. Please close it and run the setup again." /sd IDOK + Quit + ${EndIf} ; add reg keys so that software appears in Windows "Add/Remove Software" WriteRegStr HKLM "${UNINST_KEY}" "DisplayName" "${APP_NAME} (remove only)" diff --git a/windows/nsProcess.dll b/windows/nsProcess.dll new file mode 100644 index 00000000..4ce01210 Binary files /dev/null and b/windows/nsProcess.dll differ