User Sections

Top  Previous  Next

 

You can define any number of User sections in a script. User sections can be used for any purpose, but the most common use is to group commands either by process or by application or whatever other grouping makes sense to the user. It is strongly recommended that you create User Sections after any Setup Section and Notification Section defined in the script.

lamp Important: You MUST have at least one User Section in any script, or the script will be invalid.

Command Syntax

 

To create a User Section you simply type a suitable section name into the script surrounded by square brackets.

 

[Section Name]

lamp Important: User Sections are processed strictly in the order in which they appear in the script. Therefore for example you should create a section which will compile your code before you create a section that will test that code and so on.

Example

 

[Build Installers]

 

See Also: Setup Section Notification Section Catch Section Finally Section Tasks Section Code Section