Show/Hide Toolbars

Licence Protector 5

This command analyzes an Activation Key and gives as a result the 8 digit installation code, which will be set with this key. This command can only be used for keys which turn copy protection on (Unlock Key). For all other keys, the license file ID is retrieved as an hex value. If no ID is set or the ID=0 then the result value will be

 

Use GetKeyType to analyze if the key is from type = 1

Use GetKeyCopyProtectionType to retrieve the installation code number

 

 

Name

GetKeyInstCode                                                                                    

Purpose

This command analyzes an Activation Key and gives as a result the 8 digit installation code, which will be set with this key. This command can only be used for keys which turn copy protection on (Unlock Key).

Params

Parameter

Type

Example

Note

Key

String

HX4a7-5CYE0-11CFy-6sjwX-kcC3Q-Aj8Eh

Must be a Licence Protector Activation Key

Returncode

Returncode

Type String

Note

Empty

No installation code could be retrieved (license file ID = 0 and no copy protection code is set)

Other code (always 8 characters long)

Installation code which will be set for this license file. It it is not a copy protection key (use GetKeyType)

Usage

When the user types in a key you could use this information in your application logic

Sample

 

  scode := lic.GetKeyInstCode(‘HX4a7-5CYE0-11CFy-6sjwX-kcC3Q-Aj8Eh’);

 if sCode = ‘’ then

  begin

    << No installation code could be retrieved >>

     ...

  end

  else

  begin

    << use the installation code >>

     ...

 

See also

Commands to analyze an Activation Key

 

 

To use this command, the license file must have been opened with one of the prepare commands.

 

See Analyze an Activation Key for an overview about all commands.