[issue12239] msilib VT_EMPTY SummaryInformation properties raise an error (suggest returning None)

Mark Mc Mahon report at bugs.python.org
Thu Jun 2 16:13:44 CEST 2011


New submission from Mark Mc Mahon <mtnbikingmark at gmail.com>:

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.

----------
components: Windows
messages: 137478
nosy: markm
priority: normal
severity: normal
status: open
title: msilib VT_EMPTY SummaryInformation properties raise an error (suggest returning None)
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12239>
_______________________________________


More information about the Python-bugs-list mailing list