There are two kinds of directives in ISPP: simple and 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:
[Setup]
AppName={#MyAppName}
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}.
Directive usage syntax uses the following conventions.
() | Group of tokens. |
[] | Optional token or group of tokens. |
| | Mutually exclusive tokens. |
... | Previous token or group of tokens can be repeated. |
token | Reserved word or symbol(s). Must be typed exactly as shown. |
<token> | Non-terminal. Its syntax is either shown before, or explained. |