Hello,
A simple protection it's by creating a file with a strange name on c:\windows. In this file you put the installation date and then every time you run the .exe, the first thing that you do it's checking how many days passed. If the TotalDays > 5 then exit.
All depends on the level of protection.
Other ideas are:
- use one entry on the registry
- verify if the user changes the clock (if don't do that he can always move back and use it)
If you wanna prevent the user rewind the clock, when you create the file with initialDate, create another with currentDate. Then every time you run the exe you verify this date. If the user moved back this date you exit the program. If this value it's greater than the older you should update.
Software developer
www.mcm-electronics.com
PORTUGAL