step887 Posted July 9, 2016 Posted July 9, 2016 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?
rudi Posted July 14, 2016 Posted July 14, 2016 (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 July 14, 2016 by rudi Earth is flat, pigs can fly, and Nuclear Power is SAFE!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now