# Key does not exist

**URL:** <https://www.finalbuilder.com/forums/t/key-does-not-exist/3128>\
**Category:** Bugs\
**Created:** [July 6, 2009, 2:32am UTC](https://www.finalbuilder.com/forums/t/key-does-not-exist/3128 "2009-07-06T02:32:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [July 6, 2009, 2:32am UTC](https://www.finalbuilder.com/forums/t/key-does-not-exist/3128/1 "2009-07-06T02:32:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)\
**Post date:** [July 7, 2009, 3:26am UTC](https://www.finalbuilder.com/forums/t/key-does-not-exist/3128/2 "2009-07-07T03:26:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)\
**Post date:** [July 7, 2009, 5:40am UTC](https://www.finalbuilder.com/forums/t/key-does-not-exist/3128/3 "2009-07-07T05:40:05Z")

</div>

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](https://www.finalbuilder.com/downloads/finalbuilder/630/FB630_1597.exe)

---

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [July 7, 2009, 5:31am UTC](https://www.finalbuilder.com/forums/t/key-does-not-exist/3128/4 "2009-07-07T05:31:36Z")

</div>

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