Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 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@… 10 years ago.
Broken RegRead on Win64 using Win32 mode

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by solid_light@…

Broken RegRead on Win64 using Win32 mode

comment:1 Changed 10 years ago by Jos

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 Changed 10 years ago by Admiral

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 Changed 10 years ago by Jpm

  • Resolution set to No Bug
  • Status changed from new to closed

comment:4 Changed 10 years ago by solid_light@…

@ 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 Changed 10 years ago by AdmiralAlkex

@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

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.