[python-win32] FW: Problem with winxpgui
cso at giritech.com
Tue Jun 23 11:54:58 CEST 2009
From: Mark Hammond [mailto:mhammond at skippinet.com.au]
Sent: 23. juni 2009 11:53
To: Christian Sørensen
Subject: Re: [python-win32] Problem with winxpgui
On 23/06/2009 5:31 PM, Christian Sørensen wrote:
> However. Does this mean we will have to do that every time there is an update to the python.exe? Do you know if there are any plans of making this change to the python executable for the official release?
> Should we post this discussion to the mailing list in case someone else has the same problem?
You should :)
> Greetings and thanks again
> -----Original Message-----
> From: Mark Hammond [mailto:mhammond at skippinet.com.au]
> Sent: 20. juni 2009 00:50
> To: Christian Sørensen
> Subject: RE: [python-win32] Problem with winxpgui
> The simplest solution is probably to simply use something like the MS
> "manifest tool" (mt.exe) to hack the manifest in your copy of python.exe (or
> whatever exe it is you intend using - eg, a py2exe based one...)
>> -----Original Message-----
>> From: Christian Sørensen [mailto:cso at giritech.com]
>> Sent: Friday, 19 June 2009 6:05 PM
>> To: mhammond at skippinet.com.au
>> Subject: RE: [python-win32] Problem with winxpgui
>> Hi again and thank you for answering
>> I am getting some help from my colleague in trying to figure this out.
>> So here is what we have come up with so far. We are using py2exe to
>> pack the python code and have tried adding a manifest info to the
>> setup.py file used for that. This is the info we added:
>> manifest_template = """
>> <assembly xmlns="urn:schemas-microsoft-com:asm.v1"
>> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
>> <requestedExecutionLevel level="asInvoker"
>> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-
>> Controls" version="220.127.116.11" processorArchitecture="X86"
>> publicKeyToken="6595b64144ccf1df" language="*"></assemblyIdentity>
>> <assemblyIdentity type="win32" name="Microsoft.VC90.CRT"
>> version="9.0.21022.8" processorArchitecture="x86"
>> The important part here as I am sure you already know, is the
>> dependency including Microsoft.Window.Common-Controls. This works for
>> the executable that is coming out of running py2exe on our code.
>> However it does not help us much when running the code directly using
>> python and we have some tests that we would like to run that way.
>> So any help in getting a change into the python executable would be
>> great. We are absolutely willing to try whatever you point us to. I am
>> sure we have enough programming skills to give it a go.
More information about the python-win32