I have an application (C#) and I am tasked with putting some simple licensing scheme in it. While doing that I need to save that information somewhere in computer to limit the usage.
I need to save a date and a counter.
How and where I should save the information which, on Windows Vista, doesnt require administrative privileges to run? (Which means saving it in System32, Program Files, HKEY_LOCAL_MACHINE is not an option.)
Please do not flood the answers with "don't do it" or "it will be cracked anyway". I do understand those logics. I just need to do anything best that can be done for this purpose.
Consider using a third-party licensing component, such as XHEO - there's no need to reinvent the wheel.
If you are still required to write your own license system, consider using the user's profile directories or the HKEY_CURRENT_USER
branch.