Inno Setup:控制面板图标不显示

我有一个Inno安装项目。 一切正常,但我没有看到“程序和function”控制面板区域中的应用程序图标。 我在其他地方看到了这个图标。

脚本文件具有以下内容:

[Setup] SetupIconFile={#MySetupImageIco} 

是否还有其他需要设置的应用程序图标以显示在程序和function控制面板小程序中? 我正在testingWindows 8.1。


更新:
根据评论,我尝试在我的脚本中设置:

 UninstallDisplayIcon={#MySetupImageIco} 

不幸的是,这并没有产生添加/删除程序和function控制面板小程序中的图标。


更新#2:
获胜的解决scheme是:

 UninstallDisplayIcon={app}\{#MyAppExeName} 

自然,在脚本的顶部必须有一个#define MyAppExeName "whatever.exe" 。 有趣的是,当我指定的pathico文件,我没有成功。 用于Windows 8和8.1的Inno Setup需要我刚才所说的。 Windows 7与UninstallDisplayIcon协同工作,并指定ICO的path,否则只是Windows 8和8.1有点不同。

解决方案是:

 [Setup] UninstallDisplayIcon={app}\{#MyAppExeName} 

指定实际的ico文件不起作用,但这个条目。

我测试了Windows 8 / 8.1。 Windows 7没有这一行工作。

我也可以确认这是一个工作的解决方案(Win7的X64):

 [Setup] UninstallDisplayIcon={uninstallexe} 

我真的很喜欢这里独立于应用程序的名称等只是纯粹的别名卸载程序。

https://dutchgemini.wordpress.com/2011/05/03/innosetup-and-the-missing-uninstall-icon-on-windows-7找到

它应该是

 UninstallDisplayIcon= {app}ForwardSlash{#MyAppExeName} 

我测试了Windows 10最新版本。

我的#MyAppExeName解决方案有问题,因为我使用了OutputBaseFilename指令。 更优雅的解决方案是:

 UninstallDisplayIcon={srcexe}