Re: py2exe Icon Resources



flarefight@xxxxxxxxxxxxxx schrieb:
I have created an app using python and then converting it to an exe
using py2exe, and have the following code:

"icon_resources": [(1, "appFavicon.ico"), (2, "dataFavicon.ico")]

in my py2exe setup file, the appFavicon works fine and it sets that as
the app icon thats fine, but the program creates data files (like
documents) and i wanted them to have a different icon...

I package my apps using Inno Setup 5, and it registers the file type
fine so that it loads on double click, what i cant do is set the icon
for the file.

as you can see i have packaged two different icons with py2exe but
when i set DefaultIcon in the registry to "C:\pathtoapp\myapp.exe,2"
it doesnt work, nor does it work with a 1 or a %1 or indeed with
passing a path to the icon itself, nothing seems to work!!

how do you access the other icons generated from py2exe, or how do you
set the registry up so that i looks for the icon correctly,


There was a problem in the icon resources code in py2exe which was
recently fixed in CVS but there is not yet a binary release of this code.
Maybe it solves your problem...

Thomas
.



Relevant Pages

  • py2exe Icon Resources
    ... I have created an app using python and then converting it to an exe ... in my py2exe setup file, the appFavicon works fine and it sets that as ... fine so that it loads on double click, what i cant do is set the icon ...
    (comp.lang.python)
  • Re: win XP + wxPython + py2exe
    ... but if I compile it using py2exe it looks like any ugly standard ... from distutils.core import setup ... installs manifest and icon into the .exe ...
    (comp.lang.python)
  • Re: py2exe icon resource on win98
    ... Thomas Heller wrote: ... >> in the py2exe wiki about adding icon resources to apps. ... it's win98 first edition without any updates ...
    (comp.lang.python)
  • setting icon using py2exe?
    ... I'm trying in vain to set the icon for the executable generated ... generated by py2exe? ... War II! ...
    (comp.lang.python)