From dbde7b78184f24448c5c6e3a2ee557f707489c55 Mon Sep 17 00:00:00 2001 From: Xander Frangos <33106561+xanderfrangos@users.noreply.github.com> Date: Sun, 25 Aug 2019 23:11:52 -0400 Subject: [PATCH] Fixed regedit production issues --- package.json | 3 ++- src/electron.js | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d35a88d9..9b210fca 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,8 @@ "build/**/*" ], "extraResources": [ - "src/MonitorInfo.exe" + "src/MonitorInfo.exe", + "node_modules\\regedit\\vbs\\*" ], "win": { "target": "nsis", diff --git a/src/electron.js b/src/electron.js index 83050347..971935d5 100644 --- a/src/electron.js +++ b/src/electron.js @@ -30,6 +30,9 @@ var wmi = new WmiClient({ namespace: '\\\\root\\WMI' }); +// Fix regedit tool path in production +if(!isDev) regedit.setExternalVBSLocation(path.join(path.dirname(app.getPath('exe')), '.\\resources\\node_modules\\regedit\\vbs')); + // //