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

0 Comments   [ + ] Show 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.


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.
Answered 11/15/2005 by: brenthunter2005
Fifth Degree Brown Belt

Please log in to comment
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

Answered 11/15/2005 by: rikx2
Purple Belt

Please log in to comment
If you are looking for 'WHEN' an application was installed you can query the registry. Take a look in


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.
Answered 11/15/2005 by: Foleymon
Orange Senior Belt

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