add installdate to installedapps

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
Simon Smith 2024-02-02 13:00:56 +00:00 committed by GitHub
parent ddcff9f0d2
commit 990da39fde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -228,6 +228,14 @@ function installedApps()
catch(e)\
{\
}\
try\
{\
val.installdate = reg.QueryKey(reg.HKEY.LocalMachine, 'SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall\\\\' + items.subkeys[key], 'InstallDate');\
if (val.installdate == '') { delete val.installdate; }\
}\
catch(e)\
{\
}\
result.push(val);\
}\
console.log(JSON.stringify(result,'', 1));process.exit();";