forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Registry and Win7 64-bit

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Sun Jan 22, 2012 9:10 pm    Post subject: Registry and Win7 64-bit Reply with quote

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. Sad
If I just run Reg at the command prompt, it works fine.

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Mon Jan 23, 2012 1:31 am    Post subject: Reply with quote

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" Laughing
Back to top
View user's profile Send private message Send e-mail
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Mon Jan 23, 2012 1:52 pm    Post subject: Reply with quote

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. Sad
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Mon Jan 23, 2012 5:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Mon Jan 23, 2012 6:39 pm    Post subject: Reply with quote

Great! Thanks a lot. I'll check it out. Very Happy

Is there an official update? I cannot find one on that thread or on VDSworld.com

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Mon Jan 23, 2012 7:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Mon Jan 23, 2012 7:20 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group