![wmic uninstall program wmic uninstall program](https://b2c-contenthub.com/wp-content/uploads/2021/12/product-get-name-command.png)
Unfortunately, there doesn’t seem to be a way to get WMI to list all programs from the add/remove programs list (aka Programs and Features in Windows 7, not sure about Vista). See my comment that describes 32-bit vs 64-bit behavior in that same post here: If I figure it out, I’ll try to remember to report back here.Įntries for 32-bit programs installed on a 64-bit machine go in that registry location.
#Wmic uninstall program how to#
I haven’t yet figured out how to get this list to be reported by WMI (although the program is listed as installed in Programs and Features). HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall I’m finding that registry entries are being written to I have been using Inno Setup for an installer. In future, if you decided to bring that item back to the list, you would simply run the registry file you stored. Since, by using this method you would lose the chance of using the Remove button from the add/remove list to cleanly remove the software from your system it’s recommended to export registry keys to a file before you delete them.
![wmic uninstall program wmic uninstall program](https://www.howtogeek.com/wp-content/uploads/2020/11/product-get-name-command.png)
This is not a method to uninstall programs, it will just remove the entry from what’s known to windows as installed software. Removing the registry key for a certain product from both of the above locations will keep it from showing in the add/remove programs list. Software name shown in the list is read from the Value of a Data entry within this key called: ProductName
![wmic uninstall program wmic uninstall program](https://wpdig.com/wp-content/uploads/2021/09/How-to-uninstall-programs-from-the-command-line-in-Windows.png)
Wmic command and the add/remove programs also query another registry key: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall Besides the most commonly known registry key for installed programs: