# I have long since given up in frustration trying to make an MSI file. I # ended up using NSIS(?) installer instead. In trying to reconstruct the # problem I now remember why I gave up hope. # # The link mentioned in the original report is broken. Maybe it will stay # here for a bit: http://msdn.microsoft.com/en-us/library/aa367864(VS.85).aspx from msilib import * # Black magic to me now (a year after I gave up). db = OpenDatabase( "python-2.5.4.msi", # Python's own MSI fresh from python.org MSIDBOPEN_READONLY) # I no longer have *any* clue what "count" is. 20 seems to work. su = db.GetSummaryInformation(20) try: print su.GetProperty(PID_SUBJECT) # Works (for me). except NotImplementedError: print "PID_SUBJECT borked!" try: print su.GetProperty(PID_CODEPAGE) # Doesn't (for me). except NotImplementedError: print "PID_CODEPAGE borked!"