windows-registry-node icon indicating copy to clipboard operation
windows-registry-node copied to clipboard

setValue does not work

Open szmarci opened this issue 7 years ago • 1 comments

I have this code:

var key = new Key(windef.HKEY.HKEY_CURRENT_USER, 'Software', windef.KEY_ACCESS.KEY_ALL_ACCESS);
var createdKey = key.createSubKey('Custom', windef.KEY_ACCESS.KEY_ALL_ACCESS);
key.setValue('test_value_name', windef.REG_VALUE_TYPE.REG_SZ, 'test_value');

I can see in the Registry editor that the key gets created in Software/Custom. But setValue doesn't do anything.

Anything I'm doing wrong here?

szmarci avatar Sep 18 '18 20:09 szmarci

Nevermind, I figured it out.

szmarci avatar Sep 18 '18 21:09 szmarci