Install only if application isn't currently running
Just wondering if anyone knows how to write a test such that an installer will only run if a particular executable isn't currently running?
Have an application that has regular updates released. Unfortunately I can't just kill any currently running instances as it could be in the middle of a multi-day modelling job and the users will get a little upset if I interrupt their work like that.
Luckily they're not running the app 24x7 so I just need to be able to test for those times when the app isn't running and then run the updater.
Comments
Hi Joel,
You can run tasklist.exe from a Command Step. Have the Command Step run before your install step. You can see an example on this post.
http://support.adminarsenal.com/entries/21272566-Check-to-see-if-program-open-before-deploying-application
It's from an older version of PDQ Deploy but it would still work.