FIX: System registry contains invalid paths in Windows 10 Upgrade.
If you face the error "The system registry contains invalid file paths. Installation cannot proceed" when you try to upgrade Windows 10 to a newer version, continue reading below to fix the problem.
The Windows 10 Upgrade error "System registry contains invalid paths", usually occurs on laptops where Windows comes preinstalled by the manufacturer, or on computers that lack important updates required for the upgrade.
Problem in details: When trying to upgrade to Windows 10 using the Windows Upgrade Assistant, the Windows 10 upgrade fails with error "The system registry contains invalid file paths. Installation cannot proceed. This system image was applied without guaranteeing that drive-letter assignment would match across computers", and the system reverts to previous Windows 10 version with message: "Any changes made to the computer will be undone…"
How to FIX: System registry contains invalid paths in Windows 10 Update/Upgrade.
IMPORTANT: Before you continue to the method below, apply the following actions:
-
Download and install the latest Servicing Stack update according your Windows 10 version.
- (This solution is mentioned in the comments below): Disconnect the AC Power Adapter & if you can remove/disconnect the battery. Then hold down the Power button for at least 10-15seconds. Put the Battery back and connect the Power Adapter. Try to upgrade your PC.
Method 1. Delete Entries in System Variables.
Sometimes the error "System registry contains invalid paths", occurs because of invalid or duplicate entries in System Environment Variables. So, proceed as follows:
1. Right-click on your computer (This PC) icon on Explorer and choose Properties.
2. Click Advanced System Settings.
3. Click Environment variables.
4. At System variables select Path and click Edit.
5. Select and delete any other variables except the following:
-
%SystemRoot%\system32
-
%SystemRoot%
-
%SystemRoot%\System32\Wbem
-
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
-
%SYSTEMROOT%\System32\OpenSSH\
6. When done, click OK 3 times to apply the change and to close all windows.
6. Restart your PC.
7. Try to install the update.
Method 2. Delete Drive Letter on System Reserved Partition.
The second method to resolve the Windows 10 update error "System registry contains invalid paths", is to remove the drive letter from the "System Reserved" partition. To do that:
1. Press “Windows” + “R” keys to open the RUN window.
2. In “RUN” window “Open” box, type: diskmgmt.msc & Press Enter.
3. At Disk Management check if the System Reserved partition has a drive letter.* If so, right-click on it and select Change Drive Letters and Paths.
* Note: If the System Reserved partition does not have a drive letter, continue to next method.
4. Click Remove and OK.
5. Try to upgrade Windows 10.
Method 3. FIX Error "System registry contains invalid paths" by Repairing Windows 10 System Files.
1. Open Command Prompt as Administrator.
2. In command prompt give the following command and press Enter:
- DISM.exe /Online /Cleanup-image /Restorehealth
3. When the DISM operation is completed, type the following command and hit Enter:
- sfc /scannow
4. Now wait until the System File Checker repairs the Windows System Files.
5. When this done, restart your computer and try to install the Update.
Method 4. Update Windows from the Windows 10 ISO File .
The next method the Windows 10 upgrade error "System registry contains invalid paths" is to update Windows 10, from the Windows ISO file. To do that:
Step 1. Download Windows 10 in a ISO File.
1. Navigate to Windows 10 download page and click Download Tool now to download Media Creation Tool.
2. Run the downloaded file file and Accept the License Terms at the first screen.
3. Select Create installation media for another PC.
4. At 'Language, architecture and edition' screen click Next.
5. Select ISO file and click Next.
6. Save the 'Windows.iso' file to your desktop.
7. The Media Creation Tool will now begin to download the Windows 10 in an ISO format.
8. When the download is completed, close the Media Creation Tool.
Step 2. Run Disk Cleanup.
1. Right-click on drive C: and select Properties.
2. At General tab, click Disk Cleanup.
3. At 'Disk Cleanup' window, click Clean up system files.
4. In addition to the files selected for deletion, select the following and click OK to delete them.
-
Windows Update Cleanup
-
Windows upgrade log files
-
Temporary Windows installation files
5. Close the Disk Cleanup tool and continue to next step.
Step 3. Run DISM & SFC tools to repair Windows 10.
Now, follow the steps in Method 2 above and run the DISM & SFC tools to repair Windows 10.
Step 4. Update Windows 10 from the ISO file.
1. IMPORTANT: Disconnect your computer from the Internet, (or set it to "Airplane mode" if you own a laptop).
2. IMPORTANT: Disable or temporarily uninstall any third-party antivirus.
3. Then, right click on the "Windows.iso" file (on your desktop) and click Mount.
4. Double click at Setup application.
5. Click Next to install Windows 10.
6. Follow the rest onscreen instructions to update your system.
Method 5. Clean install Windows 10.
The last method, to fix the Windows 10 Upgrade issues, is to perform a clean installation of Windows 10 on your system.
Important: The clean Windows 10 installation means that all your files and settings will be lost during the installation process. So, proceed and backup all your important files and settings to another storage media before continue. (e.g. to an external USB drive).
To perform a clean Windows 10 installation read the instructions on this article: How to clean install Windows 10
That’s all folks! Did it work for you? Please leave a comment in the comment section below or even better: like and share this blog post in the social networks to help spread the word about this solution.
- How to Block Windows 11 Upgrade on Windows 10. - April 25, 2024
- FIX: Error 0x81000203 in System Restore. (Solved) - April 23, 2024
- Cannot Access Shared folder. User has not been granted the requested logon type at this computer. (Solved) - April 18, 2024
Phil Reinemann
August 11, 2022 @ 10:08 pm
The above possible fixes take a lot of time. Before attempting them (except sfc /scannow) try this simpler (depends on physical access to battery) solution that has worked on at least 4 (Dell Latitude E5450) laptops, that failed upgrading from W10 20H2 to 21H2.
Remove AC power from the laptop.
Access the battery and disconnect it or remove it.
Hold down the power button for >=11 seconds. (May not be necessary but the time to do this allows for circuits to drain.)
Reassemble.
Run your upgrade (update).
As near as we can tell, something (BIOS) preserves some info (like drive letter assignments) that gets reset by removing power.
Speedy Maxwell
October 29, 2022 @ 1:38 am
I don't even know what exactly was the problem but I just carried out all the methods before even trying, I even removed the battery and held the power button for 11 seconds, the next try was an immediate success, I've been struggling with this for 3 days now thank you so much…
Petre
January 18, 2023 @ 5:24 pm
Many thanks!
Very useful and solved my upgrade problem from Win 7 to Win 10.
With gratitude,
Petre.
Erik
May 30, 2023 @ 2:18 am
That worked for me also, I was upgrading a client’s PC from win 7 to win 10 and got the above error. It was a desktop I unplugged the power cord opened the case and removed the CMOS battery for like 5 minutes reinstalled the CMOS battery, connected the power and when the PC booted I tried the upgrade again this time it Upgraded flawlessly! Thank You!