Jump to content

Recommended Posts

Posted

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?

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!

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
×
×
  • Create New...