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

Cannot read properties of undefined (reading 'list32') #113

Closed JoshTonTrac closed 1 year ago

JoshTonTrac commented 1 year ago

Please can you assist with this

const regedit = require('regedit').promisified

/*******************************************************************************
 *  Read Registry Values
 *******************************************************************************/

const GetRegistryValues = async () => {
  try {
    const listResult = await regedit.arch.list32('HKLM\\SOFTWARE')
    console.log(listResult)
  } catch (error) {
    console.log(error.message)
  }
}

export default GetRegistryValues

Error received: Cannot read properties of undefined (reading 'list32')