Inno Setup 创建的安装程序如何在 "Programs and Features" 列表中显示指定的图标?

How can I display the specified icon on the list in "Programs and Features" by the installer created by Inno Setup?

使用Inno Setup 创建的安装程序安装时,“程序和功能”中“图标”部分中指定的图标不会出现在列表中。指定的图标可以显示在桌面或启动时。 Inno Setup创建的安装程序如何在“程序和功能”列表中显示指定的图标?

我刚刚在帮助系统中快速搜索并找到了答案。

您需要在脚本的 [Setup] 部分使用 UninstallDisplayIcon 关键字。

帮助主题指出:

This lets you specify a particular icon file (either an executable or an .ico file) to display for the Uninstall entry in the Add/Remove Programs Control Panel applet. The filename will normally begin with a directory constant.

示例:

UninstallDisplayIcon={app}\MyProg.exe
UninstallDisplayIcon={app}\MyProg.exe,1

请转到帮助主题以获取此关键字的完整详细信息。