Key does not exist

Hi,
I was using a small project with FB5 in Vista Business. Its purpose is to read a registry key and depending on the
value take some action.

Now I have updated to FB6 and also moved to a Windows Server 2008 standard (64bit).
The project now generates an error “Key does not exist”.

To eliminate errors in typing I created a new key in regedit: HKLM\software\MyNewKey, which was exported (so I could use copy/paste to be sure of spelling)
There I created a string name called MyNewStringName with a value of “MyNewStringValue”

Created a new simple project with three actions:
1) Define Variable TEST (to be sure I have a variable to later read into)
2) Export Registry Key [software\MyNewKey => c:\Users\anha\Documents\MyNewKey.reg]
3) Read Registry Value [HKLM\software\MyNewKey MyNewStringName into TEST]

Action 2 created the file with following content:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\software\MyNewKey]
“MyNewStringName”=“MyNewStringValue”

However action 3 generates an error:
Read Registry Value [ HKLM\software\MyNewKey MyNewStringName into TEST ]
“Key does not exist : software\MyNewKey”

As you can see in the exported file this is nonsense, I can also see the key properly in RegEdit.

To find out if security was an issue I ran FB as administrator but that did not change anything.

Any idea why I get this error?

Best Regards,
ForestryMan

Hi Anders,

The reason FinalBuilder can’t see the registry key is because FinalBuilder is a 32-bit application which by default will be redirected to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node when accessing HKEY_LOCAL_MACHINE\SOFTWARE. I’ve added an option to the registry actions that allow you to force reading from the 64-bit registry key (HKEY_LOCAL_MACHINE\SOFTWARE). The option can be set using the Action inspector and the property name is ‘Read 64-bit Key’. I’ll let you know as soon as a test build is available.

Regards,
Paul.

Here’s the new test build of FinalBuilder, it contains the new ‘Read 64-bit Key’ property on the Registry actions.

URL: https://www.finalbuilder.com/downloads/finalbuilder/630/FB630_1597.exe

Hi Paul,
Thanks! Now it works like it used to in the older 32-bit environment.
/Anders