Licence Protector

UploadLic

Hide Navigation Pane

UploadLic

Previous topic Next topic  

UploadLic

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

This command allows you to upload a complete license file (including all hidden information) to the Activation Server. It can be downloaded with the command DownloadLic.

 

This command requires a license file which was opened using one of the Prepare commands.

 

Name

UploadLic                                                                                  

Purpose

 

Uploads the license file up to the Activation Server. To identify the license, a unique ID is necessary .

 

Params

Parameter

Type

Example

Note

Projectname

String

demo-easygo

Projekt Name configured in the project.config file on the Activation Server. If empty the internal project name of the license file is used

ModuleID

String

QHD001

module ID - If ModuleID is empty a CheckLicence call is used to locate the

Activation

ID

String

IV0078

unique ID to store the license file. Could be a customer ID or a Serial number. A value is mandatory

Name

String

default

name to identify the license file. One ID can store multiple files using different names like

default-backup-January2010
default-backup-February2010

Code

String

this is like a password string

ensures, that a file can only be downloaded when a password is provided in the DLL command DownloadLic. Should be maximum 40 characters.

bAllowCreateActivation

Boolean

true

True = Creates the license even if the unique ID does not exist on the Activation Server

False = Unique ID must exist on the Activation Server

Returncode

Returncode

Type Integer

Note

0

license file successfully uploaded

3001

The Activation Server was not reachable.

3002-3999

Errors on the Activation Server, see Activation Server error codes

Other return codes

Operation failed, see list of return codes

Usage

Used to upload a complete license to the Activation Server. It can be edited on the Activation Server and changes could be downloaded using the call DownloadLic.

Sample

 

  iRes := lic.UploadLic(‘’, ‘QHD001’, ‘IV0078’, ‘Default’, ‘mypassword76R§’,false);

 

if iRes = 0 then

begin

<< Licence successfully uploaded for editing on the Activation Server >>

...

end
 

else if iRes = 3001 then

begin

<< Activation Server could not be reached, please check connection >>

...

end

else

begin

<< other errors >>>

...

   

See also

DownloadLic, WebRegisterEXT