I have made a demo small program that I want to deliver to my client so that he can run it for 5 times to check its functionality. It is not a big software for which I implement some serial-key functionality and make a trial software.
I want a simple solution which can restrict the use of the program more than 5 times or which can delete itself after its threshold limit.
One solution came in my mind. I make 4 .txt files through the same program and store them at diff. locations on the client computer and these files will store the number of times the program has been run. Each time the application starts, it checks all those files and if any file contain the number representing the threshold limit, it simply exit by saying that the threshold limit has been reached.
Is there any other more better solution, yet simple, to restrict the client from using it various times?
It would be even more better if the program gets deleted after its threshold limit.