-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Notebooks
- Notebook Operating System and Recovery
- My computer says “ the computer restarted unexpectedly or en...

Create an account on the HP Community to personalize your profile and ask a question
08-06-2025 05:52 PM
My computer says “ the computer restarted unexpectedly or encountered an unexpected error, windows installation cannot proceed, to install windows click “ok” to restart the computer” but when I restart it it shows the same thing
08-08-2025 07:44 AM
@Landeng, Welcome to HP Support Community.
Thank you for posting your query, I will be glad to help you.
I understand you're seeing the error:
"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."
This typically occurs when Windows Setup is interrupted or corrupted. Here's how you can resolve it:
Solution: Modify Registry to Resume Installation
- When the error message appears, press Shift + F10 to open the Command Prompt.
- In the Command Prompt, type the following and press Enter:
regedit
- In the Registry Editor, navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\ChildCompletion
- On the right pane, double-click setup.exe.
- Change the Value data from 1 to 3, then click OK.
- Close the Registry Editor and Command Prompt.
- Click OK on the error message to restart the system.
Windows Setup should now continue normally.
If That Doesn’t Work:
You may need to perform a clean installation of Windows using a bootable USB drive:
- Use another PC to download the Windows Media Creation Tool.
- Create a bootable USB drive (at least 8GB).
- Insert the USB into your HP notebook and boot from it.
- Follow the on-screen instructions to reinstall Windows.
Note: This will erase all data on the drive, so proceed only if you're okay with that or have backups.
HP Consumer PCs - Using the HP Cloud Recovery Tool in Windows 11 and 10 | HP® Support
I hope this helps.
Take care and have a good day.
Please click “Accepted Solution” if you feel my post solved your issue, it will help others find the solution. Select "Yes" on the bottom left to say “Thanks” for helping!
Max3Aj
HP Support