As in:
[Custommessages] createdesktopicon=Create a Desktop iconnameandversion=%1 version%2
Normal to get information about fields in Custommessages, just use the Custommessage method to
var s:string;begin S:= custommessage ('createdesktopicon'); end;
The result of S is: Create a Desktop icon
However, the contents of the Nameandversion field are not fixed, but you want to be able to bind dynamically, you need to use the placeholder %1 and %2 , and dynamic binding, you also need to use the Fmtmessage method:
var s:string;begin S:= Fmtmessage (custommessage ('nameandversion'), [ ' My Program ' ' 1.0 ' ]); end;
The result of S is: My Program version 1.0
Bind my program and 1.0 to%1 and%2, respectively
Special Note: The second parameter of Fmtmessage () is the array type, so even if there is only one argument, it has to be in the form of an array [Element1, Element2]:
S: = Fmtmessage (Setupmessage (Msgnotonthisplatform), ['Windows']);
Inno in multiple languages in Setup, use placeholder padding