InstallShield 2015
Methods, like properties, allow your object to interact with the installation containing it. Methods, for all practical purposes, are functions. As a matter of fact, the only difference between a method and a function is the fact that a method is declared with the method keyword. Methods allow you to expose your object’s functions to other objects and setups.
Creating a Method
To create a method:
1. | Open the InstallScript view. |
2. | In the InstallScript explorer, right-click Methods and click Add New Methods. The Add New Methods dialog box opens. |
3. | Define your method’s settings. |
4. | Click OK. |
The Add New Method dialog box adds the following to your object script:
• | A method declaration with the following syntax: |
method <method data type> <method name> (<argument data types>);
For example:
method STRING MyMethod( NUMBER, BOOL );
• | A function block defining the method. For example: |
function STRING MyMethod( /*NUMBER*/ arg1, /*BOOL*/ arg2 )
begin
end;
InstallShield 2015 Help LibraryJune 2015 |
Copyright Information | Contact Us |