Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inno Setup string concatenation in #define directive

Tags:

inno-setup

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?
like image 784
H2ONaCl Avatar asked Oct 24 '15 06:10

H2ONaCl


1 Answers

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"
like image 64
demonplus Avatar answered Sep 21 '22 20:09

demonplus