Innosetup - 将图标放在开始菜单中的卸载程序上时出现问题
我正在将 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论