Show/Hide Toolbars

Licence Protector 5

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

 

This command requires a license file which was opened using one of the Prepare commands. A good idea is to upload a license file directly after an activation was done (see GetActionsOfLastPrepareAndCheck).

 

Name

UploadLic                                                                                  

Purpose

 

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

 

Params

Parameter

Type

Example

Note

Projectname

String

demo-easygo

Projekt Name. 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

If the name field is empty then the name: default is used

Encryption 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 6

False = Unique ID must exist on the Activation Server 6

Returncode

Returncode

Type Integer

Note

0

license file successfully uploaded

3001

The Activation Server 6 was not reachable.

3002-3999

Errors on the Activation Server 6, see Activation Server 6 error codes

4101

Field ID is empty

Other return codes

Operation failed, see list of return codes

Usage

Used to upload a complete license to the Activation Server 6. It can be edited on the Activation Server 6 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 6 >>

...

end
 

else if iRes = 3001 then

begin

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

...

end

else

begin

<< other errors >>>

...

   

See also

DownloadLic, WebRegisterEXT

 

The following values in the project.config file on the Activation Server 6 are important for the license file upload:

 

LvsDefaultName

LvsOverwriteServerChanges

MultipleLVS

 

 

The date of the last successful file upload is displayed in the License Viewer