-----Original Message-----
From: Mark Hammond [mailto:mhamm...@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?

I don't.

> Should we post this discussion to the mailing list in case someone else has 
> the same problem?

You should :)

Cheers,

Mark

>
> Greetings and thanks again
>
> Christian
>
>
> -----Original Message-----
> From: Mark Hammond [mailto:mhamm...@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...)
>
> Cheers,
>
> Mark
>
>
>> -----Original Message-----
>> From: Christian Sørensen [mailto:c...@giritech.com]
>> Sent: Friday, 19 June 2009 6:05 PM
>> To: mhamm...@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"
>> manifestVersion="1.0">
>>    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
>>      <security>
>>        <requestedPrivileges>
>>          <requestedExecutionLevel level="asInvoker"
>> uiAccess="false"></requestedExecutionLevel>
>>        </requestedPrivileges>
>>      </security>
>>    </trustInfo>
>>    <dependency>
>>      <dependentAssembly>
>>        <assemblyIdentity type="win32" name="Microsoft.Windows.Common-
>> Controls" version="6.0.0.0"  processorArchitecture="X86"
>> publicKeyToken="6595b64144ccf1df" language="*"></assemblyIdentity>
>>      </dependentAssembly>
>>    </dependency>
>>    <dependency>
>>      <dependentAssembly>
>>        <assemblyIdentity type="win32" name="Microsoft.VC90.CRT"
>> version="9.0.21022.8" processorArchitecture="x86"
>> publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
>>      </dependentAssembly>
>>    </dependency>
>> </assembly>
>> """
>>
>> 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.
>>
>> Greetings,
>>
>> Christian
>
>

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to