[Patches] [ python-Patches-871896 ] msilib.py EnsureModule does not
work
SourceForge.net
noreply at sourceforge.net
Wed Jan 7 03:52:50 EST 2004
Patches item #871896, was opened at 2004-01-06 21:04
Message generated for change (Comment added) made by theller
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=871896&group_id=5470
Category: None
Group: Python 2.4
Status: Closed
Resolution: Accepted
Priority: 5
Submitted By: Thomas Heller (theller)
Assigned to: Martin v. Löwis (loewis)
Summary: msilib.py EnsureModule does not work
Initial Comment:
See the patch.
----------------------------------------------------------------------
>Comment By: Thomas Heller (theller)
Date: 2004-01-07 09:52
Message:
Logged In: YES
user_id=11105
It seems I guessed wrong about the EnsureMSM function.
Here's the output of 'makepy -i' on my system:
c:\sf\python\nondist\sandbox\msi>py24
\python24\lib\site-packages\win32com\client\makepy.py -i
"Microsoft MSM Merge Type
Library"
Microsoft MSM Merge Type Library
{0ADDA82F-2C26-11D2-AD65-00A0C9AF11A6}, lcid=0, major=2,
minor=0
>>> # Use these commands in Python code to auto generate
.py support
>>> from win32com.client import gencache
>>>
gencache.EnsureModule('{0ADDA82F-2C26-11D2-AD65-00A0C9AF11A6}',
0, 2, 0)
c:\sf\python\nondist\sandbox\msi>py24
\python24\lib\site-packages\win32com\client\makepy.py -i
"Microsoft Windows Instal
ler Object Library"
Microsoft Windows Installer Object Library
{000C1092-0000-0000-C000-000000000046}, lcid=1033, major=1,
minor=0
>>> # Use these commands in Python code to auto generate
.py support
>>> from win32com.client import gencache
>>>
gencache.EnsureModule('{000C1092-0000-0000-C000-000000000046}',
1033, 1, 0)
c:\sf\python\nondist\sandbox\msi>
OTOH, it seems that EnsureMSM is not required to work while
EnsureMSI is, because win32com.client.constants does not
contain the msi* values.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2004-01-07 06:18
Message:
Logged In: YES
user_id=21627
I believe you are right. Fixed in 1.4.
----------------------------------------------------------------------
Comment By: Thomas Heller (theller)
Date: 2004-01-06 21:05
Message:
Logged In: YES
user_id=11105
I assume the EnsureMSM function needs the same fix.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=871896&group_id=5470
More information about the Patches
mailing list