Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can I extend/reset the trial period for a customer?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Infralution Support Forum Index -> Licensing FAQ
View previous topic :: View next topic  
Author Message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sun Jan 15, 2006 9:39 pm    Post subject: Can I extend/reset the trial period for a customer? Reply with quote

Probably the easiest way to handle this is to provide a separate small utility to customers that you wish to provide an extension to, that allows a one time reset of their evaluation period. The program below shows how to do this:

Code:
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Infralution.Licensing;
namespace ResetEvaluation
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            EvaluationMonitor resetMonitor = new RegistryEvaluationMonitor("MyResetPassword");
            try
            {
                if (resetMonitor.UsageCount <= 1)
                {
                    EvaluationMonitor appMonitor = new RegistryEvaluationMonitor("MyEvaluationPassword");
                    appMonitor.Reset(false);
                    MessageBox.Show("The evaluation period has been reset", "Reset Evaluation");
                }
                else
                {
                    MessageBox.Show("The evaluation period has already been reset", "Reset Evaluation",
                                    MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                }
            }
            catch (Exception)
            {
                MessageBox.Show("An error occurred while resetting the evaluation", "Reset Evaluation");
            }
 
        }
    }
}


The resetMonitor prevents the customer running this program more than once. You should change "MyResetPassword" to a new password unique to you and change "MyEvaluationPassword" to match the evaluation product id you use in your application.

An alternative approach if you are using Authenticated Licensing (Version 5.8 or later) is to issue a time limited License Key. You can create an Evaluation in License Tracker and then issue a license key and set the Expiry Date
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Infralution Support Forum Index -> Licensing FAQ All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group