Inno Setup Preprocessor: Directives

In ISPP directives can be used in two ways: simple or inline.

Simple directives occupy a whole line and begin with the # symbol. For example the following defines a variable called MyAppName:

#define MyAppName "My Program"

Inline directives appear inside other lines and begin with {# and end with }. For example the following sets Inno Setup's AppName directive to the value of the previously defined variable:


As seen in the above example it is not necessary to specify the name of the emit directive when it is used inline, so {#MyAppName} is short for {#emit MyAppName}.

Available directives