kessler / node-regedit

Read, Write, List and do all sorts of funky stuff to the windows registry using node.js and windows script host
MIT License
279 stars 45 forks source link

Critical error? #42

Closed Pomax closed 6 years ago

Pomax commented 6 years ago

I'm hitting a ton of things like

{"HKLM\\Software\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{F79F4961-D0D8-2893-B81D-7A60F300ED6F}":
J:\Junctions\Users\Mike\Documents\Git\temp\pluginboutique\node_modules\regedit\vbs\regList.wsf(0, 2) SWbemObjectEx: Critical error

without a way to apparently either suppress those errors, or actually do anything about them (because the error in no way explains what went wrong, and what I need to change as a dev to not run into this)

kessler commented 6 years ago

@Pomax is it possible for you to submit some piece of code so I can recreate this?

Pomax commented 6 years ago

I no longer have any reproducing code per se, but https://github.com/ironSource/node-regedit/issues/43 was a rewrite of the code to prevent running into these errors (see the code comments in the processKeys function). Rewriting that to synchronous rather than callback code should show millions of these errors again.