views:

29

answers:

1

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, ButtonInstall 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

+3  A: 

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

Andreas Rejbrand
Awesome! Thank you very much!!
Paja