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

PutValue is note working #44

Closed anaszgh closed 5 years ago

anaszgh commented 7 years ago

I'm trying to put a value into an existing key to enable automatic windows login but it is not working, and not throwing an error in the callback either. Here is the code: var valuesToPut = { 'HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon': { 'AutoAdminLogon': { value: 0, type: 'REG_SZ' } } } regedit.putValue(valuesToPut, function (err) { console.log(err); `});

and i have tried to specify the OS Architecture also with no luck ======= INFO ======= OS: Windows 10 OS Arch: x64 Node Version: 6.11.2 Node Arch: ia32 platform: Electron

kessler commented 7 years ago

Can you please also attach the error?

anaszgh commented 7 years ago

there is no logged error, sorry for the late reply, it acts like everything is fine, but the actual value in the registry doesn't change.1

kessler commented 6 years ago

@anaszgh is this related to #49 ?