I would like to identify whether my application is currently running while i am uninstalling it. I don't want to kill/close the application, but rather notify the user to close it.
I found that FCT plugin suits my needs. However, I have a problem. Eventhough I am using /MSGONLY parameter (Not attempts to terminate the process), it is still terminating the application. what is wrong with my code?
How can I know that FCT identified a running instance of my application? Return value should be >0?
Thanks in advancefct::fct /WC "SunAwtFrame" /WTP "partial application name" /MSGONLY
Pop $0
StrCmp $0 1 0 OK1
MessageBox MB_OK "The application you are trying to uninstall is running. Close it and try again."
Abort ok1: