Topic: PRoblem with RegRead?  (Read 57 times)

PRoblem with RegRead?
« on: April 23, 2021, 05:40:47 PM »

bryanh99

  • Jr. Chef
  • **
  • Date Registered: May 2012
  • Posts: 23
I tried several searches but could not find anything.  I have a problem with RegRead not working on some keys.  I have tested this with about 20 keys in the "HKLM\SOFTWARE\" section and about 70% of them fail with "RegRead - Failed to read specified key from"

An example (For PerfectDisk 14)
RegRead,HKLM,SOFTWARE\Raxco\PerfectDisk\14.0,LicenseKey,%LicenseKey%

returns : RegRead - Failed to read specified key from: [HKLM]Section: [SOFTWARE\Raxco\PerfectDisk\14.0]  Key: [LicenseKey] to variable:: [%LicenseKey%]

But at prompt : reg query HKLM\SOFTWARE\Raxco\PerfectDisk\14.0 /v LicenseKey

returns: HKEY_LOCAL_MACHINE\SOFTWARE\Raxco\PerfectDisk\14.0
    LicenseKey    REG_SZ    XXXXXXXXXXX (but the actual code)


I have checked the permissions and they are all in order.  I am at a loss.

Thank you


Re: PRoblem with RegRead?
« Reply #1 on: April 23, 2021, 09:55:10 PM »

Malok

  • Chef
  • ***
  • Location: Canada
  • Date Registered: Aug 2016
  • Posts: 202
Hi Bryan,

On a 64bit system you may have to specify on what node the query goes.

for a 64bit node
Code: [Select]
System,REGREDIRECT,64
RegRead,HKLM,SOFTWARE\Sun\xVM VirtualBox",InstallDir,%VBPath%
System,REGREDIRECT,OFF


for a 32bit node
Code: [Select]
System,REGREDIRECT,32
RegRead,HKLM,SOFTWARE\Sun\xVM VirtualBox",InstallDir,%VBPath%
System,REGREDIRECT,OFF


This command had no effect on a 32bit system.

Re: PRoblem with RegRead?
« Reply #2 on: April 23, 2021, 10:05:57 PM »

bryanh99

  • Jr. Chef
  • **
  • Date Registered: May 2012
  • Posts: 23
Deleted my comment as I am doing more testing
« Last Edit: April 23, 2021, 10:17:29 PM by bryanh99 »

 

Powered by EzPortal