Opened on Jan 2, 2014 at 1:52:41 AM
Closed on Jan 2, 2014 at 5:51:24 AM
Last modified on Jan 2, 2014 at 7:43:37 AM
#2590 closed Bug (No Bug)
@ProgramFilesDir results different for AutoIt 32bit and 64bit install.
| Reported by: | dogsurfer | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.10.2 | Severity: | None |
| Keywords: | @ProgramFilesDir | Cc: |
Description
Shouldn't @ProgramFilesDir give the same results for compatible or native install?
@ProgramFilesDir results
AutoIt 32bit install: C:\Program Files (x86)
AutoIt 64bit install: C:\Program Files
Test script on Win7sp1-64bit:
MsgBox(0, @AutoItX64, @ProgramFilesDir)
Attachments (0)
Change History (4)
comment:2 by , on Jan 2, 2014 at 5:51:24 AM
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
comment:3 by , on Jan 2, 2014 at 7:09:54 AM
My thanks for the quick reply. My initial scan of the forums was not comprehensive enough. I see now this is also described in the help .chm file.
I see that Windows has a redirection mechanism returning entirely different values based on whether the 32 or 64 bit AutoIt program accesses it. So AutoIt returns that different value. But it breaks my scripts, and since it has been discussed several times in the forums, the way AutoIt implemented this is causing some of us to think it is a bug. I mean, same script, same system, but it is inconstant, unintuitive, and requires a code work-around to be compatible. It sure seems to quack like a bug.
Still, I can achieve the consistency I require by staying on the 32 bit version.
I truly appreciate AutoIt, and thank you for your support and time.

The directory will change depending upon which version of the app you're running, either 64 bit or 32 bit. This has been discussed several times on the forums, and this type of question should have been posted there first. If you had, you would have realized that it's not a bug and that it's working exactly as it's supposed to.
BTW, it will also change the @SystemDir(system32 or SysWOW64) folder location depending upon the same criteria.