Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inno Setup: How do I see the output (translation) of the Inno Setup Preprocessor?

I have an Inno Setup script with preprocessor directives (#defines, #ifs, 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?

like image 694
bandana Avatar asked Jul 25 '10 07:07

bandana


People also ask

What language Inno Setup is?

It defines two languages: English, based on the standard Default. isl file, and Dutch, based on a third-party translation.

How do I compile Inno Setup?

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.

What is Inno Script Studio?

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.


1 Answers

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.

#expr SaveToFile(AddBackslash(SourcePath) + "Preprocessed.iss")
like image 192
bandana Avatar answered Oct 12 '22 01:10

bandana