Inno设置:控制面板图标不显示

Sar*_*ger 16 windows inno-setup setup-deployment ico

我有一个Inno安装项目.一切都很好,但我没有在"程序和功能"控制面板区域中看到应用程序图标.我确实在其他地方看到了这个图标.

脚本文件具有以下内容:

[Setup]
SetupIconFile={#MySetupImageIco}
Run Code Online (Sandbox Code Playgroud)

是否还需要设置其他内容以使应用程序图标显示在"程序和功能"控制面板小程序中?我正在测试Windows 8.1.


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

UninstallDisplayIcon={#MySetupImageIco}
Run Code Online (Sandbox Code Playgroud)

遗憾的是,这并没有在添加/删除程序和功能控制面板小程序中产生图标.


更新#2:
获胜的解决方案是:

UninstallDisplayIcon={app}\{#MyAppExeName}
Run Code Online (Sandbox Code Playgroud)

当然,#define MyAppExeName "whatever.exe"在脚本的顶部必须有一个以上.有趣的是,当我指定ico文件的路径时,我没有成功.适用于Windows 8和8.1的Inno Setup需要我刚才所说的内容.Windows 7使用UninstallDisplayIcon并指定ICO的路径,或者没有它,只是Windows 8和8.1有点不同.

Sar*_*ger 32

解决方案是:

[Setup]
UninstallDisplayIcon={app}\{#MyAppExeName}
Run Code Online (Sandbox Code Playgroud)

指定实际的ico文件不起作用,但此条目确实有效.

我针对Windows 8/8.1进行了测试.Windows 7无需此行即可运行.

  • 由[`UninstallDisplayIcon`](http://www.jrsoftware.org/ishelp/index.php?topic=setup_uninstalldisplayicon)指定的路径按原样保存,以在目标计算机上卸载注册表项。因此,它必须指向目标计算机上存在的文件。它没有像SetupIconFile那样嵌入到安装程序中。因此,如果需要,“ UninstallDisplayIcon”甚至可以指向“ .ico”文件,但是需要将“ .ico”文件显式部署到目标计算机(例如,使用“ [Files]”部分)。 (2认同)

Yur*_*ula 9

我也可以确认这是一个有效的解决方案(Win7 x64):

[Setup]
UninstallDisplayIcon={uninstallexe}
Run Code Online (Sandbox Code Playgroud)

我真正喜欢这里它独立于应用程序名称等.只是卸载程序的纯别名.

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

  • 好的,我知道,如果设置`SetupIconFile`,它可以工作. (3认同)
  • 我最喜欢这个选项,因为我确实设置了 `SetupIconFile` (3认同)