Add the key decrytor在您的产品中,从用户输入获取密钥后,将try生成相同的(哈希?)密钥并将该哈希与解密器算法进行比较。
查看this http://www.dreamincode.net/forums/index.php?showtopic=137990 and this http://www.vijaymukhi.com/documents/books/vsnet/chap4.htm使用SerialNumberTemplate在安装过程中获取序列号。
--EDIT--
您可以通过以下方式记下时间:
The 安装日期: 创建一个自定义操作 http://msdn.microsoft.com/en-us/library/d9k65z2d.aspx#Mtps_DropDownFilterText在您的视觉工作室设置项目中;并添加注册表项Install覆盖方法。
The 从第一次运行开始的日期: Use DateTime.Now.Date获取当前日期并将其加密/保存在某处,可能是注册表 http://msdn.microsoft.com/en-us/library/h5e7chcf.aspx.