Microsoft KB Archive/933700

From BetaArchive Wiki

Article ID: 933700

Article Last Modified on 10/27/2007



APPLIES TO

  • Windows Internet Explorer 7
  • Microsoft Internet Explorer 6.0
  • Microsoft Internet Explorer 5.0
  • Microsoft Windows XP Professional
  • Microsoft Windows XP Home Edition
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Windows Server 2003 Standard Edition (32-bit x86)
  • Microsoft Windows Server 2003 R2 Enterprise Edition (32-Bit x86)
  • Microsoft Windows Server 2003, Enterprise Edition
  • Windows Vista Home Basic 64-bit Edition
  • Windows Vista Home Premium 64-bit Edition
  • Windows Vista Enterprise 64-bit Edition
  • Microsoft Outlook Express 6.0
  • Microsoft Outlook Express 5.0



Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry


INTRODUCTION

Microsoft does not support changing the location of the Program Files folder by modifying the ProgramFilesDir registry value. If you change the location of the Program Files folder, you may experience problems with some Microsoft programs or with some software updates.

MORE INFORMATION

The ProgramFilesDir registry value is located in the following registry subkey:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion


You may want to use the ProgramFilesDir registry entry to change the location of the Program Files folder. Additionally, you may want to modify every reference in the registry to point to the new Program Files folder. You may also want to move the contents of the original Program Files folder to the new location. However, we do not test changes to the default location of the Program Files folder. Therefore, we do not recommend or support modifying the ProgramFilesDir registry value to change the default location of the Program Files folder.

When you set the ProgramFilesDir registry value to use a location other than the default location, Microsoft hotfixes, updates, and security updates do not update files that are in the default location. Therefore, you may experience system instability and unexpected problems with Microsoft programs and software updates. For example, you may experience any of the following problems:

  • Microsoft hotfixes, updates, and security updates may not be installed correctly.
  • New versions of Microsoft Internet Explorer or Microsoft Windows Media Player may not be installed correctly.

Additionally, the Microsoft Windows File Protection feature that helps protect files in the Internet Explorer folder does not support changing the default location of the Program Files folder.

Note The Internet Explorer installation folder is located in the Program Files folder.

If you change the location of the Program Files folder, you may experience unexpected issues that may affect the stability of Windows. The list of binary files that are protected by Windows File Protection, together with the locations of these files, is coded in Internet Explorer. You cannot modify these locations in Internet Explorer.

The following programs use the standard Windows APIs to determine the location of the Internet Explorer installation folder:

  • The Windows Internet Explorer 7 installation program.
  • The Windows Update program.
  • Programs that update Windows Internet Explorer 7.

These Windows APIs rely on the background registry settings to locate the Internet Explorer files to update.

Note When we developed Internet Explorer 7, we decided to use the standard method to determine the location of the Windows Internet Explorer 7 installation folder. This decision was made to help increase the stability of Windows Internet Explorer 7. The decision was also made to help reduce the risk of problems that you may experience with regard to compatibility with other programs and with regard to Windows Internet Explorer 7 serviceability.

Steps to change the ProgramFilesDir registry value to use the default location for the Program Files folder

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To change the location of the Program Files folder back to the default location, follow these steps:

  1. Click Start, click Run, type regedit , and then click OK.
  2. Locate and then click the following registry subkey:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

  3. In the details pane, right-click the ProgramFilesDir registry value, and then click Modify.
  4. In the Value data box, type the default location for the Program Files folder, and then click OK.

    NoteThe default location of the Program Files folder is systemdrive\Program Files. For example, if Windows is installed on drive C, type C:\Program Files in the Value data box.
  5. Exit Registry Editor.


Keywords: kbinfo kbtshoot kbprb KB933700