Reputation: 21471
I used Inno Setup to pack my application, and I gave it an Icon for Quickstart and Desktop:
[Icons]
Name: "{group}..."
Name: "{group}..."
Name: "{commondesktop}..."
Name: "{userappdata}...."
This works, but now I got the request to not have the taskbar icon in Windows 7 to show a standard .exe
icon:
What am I missing here; searching for taskbar icon doesn't help me?
Upvotes: 1
Views: 2405
Reputation: 40390
The icon inside the exe file is set by cx_Freeze when you freeze it. You can set the icon
parameter to Executable:
executables = [Executable("guifoo.py", base=base, icon="my_icon.ico")]
I think the shortcut icon is set by Inno setup, although it may copy the exe icon by default.
EDIT: It turns out it was also necessary to set the window icon within the program - in Tkinter, this is done like this:
root.iconbitmap(default='myicon.ico')
Upvotes: 2