I want to associate the version number with a string in the inno-setup preprocessor macros. I tried using the stringer trick (used in C ++ macros) as follows:
#define stringer_helper(arg) #arg #define stringer(arg) stringer_helper(arg) #define version 1 #define myapp "lala " + stringer(version)
but get the error:
Illegal character in input file: '#' (0x23)
How can I add a numerical definition to define a string?
source share