在NSIS中更改安装文件夹页面的文本 [英] Change the text of install folder page in NSIS

查看:290
本文介绍了在NSIS中更改安装文件夹页面的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要更改NSIS安装程序的选择安装位置页面上的文本,以说我的程序无法安装在名称中包含空格的目录中。

I need to change the text on the "Choose Install Location" page of an NSIS installer to say that my program can not be installed in a directory containing spaces in the name.

更改此文本的最佳方法是什么?

What is the best way to change this text?

推荐答案

!include MUI2.nsh
!define MUI_PAGE_HEADER_TEXT Foo
!define MUI_PAGE_HEADER_SUBTEXT Bar
!define MUI_DIRECTORYPAGE_TEXT_TOP Baz
!define MUI_DIRECTORYPAGE_TEXT_DESTINATION Bob
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE English

您可能还想在用户要执行以下操作时检查路径离开页面(在页面离开回调中)...

You might also want to check the path when the user is about to leave the page (In the page leave callback)...

这篇关于在NSIS中更改安装文件夹页面的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆