Changed my programfilesdir and now I can't do anything


  1. Posts : 1
    Windows 10
       #1

    Changed my programfilesdir and now I can't do anything


    Hello guys,

    So I tried to change the installation path of everything to my 2tb external D: drive becuz my hard drive only has 150gb.

    I did this:

    Open regedit (Start > Run > "regedit"). Then find "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion". Now look in the right pane. Change "ProgramFilesDir", "ProgramFilesPath", "ProgramW6432Dir" and "ProgramFilesDir (x86)". If your secondary drive letter is D:\, then change them to "D:\Program Files", "D:\Program Files", "D:\Program Files" and "D:\Program Files (x86)", in that order that I just mentionned. You should be good to go from here.

    However I think I strayed too far from the path and goofed something up along the way because I cannot do anything on my computer that uses the c drive and when I try to go back to change it, regedit doesn't work. Also even tried to system restore and its just unresponsive and I can't do anything.
      My Computer


  2. Posts : 1,249
    Windows 10 Pro
       #2

    Welcome to the forum.

    Microsoft does not support or recommend this procedure. It is provided for exceptional circumstances, not for general use. Unfortunately many Internet articles miss that part.

    https://support.microsoft.com/en-us/...registry-value

    There are issues beyond those mentioned.
    Sorry, I do not have a solution for your problem.
      My Computer


  3. Posts : 35,407
    Win 10 Pro (21H2) (2nd PC is 21H2)
       #3

    You might be able to restore the backup copy of your registry, then reverse the regedit.
    No guarantees whatsoever. You are in perilous territory.

    Otherwise you could try editing the registry offline. (You can research that).

    Whether you'll end up with a reliable system is another matter.

    If you had been using disk imaging, which we constantly and strongly recommend (e.g. Macrium Reflect (free) ) you could have restored your system from a previously created image relatively painlessly.
    Changed my programfilesdir and now I can't do anything Attached Files
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 17:36.
Find Us




Windows 10 Forums