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

时间:2010-08-17 00:13:14

标签: windows installer installation inno-setup pascal

我知道我可以很容易地收到消息

[CustomMessages]
AdditionalIcons=blablabla

使用此代码:

ExpandConstant('{cm:AdditionalIcons}');

获取AdditionalIcons字符串消息。但是,我怎样才能在其中收到消息?

[Messages]
ButtonNext=huhu
ButtonInstall=bubu

我需要的是获取ButtonNextButtonInstall和其他值,并且无法使用以下代码获取这些值:

ExpandConstant('{cm:ButtonNext}');

如何查询这些值?

相关链接

Inno Setup Script tips

1 个答案:

答案 0 :(得分:5)

尝试

SetupMessage(msgButtonNext);

通常,要使用的常量的名称(在本例中为msgButtonNext)是msg +消息的名称(字符串连接)。