Reading and writing dates to the registry for trial version purposes.

Posted by LeeW on Stack Overflow See other posts from Stack Overflow or by LeeW
Published on 2010-05-16T12:06:04Z Indexed on 2010/05/16 12:10 UTC
Read the original article Hit count: 220

Filed under:
|

Hi all,

Here's what I want to do, I want to store the date the first time the program is installed and also store a date when was the program was last run. I want the code to check to see if it was more than 30 days since the installation so I can turn off features. I also want to check if the system date is less than the last opened date and if so write the installed date to 1/1/1901 to prevent the program from running.

Keeping in mind that this is not a consumer program but a business program I don't expect hackers to crack it, they may do but that is fine I simply want to give potential customers a reason to consider purchasing the program and the end of the trial will prompt this.

1: Does this sound reasonable? 2: How should I hide the fact this is a date so it's not easily changed?

Many thanks Lee

© Stack Overflow or respective owner

Related posts about registry

Related posts about c#