[英]Inno Setup: Control panel icon does not show
I have an Inno Setup project.我有一个 Inno Setup 项目。 Everything is fine, but I do not see the application icon in the "Programs and Features" control panel area.
一切都很好,但我在“程序和功能”控制面板区域中看不到应用程序图标。 I do see the icon everywhere else.
我确实在其他地方看到了这个图标。
The script file does have the following:脚本文件确实具有以下内容:
[Setup]
SetupIconFile={#MySetupImageIco}
Solution is: 解决方案是:
Add 加
[Setup]
UninstallDisplayIcon={app}\{#MyAppExeName}
Specifying the actual ico file did not work, but this entry did. 指定实际的ico文件不起作用,但此条目确实有效。
I tested against Windows 8/8.1. 我针对Windows 8 / 8.1进行了测试。 Windows 7 works without this line.
Windows 7无需此行即可运行。
I can confirm this as a working solution too (Win7 x64): 我也可以确认这是一个有效的解决方案(Win7 x64):
[Setup]
UninstallDisplayIcon={uninstallexe}
What I really love here it's independent to app name etc. Just pure alias to uninstaller. 我真正喜欢这里它独立于应用程序名称等。只是卸载程序的纯别名。
Found at https://dutchgemini.wordpress.com/2011/05/03/innosetup-and-the-missing-uninstall-icon-on-windows-7 发现于https://dutchgemini.wordpress.com/2011/05/03/innosetup-and-the-missing-uninstall-icon-on-windows-7
在我的 Windows 10 中,实际的图标文件本身有效,正如 NameError 所说,它在 Windows 11 中有效。
In Windows 11, you can use the icon file itself.在 Windows 11 中,您可以使用图标文件本身。
UninstallDisplayIcon=C:\\Path\\to\\ico\\file
does the thing. UninstallDisplayIcon=C:\\Path\\to\\ico\\file
做这件事。
Worked for me.为我工作。
Add 加
It should be 它应该是
UninstallDisplayIcon= {app}ForwardSlash{#MyAppExeName}
I tested it against Windows 10 latest build. 我针对Windows 10最新版本测试了它。
I had a problem with your #MyAppExeName
solution because I use the OutputBaseFilename
directive. 我的
#MyAppExeName
解决方案有问题,因为我使用OutputBaseFilename
指令。 A more elegant solution is: 更优雅的解决方案是:
UninstallDisplayIcon={srcexe}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.