Skip to content

Commit

Permalink
Fixed regedit production issues
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderfrangos committed Aug 26, 2019
1 parent 9149e03 commit dbde7b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"build/**/*"
],
"extraResources": [
"src/MonitorInfo.exe"
"src/MonitorInfo.exe",
"node_modules\\regedit\\vbs\\*"
],
"win": {
"target": "nsis",
Expand Down
3 changes: 3 additions & 0 deletions src/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));


//
//
Expand Down

0 comments on commit dbde7b7

Please sign in to comment.