微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Inno Setup UninstallIcon 消失

如何解决Inno Setup UninstallIcon 消失

我使用这段代码的 UninstallerIcon 有问题:

UninstalldisplayIcon=....(Iconlocation)

然后当我拔下带有图标的磁盘时,图标消失了:

enter image description here

enter image description here

我希望你能帮我:)

此致,

基督徒

解决方法

UninstallDisplayIcon 必须指向目标机器上的永久文件。不是安装程序的源驱动器。这通常意味着您必须安装图标并将 UninstallDisplayIcon 指向已安装的副本:

[Setup]
UninstallDisplayIcon={app}\uninstall.ico

[Files]
Source: uninstall.ico; DestDir: {app}

请注意,UninstallDisplayIcon 是由目标计算机上的 Windows 加载的,而不是 Inno Setup 本身。除了 .exe 之外,Windows 还支持其他格式,例如 .dll.ico

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。