This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author markm
Recipients markm
Date 2011-06-02.14:13:43
SpamBayes Score 1.7223795e-10
Marked as misclassified No
Message-id <1307024024.44.0.716968870376.issue12239@psf.upfronthosting.co.za>
In-reply-to
Content
Using "some.msi" where the first property is VT_EMPTY

Using COM:
>>> from win32com.client import gencache
>>> com_lib = gencache.EnsureModule('{000C1092-0000-0000-C000-000000000046}', 409, 1, 0)
>>> com_msi = com_lib.Installer()
>>> db = com_msi.OpenDatabase('some.msi', 0)
>>> si = db.GetSummaryInformation(0)
>>> repr(si.Property(0))
'None'

Using msilib:
>>> import msilib
>>> db = msilib.OpenDatabase(r'some.msi', 0)
>>> si = db.GetSummaryInformation(0)
>>> si.GetProperty(0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NotImplementedError: result of type 0

I aim to submit a patch that so that SummaryInformation.GetProperty() with a type of VT_EMPTY will return None.
History
Date User Action Args
2011-06-02 14:13:44markmsetrecipients: + markm
2011-06-02 14:13:44markmsetmessageid: <1307024024.44.0.716968870376.issue12239@psf.upfronthosting.co.za>
2011-06-02 14:13:43markmlinkissue12239 messages
2011-06-02 14:13:43markmcreate