Sign in to follow this  
Followers 0
step887

x64 binary calling x86

2 posts in this topic

I know if x86 binary uses regread hklm64\software, it will call the hklm\software.  Hklm\software calls hklm\software\wownode6432.  Is there a way to do the reverse?  x64 binary to call x86 registry, so hklm32\software would call hklm\software\wownode6432?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hi.

 

If (@OSArch = "x64") And (@AutoItX64 = 1) Then
    MsgBox(0, "x64 / x32", "This is 64bit code running on x64 Windows")
    $key = "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\AutoItv3"
Else
    $key = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\AutoItv3"
EndIf
$val = "DisplayName"
$AutoitDisplayName = RegRead($key, $val)
MsgBox(0, "Autoit Version", $Autoit

Regards, Rudi.

Edited by rudi

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0