I created a basic Windows Form application. I want to make my program uninstall after the date I selected.
In particular, when someone clicks on .exe to start it, and if it is after a certain date, .exe will be deleted. Is it possible? If so, how do I do this?
I think my code would look something like this:
DateTime expiration = new DateTime(2013, 10, 31) //Oct. 31, 2013 If (DateTime.Today > expiration) { //command to self-delete } else { //proceed normally }
source share