Archive: Uninstall: How to make sure the app isn't running?


Uninstall: How to make sure the app isn't running?
During some user testing It seems that some users acutally tried to uninstall the application while it was running and they though that it had successfully done so.

How can I write a script that will first kill the application then uninstall? I know winXP has taskkill but this needs to work on 9x as well.

Thanks in advance,

Jesse


if the app's window has a unique classname and/or title u could check for that, or create a mutex.

kill /check for running exe:
http://nsis.sourceforge.net/archive/...php?pageid=271
http://nsis.sourceforge.net/archive/...php?pageid=483


Creating a mutex is the best solution, window detection is not always reliable.