Skip to content

Failed to open key error: undefined, even when running as Administrator #66

Description

@bradisbell

This code throws an error:

const registry = require('windows-registry');
const windef = registry.windef;

const key = new registry.Key(windef.HKEY.HKEY_LOCAL_MACHINE, 'SOFTWARE\\SomeVendor\\SomeApp\\Settings');

Failed to open key error: undefined

This happens even when running in an Administrator command prompt. What could the issue be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions