This code demonstrates some techniques you can use to create a demo or shareware version of your app, based on the installation date and/or how many times the program has run.
It features a copy protection: the user sends you a code, and you pass him a registration code to unlock the app, making it a "full" version.