/build/static/layout/Breadcrumb_cap_w.png

Question

I'm looking for a script which will install a file at runtime so that we can findout when that particular application was installed

-skj

0 Comments   [ + ] Show comments

Answers (3)

Posted by: brenthunter2005 18 years ago
Fifth Degree Brown Belt
0
I don't really understand the question properly, but it is possible to use WMI and query the specified application for the installation date/time. The WMI class is "win32_product" and the property is "InstallDate" for just the yyyymmdd string format, or "InstallDate2" for the formatted datetime.
Posted by: rikx2 18 years ago
Purple Belt
0
this would create a log file with the current date as filename when launched

'---------------------------------------------------------------------------
Set objFSO = CreateObject("Scripting.FileSystemObject")
HomeDir = Mid(WScript.ScriptFullName, 1, InStr(1, WScript.ScriptFullName, WScript.ScriptName, 1)-1)
DateNow = Replace(Date, "/", "")
Datenow = DateNow & ".log"

objFSO.CreateTextFile(HomeDir & DateNow)
'----------------------------------------------------------------------------

simple createfile but i dont truly know how you plan to use it [8D], or as mr hunter has said.. use WMI

regards
rick
Posted by: Foleymon 18 years ago
Orange Senior Belt
0
If you are looking for 'WHEN' an application was installed you can query the registry. Take a look in

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SOME-APPLICATION\"InstallDate"

If the 'SOME-APPLICATION' populated the 'InstallDate' key you will have a date value in there that will tell you when this app was installed.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ