简体   繁体   English

Inno Setup任务栏图标

[英]Inno Setup task bar icon

I used Inno Setup to pack my application, and I gave it an Icon for Quickstart and Desktop: 我使用Inno Setup打包应用程序,并为它提供了一个用于快速入门和桌面的图标:

[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: 这可行,但是现在我收到了在Windows 7中不显示任务栏图标以显示标准.exe图标的请求:

在此处输入图片说明

What am I missing here; 我在这里想念的是什么? searching for taskbar icon doesn't help me? 搜索任务栏图标对我没有帮助?

The icon inside the exe file is set by cx_Freeze when you freeze it. 冻结文件时,exe文件中的图标由cx_Freeze设置。 You can set the icon parameter to Executable: 您可以将icon参数设置为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. 我认为快捷方式图标是由Inno设置设置的,尽管默认情况下它可能会复制exe图标。

EDIT: It turns out it was also necessary to set the window icon within the program - in Tkinter, this is done like this: 编辑:原来也有必要在程序中设置窗口图标-在Tkinter中,这是这样完成的:

root.iconbitmap(default='myicon.ico')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM