Licence Protector

DownloadLic

Hide Navigation Pane

DownloadLic

Previous topic Next topic  

DownloadLic

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

This command allows you to download a complete license file (including all hidden information) from the Activation Server. It can be  uploaded with the command UploadLic.

 

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

 

 

Name

DownloadLic                                                                                  

Purpose

Downloads the license file from to the Activation Server. A unique ID is necessary to store the license file on the Activation Server. If the ID already exists, the data is overwritten.

Params

Parameter

Type

Example

Note

Projectname

String

demo-easygo

Project 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

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. The password has to be set with the command UploadLic. Should be maximum 40 characters.

DownloadFull

Boolean

true

If true, the complete license file is downloaded. Otherwise only the

changes made on the Activation Server are downloaded and updated in the local license file

Returncode

Returncode

Type Integer

Note

0

license file successfully downloaded

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 download a complete license file or only modifications. The license file can be edited on the Activation Server  and the file has first to be uploaded using the command UploadLic.

Sample

 

  iRes := lic.DownloadLic(‘’, ‘QHD001’, ‘IV0078’, ‘Default’, ‘mypassword76R§",true);

 

if iRes = 0 then

begin

<< Licence successfully downloaded >>

...

end
 

else if iRes = 3001 then

begin

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

...

end

else

begin

<< other errors >>>

...

   

See also

UploadLic, WebRegisterEXT

 

 

User or PC names stored in the license file, are not downloaded. This is to ensure that the file can be downloaded on a new PC
The hardware ID of the PC, which uploaded the file, is replaced with the hardware ID of the PC, which downloads the file

 
 

Example

PC A has copy protection turned on with code 2 = 170D9F7C
PC B downloads the file. Copy protection code 2 is turned on but with the hardware ID of PC B = 180A9B6A