I don't know how much your software costs and which license model you will use.
For low price, buy and use for ever software I prefer to write a key into the registry, when the software starts the first time and setting the date. Next start will check this key. This key will not be removed by uninstalling the product so this prevents using the software by installing again after trial period. Use a key and values which are not easily found by regedit. An advanced user will export the registry before installation, after installation and after first use so he is able to detect your mechanism. For a licensed version send your customer a reg file with a date far in the future or a special invalid date.
For high price software we use dongles from www.wibu.de
. They allow updateing the data local or over internet. So you can allow different trial periods, pay per year, pay per usage licensing models.
Waldemar
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions