PDA

View Full Version : Uninstall: How to make sure the app isn't running?


gte806e
3rd August 2004, 14:01
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

Anders
3rd August 2004, 15:11
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/viewpage.php?pageid=271
http://nsis.sourceforge.net/archive/viewpage.php?pageid=483

Joost Verburg
4th August 2004, 15:50
Creating a mutex is the best solution, window detection is not always reliable.