Inno Setup #define指令中的字符串连接

时间:2015-10-24 06:52:23

标签: inno-setup

Inno Setup网站是否未能记录#define指令或者我是否错过了某处?是否允许使用已定义的字符串进行定义并将它们连接起来?

#define MyApp ABC
#define MyAppVersion 1.2.1
#define MyFolder ?  ; what is the right syntax here to concatenate 
                    ; the two previously defined strings?

1 个答案:

答案 0 :(得分:6)

以下是关于定义的帮助部分:

http://www.jrsoftware.org/ispphelp/index.php?topic=define

关于你的例子:

#define MyApp "ABC"
#define MyAppVersion "1.2.1"
#define MyFolder MyApp + MyAppVersion

#define MyFolder1 MyApp + "Some other string"