Create "Date" Registry Key

Joined
Jun 18, 2006
Messages
23
Programming Experience
3-5
How would I create a registry key at install time that records the date and time of the install so that I can limit the user's use of the app to say 30 or 60 days? Like trial software?
 
You can probably do this with a MSI installer, not with ClickOnce. Wouldn't it be more fair to start counting when user start application for the first time? You have to check this registry key at application startup anyway, so you just add the case if key don't exist you add it else if it exist you check the timespan.
 
Also, don't just store a raw date. It's then too easy for the user to change it. You should place the value under a key that doesn't identify your application in any way, name the value something that doesn't indicate what it's for and store the date in an encrypted form.
 
This question is unrealted to Windows Forms. It could have been placed in any of several other forums comfortably but definitely not Windows Forms. Please post in the most appropriate forum.

Moved.
 
Back
Top