Click here to Skip to main content
15,906,558 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would like to have the visual studio 2010 installer write the installation date to the registry. How would I do that?
Posted
Updated 12-Apr-12 12:29pm
v2

Does it have to be the date it was installed, or would it be good enough if it was the first time the progarm was run?

There's a code project article on reading/writing the registry from C#:

http://www.codeproject.com/Articles/3389/Read-write-and-delete-from-registry-with-C

If you just check for the existence of your registry value when the program starts up, and set it to the current time/date if it isn't there, then you can do it all in one place at the start of your program.

If you have to do it at install time, then you are going to have to have the installer write the value into the registry when it runs. How you do that is going to depend on what you are using for installation.
 
Share this answer
 
Does this CP-Article[^] help you?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900