sodcalculator

10 Tech How-To

Windows 10 Installation Error: Unexpected Restart Fix

Guide 10-60983 · Updated · Step by step

If Windows 10 setup stops with “The computer restarted unexpectedly or encountered an unexpected error,” the fix is usually to disable automatic restart on system failure, clean the installation media, or free up disk space before retrying. This error appears during the first or second reboot of the installation process, and it halts setup until you intervene. Below is a step-by-step guide to resolve it, plus what causes it and how to avoid it.

What This Error Means

Windows 10 installation is a multi-stage process. After files copy to the hard drive, the PC restarts to continue setup. If that restart happens unexpectedly—or if setup detects a problem during the reboot—it aborts with the message: “The computer restarted unexpectedly or encountered an unexpected error. Windows installation cannot proceed. To install Windows, click OK to restart the computer, and then restart the installation.”

The error is not a single fault but a symptom. Common triggers include:

  • Automatic restart on system failure is enabled, so a minor crash during setup causes a reboot that Windows Setup misinterprets.
  • The installation media (USB or DVD) is corrupted, has bad sectors, or was created improperly.
  • Insufficient free space on the target partition—setup needs at least 20 GB, but more is safer.
  • Outdated BIOS/UEFI firmware or incorrect boot mode (Legacy vs. UEFI).
  • Faulty RAM or a failing hard drive that causes random crashes during the copy phase.
  • Third-party antivirus or disk encryption software interfering with setup.

Step 1: Disable Automatic Restart

The most direct fix is to prevent Windows from restarting on a system failure. This lets you see the actual error code (like a Blue Screen) instead of a silent reboot.

  1. Boot from your Windows 10 installation media.
  2. On the first screen, click “Repair your computer” (bottom-left corner).
  3. Go to Troubleshoot > Advanced options > Command Prompt.
  4. Type the following command and press Enter:
    reg add HKLM\SYSTEM\CurrentControlSet\Control\CrashControl /v AutoReboot /t REG_DWORD /d 0 /f
  5. Close the Command Prompt and restart the installation.

If you cannot access the repair environment, you can also do this from an existing Windows installation: go to Control Panel > System > Advanced system settings > Startup and Recovery > Settings, and uncheck “Automatically restart.”

Step 2: Recreate the Installation Media

A corrupted USB drive or DVD is a leading cause of this error. The Windows Media Creation Tool is the official way to make a bootable USB, but any interruption during creation (power loss, ejecting too early) can corrupt it.

  • Use a different USB drive (at least 8 GB) and a known-good USB port (preferably USB 2.0 on the back of the PC).
  • Re-download the Media Creation Tool from Microsoft’s website and create the media again.
  • If you used a third-party tool like Rufus, try the official tool or vice versa.
  • After creating the media, test it on another PC if possible. If it fails there too, the media is bad.

Step 3: Free Up Disk Space and Check the Partition

Windows 10 requires roughly 20 GB for a 64-bit installation, but it uses more during the upgrade process. If you are upgrading from an older Windows, the old system files and Windows.old folder can consume tens of gigabytes.

  1. Before starting setup, delete unnecessary files, uninstall large programs, and run Disk Cleanup.
  2. If you are doing a clean install, delete the existing partition during setup (Advanced options) and create a new one. This wipes the drive, so back up first.
  3. Ensure the target drive is healthy. Run chkdsk /f from the Command Prompt (as in Step 1) on the drive you are installing to.

Step 4: Update BIOS/UEFI and Check Boot Mode

Outdated firmware can cause instability during installation, especially with newer hardware. Check your motherboard manufacturer’s website for a BIOS update and apply it before retrying.

Also verify that the boot mode matches your disk type:

  • If your disk is GPT (common on modern PCs), boot the USB in UEFI mode.
  • If your disk is MBR, boot in Legacy/CSM mode.
  • Most BIOS menus have a boot menu key (F12, F11, Esc) to choose the boot device. Select the option that includes “UEFI:” or “Legacy:” accordingly.

Step 5: Test RAM and Hard Drive

Random crashes during installation often point to hardware issues. Run a memory test:

  1. From the Windows installation screen, press Shift+F10 to open Command Prompt.
  2. Type mdsched.exe and press Enter. This schedules a memory test on the next reboot, but since you are in setup, it may not work. Instead, download and run MemTest86 from another PC.

For the hard drive, check the manufacturer’s diagnostic tool or run chkdsk /r from the Command Prompt. A failing drive will often show errors during the copy phase.

Frequently Asked Questions

Why does this error appear even on a clean install?

Even a clean install can hit this if the USB media is corrupted, the BIOS settings are wrong, or the hardware has a fault. The most common cause is a bad USB stick—recreate it with the official tool and try again.

Can I skip the error and continue installation?

No. Windows Setup will not proceed until you click OK and restart. If the error persists, you must apply one of the fixes above. Clicking OK repeatedly without fixing the root cause will loop the same error.

Does this error mean my hard drive is dead?

Not necessarily. It can be a simple media issue. However, if you also see disk-related errors in the setup log or hear clicking sounds, test the drive with a diagnostic tool. A failing drive is a real possibility.

Will disabling automatic restart harm my PC?

No. It only stops the automatic reboot after a blue screen. You can re-enable it after installation. It is a standard troubleshooting step and does not affect normal operation.

How do I check the setup log for the real error?

During setup, press Shift+F10 to open Command Prompt, then type notepad C:\Windows\Panther\setupact.log (if the drive letter is C). Look for lines with “Error” or “Fatal”. This log records the exact failure point.

Is it safe to delete the partition and start over?

Yes, but only if you have backed up all important data. Deleting the partition erases everything on it. If you are unsure, use a live Linux USB to copy files to an external drive first.

Prevention Tips for Future Installations

  • Always create installation media on a stable PC with a reliable power source.
  • Use a high-quality USB drive—cheap ones fail more often.
  • Disconnect unnecessary peripherals (printers, external drives) during installation.
  • If you are upgrading from Windows 7 or 8, run the Windows 10 Update Assistant instead of a clean install—it handles the restart sequence more gracefully.
  • Keep your BIOS updated and set to optimal defaults before starting.

By following these steps, you should be able to complete the Windows 10 installation. The error is frustrating but almost always solvable with a fresh install media and a few BIOS tweaks.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →