Command no longer in use

 

Replaced with command DeactivateModule

 

 

Name

DeactivateLicence                                                                                  

Purpose

Contacts the Licence Protector Web Activation server to deactivate a license and therefore allow another computer to use that license. This function has to be used to implement “Moving licenses”.

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

ID

String

Abc

Identifier which is used to check and deactivate this license

Returncode

Returncode

Type Integer

Note

0

CheckLicence successful: The online-Validation succeeded or it was not necessary to check the state online

3001

The Web Activation Server was not reachable.

3015

That ID could not be found in the database

3030

The deactivation failed on the Web Activation server.

3002-3999

Errors on the Web Activation Server, see Web Activation Documentation

Other return codes

Operation failed, see list of return codes

Usage

Used to transfer a license.

Sample

 

  iRes := lic.Deactivatelicense(‘’, ‘abc4711’);

  if iRes = 0 then

  begin

    << license successfully transfered >>

     ...

  end

  else if iRes = 3001 then

  begin

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

     ...

  end

  else if iRes = 3015 then

  begin

    << that license was not validated before >>

     ...

  end

  else if iRes = 3030 then

  begin

    << that license can not be deactivated.>>

     ...

  end

  else

  begin

    << other errors >>>

     ...

   

See also

CheckLicence, licenseVerification, NextVerification, WebServiceURL, ShowWAStartPage, ShowWAProgressPage, ShowWAResultPage, UseLocalProxy, UseLocalIEProxy, LocalProxyServer, LocalProxyPort, Projectname