ApplicationCheckScriptLicense |
Top Previous Next |
Prototype
boolLicensed:=ApplicationCheckScriptLicense(strScriptID)
Description
Verify if exists a valid license to run current script.
Parameters
strScriptID: string value that represents the identifier of the script, as specified during the license generation.
Returned value
True if a valid license exists, False otherwise.
Notes
A script license allows to protect a script so that can be executed only on a specific pc (if license is generated on computer id) or on a specific dongle (if license is generated on dongle serial number).
This funciton looks for a license file with same file of the script file but extension .lic so if the script file name is MyScript.eips the license file should be MyScript.lic
To generate a license you need to use a special utility available as option.
Example
// Check if a valid script license exists if ApplicationCheckScriptLicense('MySecretScriptId') then begin ApplicationLog('This script is licensed on this computer !'); // Put the script code to be executed here... // ... end else begin ApplicationLog('This script is NOT licensed on this computer !'); end; |