Error Fixer

No More Errors!

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.

3 Comments

Add a Comment
  1. Hello,

    I have tried your method, however it still tells me that i cant keep personal files and apps. Is there maybe another option wich i could try?

    Thank you for reading my message, I hope you can help me.

    Greetings,

    Josh

  2. My register matches the desired values above except for:
    ProgramFilesPath = %Program Files%.

    Could this be the problem?

  3. it worked for me

Leave a Reply

Your email address will not be published. Required fields are marked *

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

Error Fixer © 2015-2017 Frontier Theme