How about:
at startup, check if the first start time is stored somewhere in the registry (you chose a registry path of your own)
- if yes, calculate the elapsed time since that date
if expired --> exit
if not expired --> continue
- if no, set the current time in some registry variable --> continue
Regards
Andi
PS: this is the basics. You may chose to store the date somewhere else and/or to calculate some hash with the first date to make it harder to cheat...
PPS: We do not do your coding here. If you have a more specific problem we are glad to help you :-)
PPPS: Why do you repost that same question twice (
How to make software trial period ?[
^])? Beware of becoming reported as spammer = account locked!