Hello folks,

Is there anyone out there who had ever scripted to find the installed date of a software in XP. It would be a great help if any one can help with this.
Cheers,
Ram
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Off the top of my head...

- The WindowsInstaller writes a value in 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\[ProductCode]\InstallDate'
- You could resolve INSTALLDIR to its physical location and then get the file date/time stamp of the folder's creation.
Answered 11/17/2008 by: VBScab
Red Belt

Please log in to comment
0
You could use Ian's method for non-MSI installations (see vbscab post above) but for msi installations much better to use the win32_product collection using WMI. If you don't already have scriptomatic do a google search on it and download it.
Answered 11/17/2008 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
0
ORIGINAL: aogilmor
You could use Ian's method for non-MSI installations
Really? That's a neat trick, getting non-MSI installs to write their install data to the Windows Installer registry keys! And to use INSTALLDIR, too! :)

For non-MSI stuff, I'd go with the folder creation date but one would have to work out how to get the equivalent of INSTALLDIR for the application. of course.
Answered 11/17/2008 by: VBScab
Red Belt

Please log in to comment
0
ORIGINAL: VBScab

ORIGINAL: aogilmor
You could use Ian's method for non-MSI installations
Really? That's a neat trick, getting non-MSI installs to write their install data to the Windows Installer registry keys! And to use INSTALLDIR, too! :)

For non-MSI stuff, I'd go with the folder creation date but one would have to work out how to get the equivalent of INSTALLDIR for the application. of course.


Non-MSI installations do write their uninstall strings and data to the control panel uninstall key, which is of course not limited to controlling MSI installations. If they're nice they might even write useful info like install date. However, there's no standard they must adhere to, so you're stuck with doing things like checking for folder modified dates. You're are correct, however, that non-MSI installations won't contain the Windows Installer property INSTALLDIR. [:D]
Answered 11/17/2008 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
0
How about using RDT.EXE to read out the timestamp when the/a registry key was created and parse the info?
Answered 11/17/2008 by: AngelD
Red Belt

Please log in to comment
0
I suppose that would work indirectly, but if it's MSI no need to use indirect methods, just use InstallDate from the Win32_Product collection.
Answered 11/17/2008 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
0
Sure, an MSI would be easier to catch.
I just though I throw it into the mix for mixed installations [;)]
Answered 11/17/2008 by: AngelD
Red Belt

Please log in to comment
0
Thankyou all you for your suggesstions.
Answered 11/24/2008 by: Ram
Senior Purple Belt

Please log in to comment
Answer this question or Comment on this question for clarity