Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1871 closed Bug (No Bug)

RegRead error on Win64 using Win32 compile

Reported by: solid_light@… Owned by:
Milestone: Component: AutoIt
Version: 3.3.6.0 Severity: None
Keywords: RegRead Win64 Cc:

Description

On a Win64 system (mine was Windows 7), run the following code:

#Region ; Directives created by AutoIt3Wrapper_GUI
#AutoIt3Wrapper_UseX64=n
#EndRegion ; Directives created by AutoIt3Wrapper_GUI
Local $7Zip = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\7-Zip", "Path") & "7z.exe"
MsgBox(0,FileExists($7Zip),$7Zip)

It will FAIL even if 7-Zip is installed. The only solution is to comment out or remove the first 3 lines. I discovered this after compiling my code into a Win32 command and the compiler added the directives. I suspect the problem lies with the #AutoIt3Wrapper_UseX64=n wrapper, and I don't believe it's been fixed in the v3.3.6.1 release. I'll provide any additional information that's requested. Attached is a sample .au3 illustrating the above problem.

Attachments (1)

test.au3 (412 bytes ) - added by solid_light@… 15 years ago.
Broken RegRead on Win64 using Win32 mode

Download all attachments as: .zip

Change History (6)

by solid_light@…, 15 years ago

Attachment: test.au3 added

Broken RegRead on Win64 using Win32 mode

comment:1 by Jos, 15 years ago

You are aware that in 32bit mode the following path "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\" is used for key "HKEY_LOCAL_MACHINE\SOFTWARE\"?

So does any 7-zip key exists there?

Jos

comment:2 by Admiral, 15 years ago

this looks like just another case of "someone jumping into the x64 world without reading any freaking documentation".

No bug.

@solid_light
Use the forum for help.

comment:3 by J-Paul Mesnage, 15 years ago

Resolution: No Bug
Status: newclosed

comment:4 by solid_light@…, 15 years ago

@ Jos & Admiral,
Thanks for your input. I seriously thought it was a bug - even after I had read through the help files (it's a little unclear to the uninformed). I was unaware of how 64-bit Windows accessed the registry. Much appreciated!

comment:5 by AdmiralAlkex, 15 years ago

@solid_light

Here is a good article on running x86 apps on x64 windows.
http://msdn.microsoft.com/en-us/library/aa384249(v=vs.85).aspx

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.