简体   繁体   English

在InnoSetup的语言文件中获取[Messages]值

[英]Get [Messages] values in InnoSetup's language file

I know I can easily get messages inside 我知道我可以轻松收到邮件

[CustomMessages]
AdditionalIcons=blablabla

using this code: 使用此代码:

ExpandConstant('{cm:AdditionalIcons}');

which gets the AdditionalIcons string message. 它获取AdditionalIcons字符串消息。 However, how can I get messages inside this? 但是,如何在其中获取消息?

[Messages]
ButtonNext=huhu
ButtonInstall=bubu

What I need is to get the ButtonNext , ButtonInstall and other values, and it is NOT possible to get those values using code like this: 我需要获取ButtonNextButtonInstall和其他值,并且无法使用如下代码获取这些值:

ExpandConstant('{cm:ButtonNext}');

How can I query those values? 如何查询这些值?

Related links 相关链接

Inno Setup Script tips Inno Setup脚本提示

Try 尝试

SetupMessage(msgButtonNext);

In general, the name of the constant to use (in this case msgButtonNext ) is msg + the name of the message (string concatination). 通常,要使用的常量的名称(在本例中为msgButtonNext )为msg +消息的名称(字符串合并)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM