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 

Resetting DaysInUse

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
brettr



Joined: 09 Apr 2007
Posts: 16

PostPosted: Thu Jul 19, 2007 6:35 pm    Post subject: Resetting DaysInUse Reply with quote

I have deleted the license file for my winform app, which reverts it to trial mode. However, EvaluationMonitor.DaysInUse doesn't reset. Is there a way to set it back to zero?
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Jul 19, 2007 10:19 pm    Post subject: Reply with quote

To reset the evaluation period you need to call the EvaluationMonitor class Reset method. You can either do this from within your application (say when the user enters a special license key) or by writing a simple command line app that creates an EvaluationMonitor instance (with the same password as your app) and then calls Reset.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
brettr



Joined: 09 Apr 2007
Posts: 16

PostPosted: Thu Jul 19, 2007 11:25 pm    Post subject: Reply with quote

Thanks. Is there a recommended method for setting a value to the DaysInUse? This is helpful for surpassing the trial period? DaysInUse and FirstUseDate are both read only.
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Fri Jul 20, 2007 7:43 am    Post subject: Reply with quote

The easiest way is to change your system clock forward and then run your application. Since the EvaluationMonitor stores the date at which the application was run and calculates the days in use based on the system clock.

Note that if you change your clock forward and run your app, then change it back again and run your app again the EvaluationMonitor.Invalid flag will be set to true - because EvaluationMonitor will have detected potential clock winding (ie normally this indicates an attempt by a user to extend their evaluation by setting their system clock back to a date when the evaluation period was still valid). To enable your app to run again after this you need to call EvaluationMonitor.Reset to reset the evaluation data.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support 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