Innosetup - 将图标放在开始菜单中的卸载程序上时出现问题

发布于 2025-01-11 07:15:19 字数 1008 浏览 3 评论 0原文

我正在将 Innosetup 用于一个非常简单的 Windows C++ 应用程序。它只是在开始菜单组中有一个主 EXE 图标,以及另一个卸载程序图标(unins000.exe,由 Innosetup 创建)。

在脚本的 [Files] 部分中是:

Source: "C:\...\telecine.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\...\Telecine.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\...\uninstall.ico"; DestDir: "{app}"; Flags: ignoreversion

[Icons] 部分中:

Name: "{autoprograms}\Nightshade Arts\Telecine\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}\Telecine.ico"
Name: "{autoprograms}\Nightshade Arts\Telecine\Uninstall"; Filename: "{app}\unins000.exe"; IconFilename: "{app}\uninstall.ico"

有效方法:这两个条目位于程序组中,的快捷方式>Telecine.exe 旁边有 Telecine.ico 图标,卸载程序的快捷方式有效。

问题:卸载程序图标不是 uninstall.ico 中的图标,它是其他图标,可能包含在 unins000.exe 本身中。

不确定出了什么问题。 uninstall.ico 是应用程序目录,它包含正确的图标。只是没有出现。

不知道我哪里出错了?

I'm using Innosetup for a very simple Windows C++ app. It just has an icon for the main EXE in the start menu group, plus another icon for the uninstaller (unins000.exe, created by Innosetup).

In the [Files] section of the script is:

Source: "C:\...\telecine.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\...\Telecine.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\...\uninstall.ico"; DestDir: "{app}"; Flags: ignoreversion

and in the [Icons] section:

Name: "{autoprograms}\Nightshade Arts\Telecine\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}\Telecine.ico"
Name: "{autoprograms}\Nightshade Arts\Telecine\Uninstall"; Filename: "{app}\unins000.exe"; IconFilename: "{app}\uninstall.ico"

What works: the two entries are in the program group, the shortcut to Telecine.exe has the Telecine.ico icon next to it, the shortcut to the uninstaller works.

Problem: the uninstaller icon is not the one in uninstall.ico, it is something else, probably contained in unins000.exe itself.

Not sure what has gone wrong. uninstall.ico is there is the app directory, and it contains the right icon. Just doesn't show up.

Not sure where I've gone wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文