开发者

Get [Messages] values in InnoSetup's language file

开发者 https://www.devze.com 2023-01-12 08:11 出处:网络
I know I can easily get messages inside [CustomMessages] AdditionalIcons=blablabla using this code: ExpandConstant(\'{cm:AdditionalIcons}\');

I know I can easily get messages inside

[CustomMessages]
AdditionalIcons=blablabla

using this code:

ExpandConstant('{cm:AdditionalIcons}');

which gets the AdditionalIcons string message. However, how can I get messages inside this?

[Messages]
ButtonNext=huhu
ButtonInstall=bubu

What I need is to get the ButtonNext, Button开发者_高级运维Install and other values, and it is NOT possible to get those values using code like this:

ExpandConstant('{cm:ButtonNext}');

How can I query those values?

Related links

Inno Setup Script tips


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消