InstallScript Limits

InstallShield 2012 Spring » InstallScript Language Reference

Following are limits for the compiled script file (setup.inx):

Maximum number of statements: about 4,294,967,295 (If this limit is exceeded, error -5009 may occur during setup initialization.)
Maximum number of global variables: about 196,605 (65,535 numbers, 65,535 variants, 65,535 strings)
Maximum number of typedefs: about 65,535
Maximum number of prototypes: about 65,535
Maximum number of functions: about 65,535
Maximum number of statements per function: about 65,535
Maximum local variables per function: about 196,605 (65,535 numbers, 65,535 variants, 65,535 strings)

Following are limits for script files (.rul):

Maximum line width: 1,024 characters
Maximum number of nested include files: 80
Maximum number of include files: 2,048
Maximum identifier length: 63 characters
Maximum number of macro expansions: 100
Maximum macro expansion text length: 256 characters
Maximum file name length: 256 characters
Maximum number of nested #if statements: 10
Maximum number of parameters per function: 16

Compile errors occur if one or more of these .rul limits are exceeded.

Tip: If you encounter any of the aforementioned limits, consider reducing the size of your installation script by removing code, or by splitting up your installation script into multiple projects, creating separate installations, and calling the child installations from your main installation (parent installation).

See Also