Inno Setup string concatenation in #define directi

2019-01-19 23:59发布

问题:

Did the Inno Setup website fail to document the #define directives or did I miss that somewhere? Is it permissible to define using defined strings and concatenate them?

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

回答1:

Here is the section of help concerning defines:

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

Regarding your example:

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

#define MyFolder1 MyApp + "Some other string"


标签: inno-setup