I have created a program with a 30 day trial period in VB.Net. The program saves the time in the registry that the program was first launched and also the time is was used last. From that I calculate if the trial is still valid.
The problem is, the only place in the registry that a non-admin user can access is the HKEY_LOCAL_USER key. I need to implement the trial for all users, otherwise a user can just use a new account and that would reset the trial.
Where can I save this information so that a user without admin rights can read and write from that location? I also want to save it in a place that the average user can’t find too easily and delete the file that would reset the trial.
Thanks
My problem was actually where to save data that all users can access (read and write).
In Win 7 this can get tricky. I found this article on code project that explains how this can be achieved for folders.
I then read a file and save values in the registry as suggested by Kenny above.
If somebody has a better method, please share it.