Welcome Guest.   Make a donation to an author on the site October 23, 2014, 01:43:18 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2010! Download 24 custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1] 2 3 4 Next   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Windows Install Date Thingie: I made it!  (Read 50457 times)
Ralf Maximus
Supporting Member
**
Posts: 927



View Profile Read user's biography. Give some DonationCredits to this forum member
« 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.

* WindowsInstallDate.zip (14.82 KB - downloaded 1845 times.)

* Oh oh oh oh Staying Alive.jpg (21.67 KB, 426x148 - viewed 813 times.)
« Last Edit: October 26, 2007, 03:01:26 PM by Ralf Maximus » Logged
jgpaiva
Global Moderator
*****
Posts: 4,710



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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 smiley
Logged

nudone
Cody's Creator
Columnist
***
Posts: 4,116



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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
Supporting Member
**
Posts: 1,510


View Profile Give some DonationCredits to this forum member
« 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
Member
**
Posts: 70



View Profile Give some DonationCredits to this forum member
« 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
First Author
Administrator
*****
Posts: 33,578



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: October 26, 2007, 01:37:36 PM »

fun  Thmbsup
Logged
cranioscopical
Friend of the Site
Supporting Member
**
Posts: 4,182



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« 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
Member
**
Posts: 692


see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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
Supporting Member
**
Posts: 927



View Profile Read user's biography. Give some DonationCredits to this forum member
« 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
Cody's Creator
Columnist
***
Posts: 4,116



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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
Supporting Member
**
Posts: 927



View Profile Read user's biography. Give some DonationCredits to this forum member
« 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.

* WindowsInstallDate.zip (14.82 KB - downloaded 397 times.)
Logged
nudone
Cody's Creator
Columnist
***
Posts: 4,116



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #11 on: October 26, 2007, 03:31:31 PM »

excellent  Thmbsup
Logged
Armando
Charter Member
***
Posts: 2,680



see users location on a map View Profile Give some DonationCredits to this forum member
« 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
Charter Honorary Member
***
Posts: 8,774



[Well, THAT escalated quickly!]

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #13 on: October 27, 2007, 03:46:47 AM »

9 months and 24 days... this install is getting old Wink

Btw, what do you use to get running time? GetTickCount() or performance counters? GetTickCount() isn't reliable smiley
Logged

- carpe noctem
nosh
Supporting Member
**
Posts: 1,388


View Profile Give some DonationCredits to this forum member
« Reply #14 on: October 27, 2007, 06:28:01 AM »



All thanks to drive imaging.  thumbs up
Logged
nudone
Cody's Creator
Columnist
***
Posts: 4,116



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #15 on: October 27, 2007, 07:47:46 AM »

cheat! cheat!
Logged
nosh
Supporting Member
**
Posts: 1,388


View Profile Give some DonationCredits to this forum member
« 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 smiley
Logged
Darwin
Charter Member
***
Posts: 6,979



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #17 on: October 27, 2007, 09:34:55 AM »

Quote
Ever wonder when your copy of Windows was installed?  Me neither.
  cheesy


Logged

"Some people have a way with words, other people,... oh... have not way" - Steve Martin
Darwin
Charter Member
***
Posts: 6,979



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« 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
Charter Member
***
Posts: 2,680



see users location on a map View Profile Give some DonationCredits to this forum member
« 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?  huh
« 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
Member
**
Posts: 692


see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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
Supporting Member
**
Posts: 927



View Profile Read user's biography. Give some DonationCredits to this forum member
« 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
Charter Member
***
Posts: 125



Australia

see users location on a map View Profile Give some DonationCredits to this forum member
« 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
Supporting Member
**
Posts: 927



View Profile Read user's biography. Give some DonationCredits to this forum member
« 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...


* emailserver1.jpg (21.34 KB, 428x152 - viewed 570 times.)
Logged
f0dder
Charter Honorary Member
***
Posts: 8,774



[Well, THAT escalated quickly!]

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #24 on: October 27, 2007, 06:21:35 PM »

Ralf, how are you retrieving uptime?
Logged

- carpe noctem
Pages: [1] 2 3 4 Next   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.044s | Server load: 0.1 ]