1
One simple solution could be to use a cloud web service to maintain the trial dates and licence validation. When the application is first installed you write the serial number and expiry date (Valid licence or trial version) via a web service on a cloud store. Now each time the app runs, make a call via that web service and validate the dates (current date and expiry date) from the cloud and also the serial number. Hence, any changes made on the local machine will have no affect on the application's licence or expiry date.