H2ONaCl
H2ONaCl

Reputation: 11279

Inno Setup string concatenation in #define directive

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?

Upvotes: 8

Views: 7146

Answers (1)

demonplus
demonplus

Reputation: 5801

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"

Upvotes: 10

Related Questions