Returns a list of features for all the software installed on a computer using Windows Installer.

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_SoftwareFeature")
for objItem in colItems:
    print "Accesses: ", objItem.Accesses
    print "Attributes: ", objItem.Attributes
    print "Caption: ", objItem.Caption
    print "Description: ", objItem.Description
    print "Identifying Number: ", objItem.IdentifyingNumber
    print "Install Date: ", objItem.InstallDate
    print "Install State: ", objItem.InstallState
    print "Last Use: ", objItem.LastUse
    print "Name: ", objItem.Name
    print "Product Name: ", objItem.ProductName
    print "Status: ", objItem.Status
    print "Vendor: ", objItem.Vendor
    print "Version: ", objItem.Version