Declarations

InstallShield 2013 ยป InstallScript Language Reference

Every script begins with global data declarations. Here, you define constants and declare each of the global variables and user-defined functions that you will be using. Declarations instruct the InstallScript compiler that the script will be using the listed items at a later time. Declarations also build an association between a function and its attributes or values. You do not need to declare any of the built-in functions, since the InstallScript compiler already recognizes the function names.

Below are some examples of constant definitions, data declarations, and function declarations:

// Constant definitions

#define PRODUCT "InstallShield"

#define LIMIT    100

 

    // Variable declarations

    CHAR  cVal;

    NUMBER nVal;

    STRING szName;

    

    // Function declarations

    prototype DisplayMsg (NUMBER, STRING);

    prototype GetName (BYREF STRING);

See Also