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

RegList outputing key to console. #53

Closed als9xd closed 6 years ago

als9xd commented 6 years ago

I ended up removing the "Write" lines within vbs/regList.wf and that appears to have fixed it. Is this by design?

Here is the code I'm using:

const regedit = require('regedit');
regedit.list("HKCU\\SOFTWARE",function(err,results){
    if(err){
        console.log(err);
        return;
    }
    console.log('done');
});
kessler commented 6 years ago

@als9xd running this code on a brand new windows 10 machine did not produce any kind of unexpected output:

image

The vbscript and node communicate via stdout, this is why the vbscript writes the result to it.