【发布时间】:2018-01-08 13:35:38
【问题描述】:
我正在使用 NSIS 创建安装程序。现在,输出文件 installer.exe 具有标准图标,可在以下位置找到:
{NSIS_Install_Dir}\Contrib\Graphics\Icons\classic-install.ico
我想用一个自定义的地雷来改变它,所以我按照文档的建议添加了这些行:
!include "MUI.nsh"
!define MUI_ICON "custominstaller.ico"
!define MUI_UNICON "custominstaller.ico"
它不起作用,在 NSIS 编译结束时,我可以阅读 2 个警告:
2 warnings:
Variable "MUI_TEMP1" not referenced or never set, wasting memory!
Variable "MUI_TEMP2" not referenced or never set, wasting memory!
我尝试使用 MUI2.nsh,但没有真正改变(只是新警告)。我也尝试使用图标的完整路径,仍然没有。 我什至将一个标准 NSIS 图标 (arrow-install.ico) 复制到 C:\ 并将其引用为
!define MUI_ICON "C:\arrow-install.ico"
还是什么都没有。有什么提示吗?
我在 Windows 7 机器上使用 NSIS 3.01。
【问题讨论】:
标签: installation uninstallation