|
Ralf Maximus
|
 |
« on: October 26, 2007, 11:26:41 AM » |
|
Ever wonder when your copy of Windows was installed? Me neither.
But, today I was poking around in the registry and stumbled across this key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\InstallDate
Which is a dword value holding the number of seconds since that fateful day you reinstalled windows last. (Actually, an offset from 12 midnight, 1/1/1970.)
So naturally I had to write a little applet to pull the value and display it in an easy-to-read format. As a bonus, you get a real-time update, for those of us with compulsive disorders.
Please download your copy today, and report back the oldest living Windows installation. The winner will get a hearty thumbs-up and a stern reminder to knock-on-wood.
Thanks, Ralf
PS... Is there a forum better suited for posting goofy self-written goodies like this? If so, feel free to move it, forum gods.
UPDATE #1: Edited the reg key for accuracy. D'oh! UPDATE #2: Edited description of what the dword stores. Feh. UPDATE #3: New 1.1 version has Windows uptime display.
|
|
|
« Last Edit: October 26, 2007, 03:01:26 PM by Ralf Maximus »
|
Logged
|
|
|
|
|
jgpaiva
|
 |
« Reply #1 on: October 26, 2007, 11:35:25 AM » |
|
Fun idea, Ralf!!! That gave me an idea: Let's see who has the older instalation of XP! Mine has 6 months, 27 days and 6 hours 
|
|
|
|
|
Logged
|
|
|
|
|
nudone
|
 |
« Reply #2 on: October 26, 2007, 11:42:49 AM » |
|
alive for 2 years, 10 months, 16 days, 24h 5m 48s. which must the longest i've ever gone without reinstalling or resorting to a ghost image.
i imagine 2 years 10 months is going to be miniscule compared to some forum members i can think of...
|
|
|
|
|
Logged
|
|
|
|
|
|
PhilB66
|
 |
« Reply #3 on: October 26, 2007, 11:54:56 AM » |
|
Cool. 2/17/2006 9:34:43 AM... now you do the math.
|
|
|
|
|
Logged
|
|
|
|
|
wolf.b
|
 |
« Reply #4 on: October 26, 2007, 01:05:27 PM » |
|
 No, not really ... 
|
|
|
|
|
Logged
|
Schön wär's, wenn's schön wär!
|
|
|
|
mouser
|
 |
« Reply #5 on: October 26, 2007, 01:37:36 PM » |
|
fun 
|
|
|
|
|
Logged
|
|
|
|
|
cranioscopical
|
 |
« Reply #6 on: October 26, 2007, 01:39:12 PM » |
|
Neat toy, Ralf!
On the machine I'm at right now, 2 years, 7 months etc.
|
|
|
|
|
Logged
|
Chris
|
|
|
|
nite_monkey
|
 |
« Reply #7 on: October 26, 2007, 02:31:09 PM » |
|
if you want to get the install date and the current running time, then open a command prompt, and type in systeminfo
|
|
|
|
|
Logged
|
[Insert really cool signature here]
|
|
|
|
Ralf Maximus
|
 |
« Reply #8 on: October 26, 2007, 02:40:09 PM » |
|
Actually, systeminfo|find /i "install date" is nicer.
And in my original post above, I incorrectly described what's stored in the InstallDate key. It's actually an offset (in seconds) from midnight on 1/1/1970. My app reports the value correctly; I just described it wrong.
And I have a terrifyingly old Windows machine here (my mailserver) that I've run the thingie on... I'll post its results after awhile and see how many people believe it. :-)
|
|
|
|
« Last Edit: October 26, 2007, 02:43:28 PM by Ralf Maximus »
|
Logged
|
|
|
|
|
nudone
|
 |
« Reply #9 on: October 26, 2007, 02:51:57 PM » |
|
could it be modified to include how long the machine has been running?
i.e. without being rebooted.
|
|
|
|
|
Logged
|
|
|
|
|
Ralf Maximus
|
 |
« Reply #10 on: October 26, 2007, 02:59:10 PM » |
|
could it be modified to include how long the machine has been running?
i.e. without being rebooted.
Bing! Your request has been granted.
|
|
|
|
Logged
|
|
|
|
|
nudone
|
 |
« Reply #11 on: October 26, 2007, 03:31:31 PM » |
|
excellent 
|
|
|
|
|
Logged
|
|
|
|
|
Armando
|
 |
« Reply #12 on: October 27, 2007, 02:15:21 AM » |
|
fun little program.
1 year 4 months 13 days, 2h26m. (almost since I bought my laptop, basically)
|
|
|
|
|
Logged
|
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it." Glenn Gould
|
|
|
|
f0dder
|
 |
« Reply #13 on: October 27, 2007, 03:46:47 AM » |
|
9 months and 24 days... this install is getting old  Btw, what do you use to get running time? GetTickCount() or performance counters? GetTickCount() isn't reliable 
|
|
|
|
|
Logged
|
 - carpe noctem
|
|
|
|
|
|
nudone
|
 |
« Reply #15 on: October 27, 2007, 07:47:46 AM » |
|
cheat! cheat!
|
|
|
|
|
Logged
|
|
|
|
|
nosh
|
 |
« Reply #16 on: October 27, 2007, 08:38:36 AM » |
|
No, really! Cross my heart and all that... My Windows installs would probably average less than 6 months before I started using imaging software. The current image has been built on + backed up + restored over 20 times since the initial install 
|
|
|
|
|
Logged
|
|
|
|
|
Darwin
|
 |
« Reply #17 on: October 27, 2007, 09:34:55 AM » |
|
Ever wonder when your copy of Windows was installed? Me neither.
 
|
|
|
|
|
Logged
|
"Some people have a way with words, other people,... oh... have not way" - Steve Martin
|
|
|
|
Darwin
|
 |
« Reply #18 on: October 27, 2007, 09:36:02 AM » |
|
PS I also credit drive imaging to my windows installation's longevity (compared to Win 9x installs, anyway).
|
|
|
|
|
Logged
|
"Some people have a way with words, other people,... oh... have not way" - Steve Martin
|
|
|
|
Armando
|
 |
« Reply #19 on: October 27, 2007, 10:22:33 AM » |
|
PS I also credit drive imaging to my windows installation's longevity (compared to Win 9x installs, anyway).
Who wouldn't... Is it really possible to mess with windows without relying on some kind of safety net? 
|
|
|
|
« Last Edit: October 27, 2007, 04:29:54 PM by Armando »
|
Logged
|
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it." Glenn Gould
|
|
|
|
nite_monkey
|
 |
« Reply #20 on: October 27, 2007, 03:14:35 PM » |
|
so where exactly is this program getting its information? I installed my windows os this year, and it said I installed it in 2005
|
|
|
|
|
Logged
|
[Insert really cool signature here]
|
|
|
|
Ralf Maximus
|
 |
« Reply #21 on: October 27, 2007, 03:20:03 PM » |
|
so where exactly is this program getting its information? I installed my windows os this year, and it said I installed it in 2005
Check the original post -- the registry key holding the data is described there. Dunno why yours is reporting something different. What OS are you running? Vista? If you want, fire up rededit.exe and look at the InstallDate key. What's it say?
|
|
|
|
|
Logged
|
|
|
|
|
brett
|
 |
« Reply #22 on: October 27, 2007, 05:45:23 PM » |
|
This is my work PC, I try to take care of this machine.  Which by my standard is impressive, because my home machine gets trashed regularly.
|
|
|
|
|
Logged
|
|
|
|
|
Ralf Maximus
|
 |
« Reply #23 on: October 27, 2007, 06:02:36 PM » |
|
Holy mother of dog! That's impressive. Beats my mail server (see attached).
And what on earth were you doing installing Windows at 6 in the morning? Unless you were up all night trashing it, that's just unnatural...
|
|
|
|
Logged
|
|
|
|
|
|
|