Windows 10 is Installed in an Unsupported Directory Fix

If you ever try to repair or upgrade your PC from an older version of Windows, you can sometimes get errors. This time, the error I’m talking about is related to Windows is installed in an unsupported directory error.

windows-10-installed-unsupported-directory

It says Windows might be installed in an unsupported directory in the upgrade (installation) box. When this error shows up, you will also not get the option to “Keep your personal files and apps” during the upgrade. The only option to select is Nothing.

That means, if you continue this way, Windows will delete all your files, folders and apps installed on your PC. Now, this isn’t a universally documented solution, so your mileage may vary, but it has worked for me in the past.

This problem occurs when Windows setup can’t find the default folders for the files and apps on your PC. By default, Windows tries to find them in the C:\Program Files directory. But, if you have them installed somewhere else, you can get errors.

The full error is like this:

You can’t keep Windows settings, personal files, and apps because your current version of Windows might be installed in an unsupported directory.

Fix Windows Installed in an unsupported directory

  • Press Windows + R to open Run.
  • Type regedit and press Enter.
  • Navigate to HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion.
  • You need to modify a few keys here. Specifically, the ones which store the location of the program files on your PC. Edit the following keys: ProgramFilesDir, ProgramFilesDir(x86), ProgramFilesPath and ProgramW6432Dir.
  • The following are the key names along with the values what you need to set them with.

ProgramFilesDir -> C:\Program Files

ProgramFilesDir(x86) -> C:\Program Files (x86)

ProgramFilesPath -> C:\Program Files

ProgramW6432Dir -> C:\Program Files

  • After editing all the values, close the registry and restart your PC.

Once you change all the keys to their correct values, Windows will be able to find the correct location for the default Program Files folders. Now, you can continue with Windows 10 setup without the Windows Installed in an unsupported directory error.

7 Comments

  1. Josh May 26, 2017
  2. Lawrence Ackert March 26, 2018
  3. todd April 1, 2018
  4. JWesCren July 26, 2018
  5. DIY Guy July 29, 2018
  6. Chuck Hawks September 25, 2018
  7. Piet October 15, 2019

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.