I have an Inno Setup script with preprocessor directives (#defines, #ifs, etc.)
#define
#if
I want to run the Inno Setup preprocessor on my script and
When all else fails look for the answer yourself
Add the following line right at the end of the script.
This will generate a file preprocessed.iss with all macros expanded and #defines, #ifs etc. processed.
preprocessed.iss
#expr SaveToFile(AddBackslash(SourcePath) + "Preprocessed.iss")