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...
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.