We have an app that we're attempting to convert to install, but one of my challenges is uninstalling the old method that installed into everyone's Appdata folder. It's one of the larger communication chat apps at the moment.
I know the command to uninstall it manually from the computer by using PDQ Inventory for an individual:
"C:\Users\%USERNAME%\AppData\Local\USERAPP\Update.exe" --uninstall -s
But I'm trying to figure out how to loop this and have never been much good on coding.
Get a list of all user profiles on the computer
Run the command through all user profiles - but don't fail if the command was unsuccessful.
I'm sure that this has been done with other software prior to me - any ideas?
Please sign in to leave a comment.