| View previous topic :: View next topic |
| Author |
Message |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Sun Jan 22, 2012 9:10 pm Post subject: Registry and Win7 64-bit |
|
|
I am trying to add info to the registry, but when I do it doesn't show, but it still returns the value set. Is VDS using a different key when writing to Win7 64-bit? This is the code I am testing.
| Code: |
Registry write,LOCAL,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Explorer\command,,testing
info @regread(HLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Explorer\command,,)
stop
|
It returns "testing", but when I look using regedit, the key is not there.
Any ideas would help a lot!
Thanks!
[EDIT]
I found that it is using
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\explorer\CommandStore\shell\Explorer\command
Is there anyway to force it to use the original key/path?
Even calling the Reg command line app from VDS puts the values in the Wow6432Node key.
If I just run Reg at the command prompt, it works fine. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Mon Jan 23, 2012 1:31 am Post subject: |
|
|
All HKLM 32 bit keys are located at HKLM\SOFTWARE\Wow6432Node on 64 bit versions of Windows.
If a 32 bit app writes or reads the registry to the traditional location on a 64 bit machine the OS redirects it to HKLM\SOFTWARE\Wow6432Node
It would require a 64 bit version of VDS to write natively on a 64 bit machine.
| Code: | Registry write,LOCAL,SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Explorer\command,,testing
info @regread(HLM,SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Explorer\command,,)
stop |
Gee, I wonder how many more time I could mention "64 bit"  |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Mon Jan 23, 2012 1:52 pm Post subject: |
|
|
Ok. That's what I thought. That really stinks because there are some registry keys I need to write that do not work unless written to the proper location on the 64 bit system.  _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Mon Jan 23, 2012 5:09 pm Post subject: |
|
|
Check this thread: http://forum.vdsworld.com/viewtopic.php?t=4390&highlight=redirection
It talks about registry redirection and reflection in Windows Vista/7 and 64-bit registry. There is a way to open/write to 64bit registry hives with a 32-bit process; using the KEY_WOW64_64KEY and KEY_WOW64_32KEY flags passed to windows registry api calls. Since you cant pass those flags to the vds native REGISTRY/@REGISTRY procedures you do it with api. There is a dsu by vdsalchemist in that thread that does it. |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Mon Jan 23, 2012 6:39 pm Post subject: |
|
|
Great! Thanks a lot. I'll check it out.
Is there an official update? I cannot find one on that thread or on VDSworld.com _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Mon Jan 23, 2012 7:06 pm Post subject: |
|
|
| Doesnt look like it, and I dont see the dsu on the site. Contact him and see if he has the dsu available still. |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Mon Jan 23, 2012 7:20 pm Post subject: |
|
|
I sent him a PM. I have tried to contact him a few weeks ago about Gadget but have not heard back. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
|