简体   繁体   English

有没有办法使用 CPACK + NSIS 指定添加/删除图标?

[英]is there a way to specify the Add/Remove icon using CPACK + NSIS?

I see that this is possible using nsis scripting: https://nsis.sourceforge.io/Add_uninstall_information_to_Add/Remove_Programs .我看到使用 nsis 脚本可以做到这一点: https://nsis.sourceforge.io/Add_uninstall_information_to_Add/Remove_Programs There is also an SO post about it (from back in 2013): NSIS MUI Icon in Programs and Features还有一个关于它的 SO 帖子(从 2013 年开始): NSIS MUI Icon in Programs and Features

But in the CPACK NSIS generator documentation I don't see any avenue for specifying the icon in the Control Panel->Programs and Features dialog: https://cmake.org/cmake/help/latest/cpack_gen/nsis.html但是在 CPACK NSIS 生成器文档中,我看不到任何在控制面板->程序和功能对话框中指定图标的途径: https://cmake.org/cmake/help/latest/cpack_gen/nsis.html

CMake and CPack can produce really nice nsis installers. CMake 和 CPack 可以生成非常好的 nsis 安装程序。 AFAICT this is the only thing missing! AFAICT这是唯一缺少的东西!

The CPack documentation is not very helpful. CPack 文档不是很有帮助。

You need to set CPACK_NSIS_INSTALLED_ICON_NAME to a.exe or.ico filename ( "$INSTDIR\@CPACK_NSIS_INSTALLED_ICON_NAME@" is written to the registry)您需要将CPACK_NSIS_INSTALLED_ICON_NAME设置为 a.exe 或 .ico 文件名( "$INSTDIR\@CPACK_NSIS_INSTALLED_ICON_NAME@"写入注册表)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM