Question

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:

enter image description here

What am I missing here; searching for taskbar icon doesn't help me?

Was it helpful?

Solution

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")]

Docs here.

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')
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top