Licensing with Year Mode and Compatibility

Licensing with year mode is a major improvement to the ElecKey system. It enables the licensing system to support multi-year period limit, up to 31 years. However, it is not backward compatible. The following describes the details, including compatibility information.

Period Limit

You can set the period limit when you want to protect and distribute your application as a time-based license. The period limit is available two modes:

 

·         Day. The Day mode refers to MaxDay of Key Properties, which specifies the maximum number of days allowed (1 to 998).

·         Year. The Year mode refers to MaxYear of Key Properties, which specifies the maximum number of years allowed (1 to 31), given that one year is equal to 365 days.

 

The licensing system uses MaxDay and MaxYear to calculate the period limit in days, or called MaxDayPeriod as:

 

            MaxDayPeriod = MaxDay + (MaxYear * 365)

 

From the above formula, when using the Year mode, you can also specify MaxDay as the remaining days of a year (0 to 364). The table below summarizes the use of MaxDay, MaxYear, and the result in MaxDayPeriod. 

 

Mode

MaxDay

MaxYear

MaxDayPeriod

Period Limit

N/A

0

0

0

Not used

Day

1 - 998

0

1 - 998

Number of days

Day

999

0

-1

Unlimited

Year

0 - 364

1 - 31

1 - 11679

Number of years, plus the remaining days of a year

 

note NOTE: In the KeyCheck Class Library, .NET Component, and ActiveX, the new property MaxDayPeriod, DayCountPeriod, and DayLeftPeriod are provided, which use the same formula as follows.

MaxDayPeriod = MaxDay + (MaxYear * 365)

DayCountPeriod = DayCount + (YearCount * 365)

DayLeftPeriod = DayLeft + (YearLeft * 365)

It is recommended to use the above properties when refer to the period limit, instead of using MaxDay, DayCount, and DayLeft. For more details, see the KeyCheck API Reference.

Compatibility

Licensing with year mode was first introduced in ElecKey version 2.0.8.20. Since it is not backward compatible, to use this feature, you must update and deploy ElecKey version 2.0.8.20 or higher to your system, including the protected application, KeyCheck API, LicenseGen SDK, and Activation Server. The table below lists the files that must be updated.

 

File

Version

Description

System Files:

Ekc3220.dll

2.0.8.20

System file for 32-bit Windows Applications

Ekc6420.dll

2.0.8.20

System file for 64-bit Windows  Applications

Ekc1620.dll

2.0.8.20

System file for 16-bit Windows Applications

Ekc3220M.dll

2.0.8.20

System file for Windows Mobile Applications

Ekag20nt.exe

2.0.8.20

Local Key agent for Windows NT-based

Nkag20.exe

2.0.8.20

Network Key agent

Mkag20.exe

2.0.8.20

Mobile Key agent

Ekag20.exe

2.0.8.20

Local Key agent for legacy Windows

Activation Server and LicenseGen SDK:

Activation Manager

2.0.8.20

Activation Manager web application

LKGAsm2.dll

2.0.8.20

LKG .NET DLL

Lkgl3220.dll

2.0.8.20

LKG DLL for 32-bit Windows

Lkgl6420.dll

2.0.8.20

LKG DLL for 64-bit Windows

NetKey License Server:

NKLS40EK.exe

4.0.8.20

NetKey License Server

NetKey Manager .NET Component  (To be recompiled with application):

Nrm.Comp.dll

2.0.8.20

NetKeyManager.NET Component

KeyCheck Class Library (To be recompiled with application):

All KeyCheck class library files

2.0.8.20

KeyCheck class library for any languages

KeyCheck .NET Component (To be recompiled with application):

Ekc.Comp.dll

2.0.8.20

KeyCheck .NET Component

Ekccf2_0.Comp.dll

2.0.8.20

KeyCheck .NET CF Component

Ekccf3_5.Comp.dll

2.0.8.20

KeyCheck .NET CF Component

KeyCheck ActiveX:

Ekas20.exe

2.0.8.20

Local Key ActiveX

Nkas20.exe

2.0.8.20

Network Key ActiveX

KeyCheck SDK for macOS (To be recompiled with application):

KeyCheck SDK for Mac

2.0.8.20

Keycheck SDK for macOS

HTML Dialog Box (Generated by ElecKey Integrator V 2.0.8.20 up):

All HTML files

2.0.8.20

HTML file for HTML Dialog Box

Utilities (Generated by ElecKey system V 2.0.8.20 up):

UKMake20.exe

2.0.8.20

USB LicenseKey Maker

 

note NOTE: The Year mode licensing feature does not support DOS applications.