Click here to Skip to main content
15,905,967 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
See more:
Dear friend
could you please help me to findout setting expiry date for a software.
when each day when the software run that day should be deducted from the limited days.
hope u will help me
Posted

You can store the encrypted installed date and use the LicenseManager class to implement the validating logic.

http://msdn.microsoft.com/en-us/library/system.componentmodel.licensemanager.aspx[^]

License Manager class provides a template to implement license logic.

Or you can use the ready made solutions available as Walterhevedeich informed.
 
Share this answer
 
Comments
Sandeep Mewara 27-Apr-11 12:07pm    
My 5!
Albin Abel 27-Apr-11 12:14pm    
Thanks Sandeep. I given this information after OP accepted Walter's answer. Just to inform the way for a custom license managing. Software cracking is a continuing story and so far ready made solutions are cracked. So when OP thinks of implementing his own way this information is a little help for him. Thanks for your voting
Sandeep Mewara 27-Apr-11 12:17pm    
Thats ok. It's a good info and that matters and deserves credit. :)
walterhevedeich 29-Apr-11 4:39am    
Interesting. My 5. One question though, how does the LicenseManager validates the encrypted installed date when the user changed the system date/time? Im just curious about this one because I tried changing the system date on one of my virtual boxes just to avoid the expiration of the trial software(not sure if it was also using LicenseManager) I installed. Luckily, it worked, seemed like it was basing its validation on the installed date alone. :)
You may want to read this article in CP.

Application Trial Maker[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900