Licence Protector

DeactivateModule

Hide Navigation Pane

DeactivateModule

Previous topic Next topic  

DeactivateModule

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

 

 

Command to make an online deactivation of a module and upload a license file. It will always connect to the Activation Server, upload the license file (if specified), lock the license on the server and lock the license in the local license file.

 

 

Name

DeactivateModule                                                                              

Purpose

Contacts the Licence Protector Web Activation server to validate a license. This function has to be used to implement “Moving licenses” and ongoing checks (“renting your software”).

Params

Parameter

Type

Example

Note

Projectname

String

Demo Project

projectname, if empty the internal projectname of the license file is used – identifies the project on the Web Activation Server

Module ID

String

QHD001

ModuleID – identifies the module

ID

String

yuGEI-5EPc3-9E7Il-3tI8X-7QU5k-6h14R

Identifier which is used to check and register this activation. Should be a unique ID like Serial Number, Invoice Number

SendLicData

Boolean

True

If set to true, the license file is uploaded to the Activation Server

LVSName

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 is also used with the commands UploadLic, DownloadLic. Should be maximum 40 characters.

Returncode

Returncode

Type Integer

Note

0

DeactivateModule was successful

3001

The Activation Server was not reachable.

3015

That ID could not be found in the database

3030

The deactivation failed on the Activation Server

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 validate the license.

Sample

 

  iRes := lic.Module(‘’, ‘QHD001’, ‘yuGEI-5EPc3-9E7Il-3tI8X-7QU5k-6h14R’,true, true,'default','this is like a password string');

  if iRes = 0 then

  begin

    << license successfully validated >>

     ...

  end

  else if iRes = 3001 then

  begin

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

     ...

  end

  else if iRes = 3010 then

  begin

    << that license is already in usage. First transfer the license from the other PC to use it on this PC >>

     ...

  end

  else if iRes = 3018 then

  begin

    << that license is locked on the Activation Server.>>

     ...

  end

  else

  begin

    << other errors >>>

     ...

   

See also

licenseVerification, NextVerification, Deactivatelicense, SetVerificationID, SetVerificationProduct, WebServiceURL, ShowWAStartPage, ShowWAProgressPage, ShowWAResultPage, UseLocalProxy, UseLocalIEProxy, LocalProxyServer, LocalProxyPort, Projectname