NSIS如何在多行上拆分字符串?
看起来很简单,但我有一个很大的命令行帮助字符串,我想将其分解,以便更易于阅读/维护 在NSIS我怎么做? 正常的NSIS如何在多行上拆分字符串?,nsis,Nsis,看起来很简单,但我有一个很大的命令行帮助字符串,我想将其分解,以便更易于阅读/维护 在NSIS我怎么做? 正常的 "xxx" \ "xxxx" 这种风格的方法似乎不起作用 我想整理的示例代码: MessageBox MB\U OK“无人参与静默安装:$\r$\n/S$\t$\t=$\t使用install.ini(如果存在)静默安装$\r$\n/W=1$\t$\t=$\t\写出要安装的所有用户设置。ini$\r$\n/WRITESETTINGS=1$\t$\t=$\t写出要安装的所有用户设置。i
"xxx" \
"xxxx"
这种风格的方法似乎不起作用
我想整理的示例代码:
MessageBox MB\U OK“无人参与静默安装:$\r$\n/S$\t$\t=$\t使用install.ini(如果存在)静默安装$\r$\n/W=1$\t$\t=$\t\写出要安装的所有用户设置。ini$\r$\n/WRITESETTINGS=1$\t$\t=$\t写出要安装的所有用户设置。ini(更长形式)$\r$\n$/\t$\t=$\t=$\t此帮助页。$\r$\n$\r$\n$\n$\r$\n“在引号内:
MessageBox MB_OK "Unattended Silent Installs:$\r$\n\
/S$\t$\t=$\tSilent install using install.ini (if present)$\r$\n\
/W=1$\t$\t=$\t\Writes out all user settings to install.ini$\r$\n\
/WRITESETTINGS=1$\t$\t=$\tWrites out all user settings to install.ini (longer form)$\r$\n\
/?$\t$\t=$\tThis help page.$\r$\n\
$\r$\n"
或者,您可以使用定义:
!define msg1 "foo$\r$\n"
!define msg2 "bar$\r$\n"
MessageBox MB_OK "${msg1}${msg2}"
感谢Anders-没想到它会出现在报价中;)