IST Weather: Bengaluru 22°C · Mysuru 24°C Gold 24K: ₹1,23,249 👁 Visitors: 894
KannadaAINews
ಕನ್ನಡ ಸುದ್ದಿಗಳು — ಹೊಸ ದೃಷ್ಟಿಕೋನ
News. Intelligence. Trust.
Karnataka | Bengaluru | India | World
🔍
HOT NEWS
• Quantum computers threaten security of digital currencies including Bitcoin: OpenAI, Anthropic ready to replace encryption security by 2027 - KannadaDunia.com • Premier League releases full ruling in Man City case that implicates key individuals • 5 Best Desk Gadgets of December 2026 - Yanko Design • Which teams have qualified for the FIFA Women’s World Cup 2027? • D Gukesh vs Javokhir Sindarov Live Updates, FIDE World Chess Championship 2026, Game 10 - The Times of India • Gukesh vs Sindarov live, World Chess Championship 2026 Game 10: Gukesh opts for unusual queen move • The hottest 4K Blu-rays to look out for in December 2026 include a huge Marvel release and a stacked month for Arrow Video • Abu Dhabi Grand Prix: Formula One 2026 – live • Quantum computers threaten security of digital currencies including Bitcoin: OpenAI, Anthropic ready to replace encryption security by 2027 - KannadaDunia.com • Premier League releases full ruling in Man City case that implicates key individuals • 5 Best Desk Gadgets of December 2026 - Yanko Design • Which teams have qualified for the FIFA Women’s World Cup 2027? • D Gukesh vs Javokhir Sindarov Live Updates, FIDE World Chess Championship 2026, Game 10 - The Times of India • Gukesh vs Sindarov live, World Chess Championship 2026 Game 10: Gukesh opts for unusual queen move • The hottest 4K Blu-rays to look out for in December 2026 include a huge Marvel release and a stacked month for Arrow Video • Abu Dhabi Grand Prix: Formula One 2026 – live
Politics Karnataka Politics

Your Windows PC has two Program Files folders because of a 2001 Intel chip consumers never bought

Source: XDA Developers • 1h ago • 👁 0 visitors • Original Source ↗
🔍 Text Zoom: 100% · Tap photo to zoom
Your Windows PC has two Program Files folders because of a 2001 Intel chip consumers never bought
AI News Brief

In your computer's C: drive, assuming you have a 64-bit Windows PC, are two folders for installed apps: Program Files and Program Files (x86). Most people know that 32-bit programs will find themselves in the second one, and while that's mostly true, the folder itself predates 64-bit consumer PCs by a number of years. It first showed up in December 2000, according to Microsoft's developer documentation, and shipped with Windows in October 2001, three and a half years before Windows XP Professional x64 Edition broug

In your computer's C: drive, assuming you have a 64-bit Windows PC, are two folders for installed apps: Program Files and Program Files (x86). Most people know that 32-bit programs will find themselves in the second one, and while that's mostly true, the folder itself predates 64-bit consumer PCs by a number of years. It first showed up in December 2000, according to Microsoft's developer documentation, and shipped with Windows in October 2001, three and a half years before Windows XP Professional x64 Edition brought 64-bit Windows to conventional desktop PCs.

The reason for its existence goes back to Intel's Itanium, a 64-bit processor with an instruction set architecture (ISA) totally different from x86-64. It never made its way to mainstream PCs, but looking at the setup files of a Windows XP 64-Bit Edition installation disc, the name is there right alongside SysWOW64, Wow6432Node, and the %ProgramFiles(x86)% environment variablle still used today. In other words, most of the infrastructure that 64-bit PCs inherited in 2005 was built for an entirely different processor architecture.

The reason for this split goes back even further, to the days of Windows NT running on MIPS and Alpha processors. The way it works isn't as simple as you may have assumed, as Windows doesn't actually redirect attempts to access Program Files. Instead, it gives 32-bit apps a different answer when they ask where Program Files is. And this is why the folder may not actually tell you about an installed app and its capabilities.

Windows XP 64-Bit Edition launched on October 25, 2001 alongside regular Windows XP, except it ran on Intel's Itanium. Itanium used Intel's IA-64 ISA rather than the x86 architecture of mainstream desktop PCs. As a result, existing 32-bit Windows software needed a compatibility layer, which Microsoft called WOW64, short for Windows 32-bit on Windows 64-bit. This is the foundation of the same compatibility layer that runs 32-bit apps on your PC today.

The setup files on the original Windows XP 64-Bit Edition disc, build 2600 compiled in August 2001, look remarkably similar to what you'd find on a Windows 11 PC today. For example, the HIVESFT.INF file, which populates the software registry hive, contains the string "Program Files (x86)", while syssetup.dll defines the "ProgramFilesDir (x86)" registry value alongside the %ProgramFiles(x86)% and %CommonProgramFiles(x86)% environment variables. TXTSETUP.SIF, meanwhile, lists SysWOW64 among the directories to create, the default registry already contains keys under Wow6432Node, and even the Windows shell contains a string for "View x86 Control Panel Icons".

Looking to an archived installation of the 2003 Itanium release, it also contains a C:\Program Files (x86) folder with the 32-bit version of Internet Explorer inside of it.

However, Microsoft's own developer documentation predates that installation disc. According to a Platform SDK page from December 5, 2000, 32-bit apps were redirected from System32 to SysWOW64, with the page stating that "the 32-bit registry view indicates the directory name is X:\Program Files (x86)". Funnily enough, that same page refers to the environment variable as %ProgramFilesx86%, without the brackets. This typo stayed in the documentation until at least October 2002, a full year after Windows had shipped using the actual variable name we know today. Neither the January nor August 2000 SDK builds I checked contains a WOW64 section, suggesting that the documentation for it first appeared in the latter half of that year.

As well, the first Itanium was capable of executing x86 instructions in hardware, but it wasn't particularly good at it. One benchmark I found of a pre-release 667MHz Itanium, running on a beta version of Windows in January 2001, showed that its x86 performance was roughly comparable to a Pentium 75, matching a Pentium 100 at best. In one chess benchmark, a 1.5GHz Pentium 4 was 20 times faster. Sure, the processor and the operating system were both pre-release, but it wasn't exactly encouraging for a processor intended to represent the future of computing. It was also reported at the time that Intel only expected to sell a few dozen of that first chip.

A lot of the Windows software ecosystem at the time couldn't make the transition to Windows XP 64-Bit Edition. Internet Explorer's 64-bit version couldn't load 32-bit plugins, so Microsoft bundled a separate 32-bit version. Meanwhile, most existing antivirus software didn't work at all, as 64-bit Windows couldn't load their 32-bit drivers. when Windows XP x64 released four years later, it then inherited those same limitations. That's Microsoft made the 32-bit version of Internet Explorer the default browser, as it meant ActiveX controls would continue to work.

The concept of "Program Files" itself comes from Windows 95. Raymond Chen, a longtime Microsoft engineer who writes The Old New Thing blog, explained that Windows 3.1 presented no guidance to developers on where to install their apps. Because of this, applications ended up scattered their across the C: drive, sometimes using their own top-level directories or the Windows directory itself. Program Files was devised by Microsoft to bring this under control. with Chen saying that a folder simply called "Programs" would have been "an attractive nuisance", inviting regular users to wade into a sea of DLLs and configuration files.

Chen in 2018 explained why Microsoft never made a "Program Files (x64)" folder for 64-bit apps instead, and it comes from windows NT. In the 1990s, Windows NT ran on MIPS, Alpha, and PowerPC, and Program Files housed the applications compiled for each machine's native processor architecture. "Program Files just was the place where native architecture programs went," he explained. The same principle applied to System32, which Chen describes as "the directory for native architecture files, whether that native architecture is Alpha or Itanium or x64 or ARM or ARM64 or whatever."

Itanium is a good example of why that was important. Its native instruction set wasn't x86, so repurposing Program Files as a directory specifically for x86 applications would have meant taking the existing application directory away from native Itanium software. Chen explained that this "would certainly cause problems on machines that didn't even support x86." Instead, native 64-bit software kept Program Files and System32, while 32-bit x86 software got Program Files (x86) and SysWOW64. Confusing things further, the "64" in SysWOW64 refers to the operating system, not the applications.

This convention is also why System32, somewhat counterintuitively, is full of 64-bit binaries on a 64-bit Windows PC. Chen has said that in an ideal world, the directory would have been called something like SysExec, but too many applications had already hard-coded the System32 path for Microsoft to change it without breaking compatibility.

Because software often ships in both 32-bit and 64-bit versions, the split makes sense. You can't load a 64-bit DLL in a 32-bit process, nor can you load a 32-bit DLL into a 64-bit process. In 2022, Chen explained that without separate directories, installing both versions of software like Microsoft Office or Visual Studio side by side could result in one overwriting files required by the other.

Windows dealt with the same issue in its own applications. We got 32-bit and 64-bit versions of both Internet Explorer and WordPad, but giving the 32-bit copies different directory names, like "Internet Explorer (x86)", would bring another compatibility problem. Existing applications that launched %ProgramFiles%\Internet Explorer\iexplore.exe and expected to get a version of Internet Explorer matching their own architecture could result in fetching the wrong one. Microsoft could have used compatibility shims to work around that, but as Chen points out, shims can only account for compatibility problems that Microsoft already knows about. Separating the directories at a higher level avoids that problem altogether.

This is an even bigger issue with Common Files, which is where applications can install shared libraries and frameworks. If 32-bit and 64-bit applications used the same Common Files directory, their installers can overwrite each other's shared dependencies. Chen used the example of a 64-bit Word and a 32-bit Excel both trying to install files into the same common folder, where "one of them is gonna win and the other app will stop working." With two Program Files directories, each gets its own Common Files, allowing the two versions of a shared framework to coexist without either installer needing to know about the other.

System32 and SysWOW64 rely on the WOW64 filesystem redirector, making it so a 32-bit x86 app attempting to access C:\Windows\System32 gets redirected to SysWOW64. Program Files, though, doesn't work that way. The filesystem redirector, according to Microsoft's documentation, doesn't list Program Files among its redirected paths, and the Platform SDK from December 2000 directly says that "WOW64 does not redirect directories like %ProgramFiles%."

Instead, WOW64 dynamically changes the environment variables that 32-bit processes receive. In a native 64-bit process, %ProgramFiles% normally points to C:\Program Files, while a 32-bit x86 process is told to look at C:\Program Files (x86), and the system also applies this to %CommonProgramFiles%. Even the Windows' API for locating known folders, SHGetKnownFolderPath, will return the (x86) directory when a 32-bit x86 application asks for FOLDERID_ProgramFiles. An installer following Microsoft's conventions can simply tell Windows it wants to access Program Files, and Windows will handle the two directories by itself.

There are a few consequences to this approach, with one of the most common being a 32-bit installer that hard-codes C:\Program Files accessing the same directory as a native 64-bit application. That's why the folder an application is installed in isn't a reliable indicator of its architecture, and the easiest way to tell is through the Task Manager's architecture column.

Going the other way is a little more awkward. Windows didn't introduce the %ProgramW6432% environment variable, which allows 32-bit applications to locate the native Program Files directory, until Windows 7. Microsoft's known-folder documents state that FOLDERID_ProgramFilesX64 is unsupported for 32-bit applications. However, strangely enough, that same documentation says that a 32-bit application can request FOLDERID_ProgramFilesCommonX64 to locate the 64-bit Common Files directory.

The registry is in a similar boat, with 32-bit applications getting a separate view of most of HKEY_LOCAL_MACHINE\Software, represented by the Wow6432Node branch. In some conditions, when a 32-bit application writes a registry string beginning with %ProgramFiles%, WOW64 will rewrite the variable to %ProgramFiles(x86)% before saving it. That also dates back to December 2000, and it requires the variable to be at the beginning of the string, with exact capitalization matching.

The brackets in Program Files (x86) have an unfortunate side effect when it comes to software. The Windows command interpreter, cmd.exe, performs percent-sign variable expansion early enough in its parsing process that characters introduced by the expansion can be interpreted as batch file syntax. If an unquoted variable containing a Program Files (x86) path is expanded inside a parenthesized block, such as the body of an IF statement, the closing parenthesis after "x86" can prematurely terminate the block. The result is a cryptic syntax error along the lines of "\something was unexpected at this time."

I found a bug report from 2013 filed by Red Hat, which documented the standalone.bat script for JBoss Enterprise Application Platform 6 failing with the error "\jboss-eap-6.1 was unexpected at this time." that only occured when it was installed under Program Files (x86). What made the bug particularly amusing was that, as a later comment pointed out, C:\Program Files (x86)\EAP-6.1.0 was the default location selected by the product's own installer. If you accepted the default installation path for it, users were unable to start the platform in standalone mode, whether from the Start menu or by running the script directly.

That problem has caught out many developers of the years, including Mozilla in 2016. In that instance, the startup script for MozillaBuild, which was its Windows build environment, would attempt to append to PATH from inside a parenthesized block and would fail with the error "\Info-ZIP\ was unexpected at this time." In this case, MozillaBuild didn't even need to be installed in Program Files (x86) for the bug to occur. The user's existing PATH contained C:\Program Files (x86)\Info-ZIP, which caused the script to expand it without quotes.

There are typically two fixes: the first is to quote the variable, the second is to enable delayed expansion by using !VAR! instead of %VAR%. Chen has also talked about a related issue where an unquoted path containing spaces interferes with output redirection inside a parenthesized block and produces the same "was unexpected at this time" error. Both are caused by the command interpreter treating characters in an expanded path as part of the command's syntax rather than as literal text.

Windows on Arm took this idea further at first, using a "Program Files (Arm)" folder for 32-bit arm software. There was even a SysArm32 system directory with a WowAA32Node registry branch. However, Microsoft has since dropped support for 32-bit Arm applications, and my HP OmniBook Ultra 16 has regular old Program Files (x86) and SysWOW64.

Interestingly, emulated x64 applications on Arm don't get a Program Files directory of their own. Microsoft's documentation explains that 32-bit x86 applications on Arm go through WOW64 with "filesystem and registry redirection," just as they do on an x64 PC. For x64 applications, however, "there's no WOW64 layer and no separate registry or folder of Windows system binaries." Windows can use Arm64X system binaries that both x64 and native Arm64 processes can load, and x64 code can even coexist with native code inside the same process through Arm64EC.

Without the separate WOW64 environment, x64 applications should receive the same %ProgramFiles% path as native Arm64 applications. It's the first time Microsoft has deviated from the decades old convention of the plain Program Files folder being used for native-architecture software.

Over the life of Program Files (x86), it's outlasted several fundamentally different approaches to running 32-bit x86 software. There was Itanium's original hardware implementation, followed by Intel's IA-32 Execution Layer. This was a software translator that Intel claimed was more than three times faster than its own hardware implementation and it shipped with Windows Server 2003 SP1 in 2005. On top of that, some x64 processors can execute 32-bit x86 instructions natively, and Microsoft's Prism emulator on Arm is here now, too.

All of these methods preserve the same application directory because Program Files (x86) was never really concerned with how the processor executes those instructions. It merely existed to keep potentially incompatible software and its dependencies separate. Itanium may never have become the future of desktop computing that Intel envisioned, but the directory created by Microsoft to accommodate it is still on the C: drive of your Windows 11 PC.

Reported by XDA Developers Read Original Article ↗