The Oven

Project World => Win10XPE HomePage => Topic started by: bryanh99 on April 23, 2021, 05:40:47 PM

Title: PRoblem with RegRead?
Post by: bryanh99 on April 23, 2021, 05:40:47 PM
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

Title: Re: PRoblem with RegRead?
Post by: Malok on April 23, 2021, 09:55:10 PM
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.
Title: Re: PRoblem with RegRead?
Post by: bryanh99 on April 23, 2021, 10:05:57 PM
Deleted my comment as I am doing more testing