From 990da39fdeb484d243b83c0e4a626a4e6a96a834 Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Fri, 2 Feb 2024 13:00:56 +0000 Subject: [PATCH] add installdate to installedapps Signed-off-by: si458 --- agents/modules_meshcore/win-info.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/agents/modules_meshcore/win-info.js b/agents/modules_meshcore/win-info.js index e541520b..777457b2 100644 --- a/agents/modules_meshcore/win-info.js +++ b/agents/modules_meshcore/win-info.js @@ -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();";