Application.LoadScript

Application.LoadScript ( 

string Filename )

Example 1

Application.LoadScript(_TempFolder.."\\AddedFunctionality.lua");

Loads and executes the external script file called "AddedFunctionality.lua" that is currently located in the user's Temp folder. This script file will be executed once during the application.

Example 2

Application.LoadScript(_SourceFolder.."\\MyScript.lua");

Loads and executes the script file called "MyScript.lua."

Note: _SourceFolder is a built-in variable that contains the path to the folder where the installation executable is located.

See also:  Related Actions