[英]NSIS Modern UI Finish Page
I would like to build an installer for my application using NSIS, but I faced a problem on the finish page. 我想使用NSIS为我的应用程序构建安装程序,但是在完成页面上遇到了问题。 It looks like a big white rectangle around a checkbox. 它看起来像复选框周围的白色大矩形。 The rectangle cuts the ' Nullsoft Install System v3.03 ' subtitle. 该矩形剪切了“ Nullsoft安装系统v3.03 ”副标题。 Here it is a screenshot: 这是屏幕截图:
Here it is a code: 这是一个代码:
!include "MUI2.nsh"
Name "My cool app"
OutFile "MyCoolAppInstaller.exe"
InstallDir "C:\MyCoolApp"
!define MUI_FINISHPAGE_RUN "$INSTDIR\app.exe"
!define MUI_FINISHPAGE_RUN_TEXT "Run App now"
!define MUI_FINISHPAGE_RUN_NOTCHECKED
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
Section
SetOutPath "$INSTDIR"
File app.exe
File smth.res
SectionEnd
Does anybody know how to fix it? 有人知道如何解决吗?
You need to add at least one language after the page macros: 您需要在页面宏之后添加至少一种语言:
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_RUN "$INSTDIR\app.exe"
!define MUI_FINISHPAGE_RUN_TEXT "Run App now"
!define MUI_FINISHPAGE_RUN_NOTCHECKED
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE English
Adding a language will finalize some of the things in the UI and it does not look correct without it. 添加语言将最终确定UI中的某些内容,如果没有它,它看起来将不正确。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.