The best thing you can do is as follows:
Have an encrypted string of the installation date in some ini file or in some registry.
Check the date at the time of launching and see if the trial period is valid.
If valid allow the user to use the application.
Also you can have some thing like the amount of days after which trial period expires also in the registry/ini and so you can allow multiple trials for the software before they purchase.