I have an Inno Setup script with preprocessor directives (#define
s, #if
s, etc.)
I want to run the Inno Setup preprocessor on my script and see the preprocessor's output (translation in Inno-Setup-speak). That is, I want to look at the result of the preprocessor which it normally feeds into the Inno Setup Compiler, where all the references to {#something}
are changed into whatever something
was defined as.
I look at the command line options (of iscc.exe
) and #pragma
directives and did not find what I'm looking for. I see that I can specify not to run the compiler (#pragma -c- | /$c-
) but I did not find a way to look at the output of the preprocessor.
In short, how do I look at the output of the Inno Setup preprocessor?
It defines two languages: English, based on the standard Default. isl file, and Dutch, based on a third-party translation.
Go to Menu, Project, then Compile to compile and create the setup file. This will create a complete installer. Run the Setup and your application will be installed correctly. Innosetup offers an awesome alternative to create great looking Installers for free.
Inno Script Studio provides help to simplify the creation of Microsoft Windows installations by allowing the generation of Inno Setup scripts by use of the intuitive interface to reduce the need to manually edit the Inno Setup scripts.
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 #define
s, #if
s etc. processed.
#expr SaveToFile(AddBackslash(SourcePath) + "Preprocessed.iss")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With