Licence Protector

ResetGlobalRunNo

Hide Navigation Pane

ResetGlobalRunNo

Previous topic Next topic No directory for this topic  

ResetGlobalRunNo

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

 

Name

ResetGlobalRunNo                                                                                

Purpose

Sets the Run Number in the license file and therefore resets the whole installation.

Params

Parameter

Type

Example

Note

RunNumber

Integer

0

Run Number to set.

ResetDays

Integer

2

Number of days beginning from today, an application’s local Run Number is reset

Returncode

Returncode

Type Integer

Note

0

Total Run Number was successfully set

Other return codes

Operation failed, see list of return codes

Usage

Set the Run Number in the license file and allows all installations that use this license file to be locally reset during the defined amount of days. Can be used to allow a reinstallation.

Sample

 

  iRes := lic.ResetGlobalRunNo(0, 5);

  if iRes <> 0 then

  begin

    << an error occurred >>

     ...

  end

  else

  begin

    << everything is fine, continue >>

     ...

See also

TamperDetection, licenseTampered, RemoveLocalRunNo, ResetGlobalRunNo

 

You have to disable the license testing first (StopConcurrentUsage) before you use this command.