Upgrading an Application in Use
Jason Coccia
How does one monitor for specified running processes so that PDQ Deploy knows when it can successfully install the new version of an application?
Another option might be to use Powershell App Deployment Toolkit where it prompts the user to close the application before installing. This works well with SCCM, but I can't find a way for PDQ Deploy to present the GUI to the logged on user.
Thanks.
0
Comments
I have this very simple powershell script that will fail the deployment if the specified process is running. Just put it in a powershell step at the beginning of your deployment:
If you use the Powershell App Deployment Toolkit or anything else that needs to be interactive to the user, make sure that step runs as logged on user. (Options tab -> Run As)
Running as a logged on user would be helpful, but it requires the user to have admin rights. With SCCM, the user can be a standard user.
Ah, right. Try running as Deploy user (interactive). That won't require your users to have admin rights, and will still run in an interactive shell and show messages to the logged on user.
Oh thank you, I missed that detail.
The Powershell example above is definitely cleaner but here's a command prompt step that I use, just change the .exe both times. This example is what I would use for checking if Internet Explorer is running.
It could probably be simplified and cleaner but it works. A pro tip would be to put these "condition checker" steps into their own packages, and then in the future you can just put them in any package you want with a Nested Package step.