Setting up the Windows operating system on a computer is a complex task. There are several things that go in the background to ensure a full and protected setup of the operating system. This includes a number of programs, scripts and what not working together in the background to ensure the integrity of the operating system. But sometimes, this piece of code can also go wrong. Some users have been reporting an error for Windows Setup – There was a problem running preinstall.cmd scripts . For your information, Preinstall.cmd is a type of CMD file associated with Applications & Drivers developed by Gateway for the Windows Operating System.
There was a problem running preinstall.cmd scripts
We will take a look at the following fixes to get rid of There was a problem running preinstall.cmd scripts error for Windows Setup,
- Download a new Windows Installation Image.
- Create a new bootable drive.
- Uninstall conflicting programs.
- Run Windows Update Troubleshooter
- Reset Windows 11/10.
1] Download a new Windows Installation Image
The best way to upgrade to Windows 10 without encountering this error would be to get the official ISO files for Windows 10’s latest release. And then you can use this ISO to upgrade to the latest version of Windows 10.
2] Create a new bootable drive
You can also try to create a new bootable drive for your operating system’s installer and check if that fixes your issues. You may also try to change the bootable drive maker you use last time.
3] Uninstall conflicting programs
Some people who are using computers made by Dell and got Windows 10 preinstalled have been facing this issue.
You can try to uninstall the following programs from your Dell computer and check if that fixes your issues,
- Dell Encryption Management service.
- Dell Digital Library service.
4] Run Windows Update Troubleshooter if you are upgrading
If you receive this error message while upgrading your existing copy of Windows 11/10, then running Windows Update Troubleshooter has been known to have helped some. See if that helps you. Run it, restart your computer and then try running setup again.
5] Reset Windows 11/10
You can Reset your copy of Windows installed. This will fix all the issues on your computer.
I hope this helps.