Archive: How to check whether a executable file is running or not


How to check whether a executable file is running or not
Hi all

i want to uninstall my application only if my executable which starts running after installation is stopped(i.e. it should not be in running state while uninstallation). And if application is running i dont want to uninstall the application

I want to know how i will come to now during uninstalltion whether the executable is running or not


http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.14.5

http://nsis.sourceforge.net/FindProcDLL_plug-in


thanks Red Wine

this link was really informative

still one doubt

the return value of FindProcDLL::FindProc will be captured in $R0 but how to test this value

i mean how to put condition on $RO


How about StrCmp,

http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.4.19


Better yet, use the LogicLib.

!include LogicLib.nsh
#...
${If} $RO == "something"
# do something
${Else}
# do something else
${EndIf}