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
281 stars 45 forks source link

regedit.list yields keys only #76

Closed Johannes0Horn closed 3 years ago

Johannes0Horn commented 4 years ago

Hey, i was trying to get some registry eintries using:

regedit.list(['HKCU\\SOFTWARE', 'HKLM\\SOFTWARE'], function(err, result) {
        console.log(result);
        var HKCU = result["HKCU\\SOFTWARE"];
        var HKLM = result["HKLM\\SOFTWARE"];
        console.log("values:", HKCU["values"]);
        console.log("values:", HKLM["values"]);
}

image

According to the console output, it seems like regedit.list only yields the keys but not the values. Config: Windows 10 64Bit Node.js v12.16.2, also tried Node 8 regedit 3.0.3

I am grateful for every idea :)

dtboy1995 commented 4 years ago

same issue

omiinaya commented 3 years ago

same here

M1cr0M1nd commented 3 years ago

@Johannes0Horn @dtboy1995 @omiinaya Are you sure you have values under 'HKCU\SOFTWARE' & 'HKLM\SOFTWARE'? I have no values there and when manually adding one an running the script above everything works.

If you're talking about values not coming back as an empty object it will as of version 5.0.0

kessler commented 3 years ago

@Johannes0Horn closing this issue, please reopen if needed