Write a registry key during your installation. The key will contain the date of the installation. The date in the registry key must be encrypted.
When your application is started, check for the existence of this registry key. If it does not exist close the application else decrypt the date, check the trial period and close the application if the trial is over.