Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating trial version of .NET app

Status
Not open for further replies.

mg712

Programmer
Aug 5, 2003
8
US
How would I go about creating a 30 day trial version of my application? Is there anything in the framework to support this? Thanks for any info.
 
I would have the first run of the program (or even the installation, containing the file) create an encrypted file with the timestamp in it. Then, test upon starting the program for the difference of 30 days between the file's time and your time. If >30, end the program with a "Register Me!" message.

Security for this could be a doozie. How do you know the file's valid? Probably using the last modified time for the file, you could create some sort of test...

Ben

There's no place like 127.0.0.1.
 
Take a look at the LicenseManager class in the framework. You are able to create a custom license provider that looks at your .lic file to see when it should expire.

The default .lic file format isn't secure (nowhere near it!), so you need to write your own LicenseProvider class to read an encrypted .lic file. I think there is a sample, too.

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top