You can use this function to display the Installation Code / Hardware ID to the user, if you don’t want to use the License Viewer or EasyGo. The hardware IDs are retrieved from the PC, where the license file is stored.
InstallationCode = GetInstCode(CopyProtectType)
The value 0 (No Copy Protection) in the function GetInstCode retrieves a default value. The value is B3F5AA23. You can use it as an indication, that the license file has no Copy Protection. A better and recommended way to determine the type of activated copy protection is to use GetCopyProtection() which delivers 0 for none, 1 for VolumeID, 2 for MAC address and 3 for Hostname.
Note
If an installation code can not be retrieved (e.g. no MAC address available) you get an empty string as return value.
Name |
GetInstCode |
||||||||
Purpose |
Gets the installation code for the specified type |
||||||||
Params |
|
||||||||
Returncode |
|
||||||||
Usage |
E.g. compute installation code for a routine to request a new license file |
||||||||
Sample |
sCode := lic.GetInstCode(1); if sCode = ‘’ then begin << computing the installation code failed >> ... end else begin << use the installation code >> ...
|
||||||||
See also |
To use this command, the license file must have been opened with one of the prepare commands.