[英]NSIS Installer Application name not displayed right
I built an application with CPack and NSIS and defined a rather long application name (it's for work, so I censored it a bit).我用 CPack 和 NSIS 构建了一个应用程序并定义了一个相当长的应用程序名称(它是为了工作,所以我对其进行了一些审查)。 When starting the installer the name is cut off.
启动安装程序时,名称被截断。 I already tried removing the spaces in the name, adding ' ' to the string for the spaces and removed just one space at the beginning of the name, but nothing helps.
我已经尝试删除名称中的空格,将 ' ' 添加到空格的字符串中并仅删除名称开头的一个空格,但没有任何帮助。
Do you know how to make the frame bigger where NSIS puts the name or another solution how I can fix this?您知道如何在 NSIS 放置名称的位置增大框架或其他解决方案如何解决此问题吗?
After finding out that NSIS_DEFINES are bugged I made a different approach and used @Anders solution: In my CMake file I put the line在发现 NSIS_DEFINES 被窃听后,我采用了不同的方法并使用了 @Anders 解决方案:在我的 CMake 文件中,我将行
set(CPACK_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/)
pointing to the NSIS.template.in file I copied from the Cmake Modules directory into my project folder and added the lines指向我从 Cmake Modules 目录复制到我的项目文件夹中的 NSIS.template.in 文件并添加了几行
!define MUI_WELCOMEPAGE_TITLE_3LINES
!insertmacro MUI_PAGE_WELCOME
...
!define MUI_FINISHPAGE_TITLE_3LINES
!insertmacro MUI_PAGE_FINISH
It should work without copying the nsis file and using the define command, but as long as there is a bug I think this is a good compromise.它应该可以在不复制 nsis 文件和使用 define 命令的情况下工作,但只要存在错误,我认为这是一个很好的妥协。
In pure NSIS you would do:在纯 NSIS 中,您将执行以下操作:
!include MUI2.nsh
!define MUI_WELCOMEPAGE_TITLE_3LINES
!insertmacro MUI_PAGE_WELCOME
...
!define MUI_FINISHPAGE_TITLE_3LINES
!insertmacro MUI_PAGE_FINISH
I have no idea how you apply those defines when using cpack.我不知道在使用 cpack 时如何应用这些定义。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.