Uninstall by product name
Peter G
Hi,
Is there any way for a command to query the uninstall string of a particular product name? For example, I need to uninstall a program from 100 machines called "My Software" which over the years the developer has created the application with different MSI guids.
I'd like to tell Deploy/Inventory to:
- Query uninstall string for "My Software"
- Run Uninstall based on retrieved string on each machine
Is this possible?
1
Comments
As long as the application you're trying to uninstall is an MSI (which it sounds like it is), you can use my PowerShell script: https://github.com/Colby-PDQ/Uninstall-Packages/blob/master/Scripts/Uninstall-MSI-By-Name.ps1
Here's a package that uses this script: https://github.com/Colby-PDQ/Uninstall-Packages/blob/master/Packages/Uninstall%20Adobe%20Flash%20Player%20ActiveX.xml