Share via

Regedit Fix

Anonymous
2022-09-25T19:58:14+00:00

In windows 11 actually i tried to change default installation location so that i have done the following steps 

1.    Start Registry Editor by entering “Regedit” in the search All programs.
2.    Locate the following:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
3.    Right click on the value named ProgramFilesDir & change the default value C:\Program Files to the path you want to install all your programs in.
4.    Click OK and Exit.
changed my disk C: to E: ( i didnt haven an E drive as i merged it with my D drive )
and after restarting my machine when i tried to open regedit.exe  it shows as "*windows cannot find'C:\windows\regedit.exe'.*Make sure you typed the name correctly, and then try again." and also when i try to open applications through administrator  it  popups the  same  as windows cannot find. How can i revert it? please help with this.Rtsuri.exe also does not work

Windows for home | Windows 11 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2022-09-26T02:47:05+00:00

    Hello YoItsAura,

    Good to see you in Microsoft Community.

    Generally, I recommend that users take a full registry backup before modifying it in case something like this happens.

    Obviously, your system core is damaged, you can use the following solutions to repair the system.

    1. Repair possible corrupted system files

    Run the following commands to fix possible corrupted system files. Run Command Prompt as an administrator ("Win" logo key + "Q", enter "cmd", select "Run as administrator"), and enter the following commands one by one. These commands require network support, please keep your network stable and smooth.

    sfc /scannow
    
    DISM /Online /Cleanup-Image /RestoreHealth
    
    wsreset.exe
    
    powershell "Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}"
    
    for %i in (%windir%\\system32\\*.dll) do regsvr32.exe /s %i
    
    chkdsk C: /f
    

    Disclaimer*: Running chkdsk can check the file system and file system metadata of a volume for logical and physical errors. To avoid any trouble for you, please follow them step-by-step, do not cancel or interrupt chkdsk, and back up important data. For more information please refer to this* chkdsk article.

    2. Override the system

    • Please rest assured that the override system will theoretically not affect your data and applications (you need to choose to keep files and applications in the next steps), just update all the system files are the latest.
    • If you have important data, it is recommended that you make additional backups to prevent accidental loss of your data. Also make sure your system disk has enough free space, at least 40GB.
    1. Download ISO Visit Download Windows 11 (microsoft.com) and click "Download Now" under “Create Windows 11 Installation Media” to download MCT (Media Creation Tool). Image Then run the program, select "Create installation media (USB flash drive, DVD or ISO file) for another PC”, and then choose Language*,* Version*,* Architecture*(if you are not sure about these, choose "Use the recommended options for this PC"), then select "ISO file" in the "Select Media to Use" interface, and then a windows ISO file will be downloaded to your disk (about 4-5GB in size, it is recommended that you choose a non-system disk).*
    2. Choose to override the system After the download is completed, double-click the ISO file, double-click to run "setup.exe" in the open file explorer, and select "Change how Windows Installer downloads updates" > "Download updates, drivers and optional features", Select "Keep personal files and apps" after accepting the terms of the agreement, then click "Next" > "Install". Then the system will reboot a few times, and then enter the welcome screen.

    If anything is unclear, please do not hesitate to let me know.

    Best Regards,

    Mosken_L - MSFT | Microsoft Community Support Specialist

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2022-09-29T01:15:51+00:00

    Hello YoItsAura,

    How’s it going? Looking forward to your good news!

    If anything is unclear, please do not hesitate to let me know.

    Best Regards,

    Mosken_L - MSFT | Microsoft Community Support Specialist

    1 person found this answer helpful.
    0 comments No comments