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
-skj
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
brenthunter2005
19 years ago
Posted by:
rikx2
19 years ago
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
'---------------------------------------------------------------------------
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
19 years ago
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.
[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.
so that the conversation will remain readable.