Friday 15 July 2011

inno setup - How to concatenate number to string in macro? -


I want to add a version number to the string in the ino-setup preprocessor macros. I tried to use stringer moves like this (used in c ++ macros):

  #define stringer_helper (arg) #arg #define stringer (arg) stringer_helper (arg) # Define version 1 #define Myapp "lala" + stringer (version)  

but get error:

  Invalid character in input file: '#' ( 0x23)  

How is it possible to add a number to define a string?

You can use the function to type your integer variable:

  Define # MyStream "Text" # Define MyInteger 666 # MyVariable MyString + Str (MyInteger) Define  

No comments:

Post a Comment