Thanks for the solution.  It worked on Win XP like the previous one did and works better (although not perfectly on Vista).  The file does not have the ico appear on the exe in windows explorer in vista (like before), but now if you load the exe, an error about not being able to locate the file does not come up.  I am still not sure how to associate the icon with the exe in Vista, but this solution is better and will work for now.  Do you know another solution that may work full on Vista?

As a side note, the py2exe wiki article on "custom icons" details the process to do what I originally did:

>         exeName = win32api.GetModuleFileName(win32api.GetModuleHandle (None))
>         self.SetIcon(wx.Icon(exeName, wx.BITMAP_TYPE_ICO))

Yet the article says nothing about the solution you just gave me with using the wxPythons img2py package.  Your solution seems much better to me and I think it should be included on that page.  I would include it, but the page is immutable to me.

Thanks for the help,

On 4/18/07, Werner F. Bruhin <werner.bruhin@free.fr> wrote:
Hi James,

James Howard wrote:
>  I was looking for a way to implement your solution, but was unable to
> find any information about the py2img module.   A google search for it
> returned nothing as did a sourceforge search.  Is there a place you can
> point me to where I can find more information about the module?
It would help if I gave you the right name :(, it is img2py and comes
with wxPython and lives in:



This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
Py2exe-users mailing list