471,873 Members | 2,054 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,873 software developers and data experts.

pygtk + py2exe + inno -> icon for shortcut

Hi guys,
I saw quite a few posts regarding this but I was unable to solve this problem that I am facing.

First off, when I do the following in my setup.py,

'script': 'gulhane.py',
'icon_resources': [(1, "icon.ico")]

Python crashes and I am unable to run the script using python setup.py py2exe.

Second, I do not use the icon_resources field in windows but I add the file in the form of a data_file,

('gui', [

I am using Inno to compile the .exe created by py2exe. I try to access this file to add as an icon to the shortcut using,

Name: "{group}\My APP"; Filename: "{app}\MyApp.exe"; WorkingDir: "{app}"; IconFilename: "{app}\gui\icon.ico"

making sure that I keep ChangesAssociations=yes

I am unable to view the icon on the shortcut even after trying this. Could somebody please shed some light on this? Thank you in advance.

- Vish
Oct 16 '09 #1
0 1821

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Anthony Baxter | last post: by
3 posts views Thread by Larry Bates | last post: by
5 posts views Thread by Viktor | last post: by
2 posts views Thread by Tim N. van der Leeuw | last post: by
9 posts views Thread by Isaac Rodriguez | last post: by
5 posts views Thread by Laszlo Nagy | last post: by
2 posts views Thread by ward.david | last post: by
reply views Thread by He Jibo | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.