Licence Protector

ApplyActivationKey

Hide Navigation Pane

ApplyActivationKey

Previous topic Next topic No directory for this topic  

ApplyActivationKey

Previous topic Next topic Topic directory requires JavaScript JavaScript is required for the print function Mail us feedback on this topic!  

 

This function allows to store / apply an Activation Key in the license file in case that the License Viewer is not used.

 

Invoking this command without the parameter Activation Key will pop-up a dialog to type in a key. If you want to use your own dialog just provide as parameter the Activation Key.

 

Name

ApplyActivationKey                                                                              

Purpose

Insert an Activation Key to change the properties of a module or to change the Copy Protection. Former ReadActivationKey

Params

Parameter

Type

Example

Note

Activation Key

String

dO8uc-G1iC9-jOGeA-BqgEX-U71lD-0V1VX

A key that is 35 characters long or an empty string to open a window

Returncode

Returncode

Type Integer

Note

0

The Activation Key was successfully added to the license file

258

The Activation Key could not be read, possibly a wrong key

257

This Activation Key was already used

Other return codes

Operation failed, see list of return codes

Usage

Add a received Activation Key to the license file or open a dialog to let the user enter a needed key. Note: Only those keys with appropriate installation codes could be applied.

Sample

 

  iRes := lic.ApplyActivationKey(sTheNewKey);

  if iRes <> 0 then

  begin

    << an error occurred >>

     ...

  end

  else

  begin

    << everything is fine, continue >>

     ...

See also

ApplyActivationKeyForProject, ApplyInvisibleKey

 

 

See also
Format of a Key
Create Keys