Getting the ProductID of an Installed Program
Posted
Thursday, February 14, 2013 10:17 AM
by
Nathan Zaugg
It’s sometimes nice to be able to uninstall a previous version of your product before installing a completely different new replacement app. You can do this by using the msiexec /u {product id} command but who the heck knows the Product ID? I do if I wrote the installer but that’s not always the case. Luckily there is a neat powershell command to find the product ID’s of everything installed:
Get-WmiObject -Class Win32_Product
You can even add | Out-File myfile.txt to pipe the output to a file.