Skip to content
⌘ NSIS Forum Archive

How to check whether a executable file is running or not

5 posts

gugaliashashank#

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
Red Wine#


gugaliashashank#
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
kichik#
Better yet, use the LogicLib.
!include LogicLib.nsh
#...
${If} $RO == "something"
# do something
${Else}
# do something else
${EndIf}