Reading and writing dates to the registry for trial version purposes.
- by LeeW
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