From 3f2bc445f4ab75dea54ff960dc06d0a2608f5653 Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Sun, 10 Mar 2024 18:51:14 +0000 Subject: [PATCH] add installdate to install --- modules/service-manager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/service-manager.js b/modules/service-manager.js index 0a4e4ad..b427540 100644 --- a/modules/service-manager.js +++ b/modules/service-manager.js @@ -2425,6 +2425,7 @@ function serviceManager() { reg.WriteKey(reg.HKEY.LocalMachine, 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\' + options.name, 'DisplayName', options.displayName); reg.WriteKey(reg.HKEY.LocalMachine, 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\' + options.name, 'DisplayIcon', options.servicePath); + reg.WriteKey(reg.HKEY.LocalMachine, 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\' + options.name, 'InstallDate', new Date().toISOString().slice(0,10).replace(/-/g,"")); if (options.publisher) { reg.WriteKey(reg.HKEY.LocalMachine, 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\' + options.name, 'Publisher', options.publisher); } reg.WriteKey(reg.HKEY.LocalMachine, 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\' + options.name, 'InstallLocation', options.installPath); reg.WriteKey(reg.HKEY.LocalMachine, 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\' + options.name, 'EstimatedSize', Math.floor(require('fs').statSync(options.servicePath).size / 1024));