To obtain the productcode of an MSI installed application, you can search the Windows registry at the following locations:
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall
However, there is an easier way obtaining the productcodes of all installed applications through powershell by executing the following command:
get-wmiobject Win32_Product | sort name | Format-Table IdentifyingNumber, Name, Vendor, Version, LocalPackage -AutoSize