Returns the name and product code of binary information (such as bitmaps, icons, executable files, and so on) used by a Windows Installer application.

This script was tested using Python 2.2.2-224 for Microsoft Windows, available from ActiveState.

Python
Edit|Remove
import win32com.client
strComputer = "."
objWMIService = win32com.client.Dispatch("WbemScripting.SWbemLocator")
objSWbemServices = objWMIService.ConnectServer(strComputer,"root\cimv2")
colItems = objSWbemServices.ExecQuery("Select * from Win32_Binary")
for objItem in colItems:
    print "Caption: ", objItem.Caption
    print "Data: ", objItem.Data
    print "Description: ", objItem.Description
    print "Name: ", objItem.Name
    print "Product Code: ", objItem.ProductCode
    print "Setting ID: ", objItem.SettingID