问题
This question already has an answer here:
- Create an application that will expire after a trial period [duplicate] 5 answers
how to create trial period setup file for 30 days of my c# windows application?
回答1:
Making C# application a 30 day trial version
http://www.dotnetspider.com/forum/130150-Making-C-application-day-trial-version.aspx
How to add more functionality in setup file? - C#
http://www.daniweb.com/forums/thread226490.html
回答2:
One possible solution is to use the registry and write there in some key the installation date. This step is done in the installation time/ first time the application is in use. Then periodically check the current date against the installation date.
You can take also these references:
http://www.codeproject.com/KB/cs/Trial_Maker.aspx
http://trial.qarchive.org/
Using .Net built-in classes
来源:https://stackoverflow.com/questions/3625825/how-can-i-make-my-application-have-a-30-day-trial-period