【问题标题】:Get [Messages] values in InnoSetup's language file在 InnoSetup 的语言文件中获取 [Messages] 值
【发布时间】:2011-03-30 17:30:12
【问题描述】:

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

[CustomMessages]
AdditionalIcons=blablabla

使用此代码:

ExpandConstant('{cm:AdditionalIcons}');

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

[Messages]
ButtonNext=huhu
ButtonInstall=bubu

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

ExpandConstant('{cm:ButtonNext}');

如何查询这些值?

相关链接

Inno Setup Script tips

【问题讨论】:

    标签: windows installation inno-setup pascal


    【解决方案1】:

    试试

    SetupMessage(msgButtonNext);
    

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

    【讨论】:

    • 太棒了!非常感谢!!
    • 嗯。所以没有任何方法可以在没有代码的情况下使用它们,就像您可以在安装程序的非代码部分使用 {cm:xxx} 一样?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-29
    相关资源
    最近更新 更多