Is there anyway I can use to destroy my deployed application at specific date?. How can I order the application to destroy itself at specific date after installation?. Say I deployed my C# application at PC1 today. After a specific date the application is deleted and removed off PC1 automatically (Installation folder removed). How can I do that?. If this is not possible, at least how can I prevent the user from using it anymore after specific date?.
Share
Probably the easiest way would be to securely encrypt the expiry date and store it to a config file (or registry). On startup decrypt the expiry date and check against current date. If you wanted to tamper proof it you could also encrypt the date/time the application was first installed, or last ran (to check that the date/time isn’t being fiddled, such as being manually adjusted prior to launching the application)
Automatically uninstalling is a tremendously bad idea though. I’d settle with just displaying a warning that the application has expired.