gte806e
3rd August 2004 15:01 UTC
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
Anders
3rd August 2004 16:11 UTC
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
Joost Verburg
4th August 2004 16:50 UTC
Creating a mutex is the best solution, window detection is not always reliable.