If you are asking how to modify a software you have written so that it expires after a fixed number of days, just add some code to the system startup.
On startup, check an obscure and poorly labelled section of the windows registry for a specific key. If it does not exist, create it and store the current date in it. This should only happen the first time the software runs on a given machine.
On every startup after the first, checking for your new registry key will return the date that the software was installed. When this happens, don't update the value in the registry to the current date. Rather, compare the value with the current date and if more than your maximum number of days have gone by, display an expiration date and close down your application.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.