简体   繁体   English

NSIS 安装程序应用程序名称未正确显示

[英]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.

相关问题 在NSIS安装程序中使用安装程序名称重命名文件? - rename file with the name of installer name in NSIS installer? 无法从 NSIS 安装程序安装多个应用程序 - Cannot install multiple application from NSIS installer 如何使用 NSIS 安装程序检查和安装 .net C# 应用程序 - How to check and install .net C# application using NSIS Installer 从系统服务启动的NSIS安装程序中以登录用户身份启动应用程序 - Start application as logged user from NSIS installer launched by system service 向NSIS安装程序添加依赖项 - Adding dependency to NSIS installer 使用NSIS安装程序,通过右键单击Windows菜单,为多个选定文件运行单个软件实例 - Running a single instance of software for multiple selected files by right click menu of windows using NSIS installer ZeroMQ Windows Installer NSIS错误 - ZeroMQ Windows Installer NSIS Error 将许可证信息添加到NSIS安装程序 - Adding License information to NSIS installer 使用 nsis 打包应用程序安装程序和 .wav 文件无法播放,因为 Windows 上的路径包含空格 --> Program%20Files - Using nsis to package application installer and .wav file does not play because of a path on Windows containing a space --> Program%20Files NSIS安装程序:检测RequestExecutionLevel是否不起作用 - NSIS Installer: Detect if RequestExecutionLevel did not work
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM