When using Inno Setup preprocessor to generate a multi-line output, like for example in these answers of mine:
- Inno Setup - Recurse sub directories without creating those same sub directories
- Function to add multiple source lines to Inno File section
- Generating Inno Setup file flags programmatically
- Inno Setup: Dynamically add a component for all files in a folder and its subfolders
- Choose between source paths for all files
I always have to switch to the C-style string literals using #pragma parseroption
directive, because with C-style string literals, I can use \n
:
#pragma parseroption -p-
#define TwoLines "line1\nline2\n"
#pragma parseroption -p+
I haven't found any way to emit a new-line character in the default Pascal-style string literals.
In a real Pascal (Script) string, one can use #13#10
. But that does not work in the preprocessor. Neither there's an equivalent of Pascal Chr
function.
Is there any other way to emit a new line in the Pascal-style string literals?