add installdate to installedapps

Signed-off-by: si458 <simonsmith5521@gmail.com>

Simon Smith committed Feb 2, 2024 at 13:00 UTC 990da39fdeb484d243b83c0e4a626a4e6a96a834
1 file changed +8
agents/modules_meshcore/win-info.js
+8
@@ -228,6 +228,14 @@ function installedApps()
228 catch(e)\
229 {\
230 }\
231 + try\
232 + {\
233 + val.installdate = reg.QueryKey(reg.HKEY.LocalMachine, 'SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall\\\\' + items.subkeys[key], 'InstallDate');\
234 + if (val.installdate == '') { delete val.installdate; }\
235 + }\
236 + catch(e)\
237 + {\
238 + }\
239 result.push(val);\
240 }\
241 console.log(JSON.stringify(result,'', 1));process.exit();";