The trial limit allows you to configure trials into your licenses and your app. In general, the trial limit is generally used in conjunction with the time limit. The first one indicates that the license is a trial and the second the timing the trial is valid.
There are two types of trials:
With unverified trials the users can start using your app immediately without having to check first with the LicenseSpot servers while with verified trials the user has to activate the serial number with the LicenseSpot verifying the application.
In both cases, LicenseSpot provides tamper protection so the user cannot change the trial dates and you can also extend the dates on both.
With unverified trials, all of the trial validation occurs on the client side and the LicenseSpot activation servers are never contacted. In LicenseSpot, unverified trials are configured using the Time limit with the from first use option and the Trial limit.
The benefits of unverified trials is that the customer can start using your application right away after downloading it. It doesn’t even need Internet access.
The downside of unverified trials is that the user can reset it by simply finding and deleting some local files.
To do this, you’ll need to create a license template that has a Time limit configured:
Use the Validate() method in IPManager to validate the license is valid. Internally, IPManager will keep track of the time remaining and will automatically fail after the time has passed.
To actually extend the trial for an unverified trial you’ll just need to create a new license in LicenseSpot with the unverified template and extend the number days on the new license. For example, if the original license is 30 days, this newly created license can be 60 days.
Because this whole process is offline, you’ll need to download the newly created license and somehow deliver it to the end user like for example using email. The end user will then copy this license in the same directory as the previous one and replace it. The app will automatically continue working.
With verified trials the customer activates the trial license with the LicenseSpot server.
The benefits to verified trials: are that the customer can’t reset the trial.
The downside to verified trials is that every potential customer must get a serial number to actually activate the trial.
This is how you configure a verified trial in LicenseSpot:
Use the IsGenuineEx() method in IPManager to validate that trial is valid. It’ll also validate every 90 days by default the license against the LicenseSpot server.
The TrialRemainingDays() will indicate how many days are left in the trial.
The IsTrial property will indicate if the product or license is a trial.
Below is a simple example showing how to implement verified trials in your app.
C#
ExtendedLicense license = ExtendedLicenseManager.GetLicense(typeof(Form1), this,"PUBLIC_KEY"); //paste your public key from Key Pairsif (!license.IsEmpty) { if (license.IsTrial) { bool stillInTrial = license.Validate(); if (!stillInTrial) { //The trial expired } else { //The trial is still valid } }}else { //There's no license in this installation}
VB.NET
Dim license as ExtendedLicenselicense = ExtendedLicenseManager.GetLicense(Me.GetType(), Me, "your public key")If (Not license.IsEmpty) Then If (license.IsTrial) Then Dim stillInTrial As Boolean = license.Validate() If (Not stillInTrial) Then 'The trial expired Else 'The trial is still valid End If End IfElse 'There's no license in this installationEnd If
Morbi quam odio, ultrices a libero sit amet, lacinia commodo quam. Curabitur sodales ornare ex, eu sodales elit venenatis non.
Morbi quam odio, ultrices a libero sit amet, lacinia commodo quam. Curabitur sodales ornare ex, eu sodales elit venenatis non.
Morbi quam odio, ultrices a libero sit amet, lacinia commodo quam. Curabitur sodales ornare ex, eu sodales elit venenatis non.
Morbi quam odio, ultrices a libero sit amet, lacinia commodo quam. Curabitur sodales ornare ex, eu sodales elit venenatis non.
Morbi quam odio, ultrices a libero sit amet, lacinia commodo quam. Curabitur sodales ornare ex, eu sodales elit venenatis non.
Morbi quam odio, ultrices a libero sit amet, lacinia commodo quam. Curabitur sodales ornare ex, eu sodales elit venenatis non.