Tutorial: Install any WIM-based Longhorn build from USB
Learn how to install any Windows Longhorn build on modern hardware by booting the setup from a USB flash drive in a tutorial from WIMPack
One common problem faced by people installing Longhorn on modern hardware is the apparent inability to boot from USB drives. As optical media grows rarer, and more and more form factors ship without optical media drives, booting from a disc is not always an option. Fortunately, booting Longhorn through USB is a deceptively easy affair once you know what you’re doing.
There are two different ways to install Longhorn from USB, depending on which build you are using.
Longhorn WinPEs & Early WIM Builds
This is by far the easiest scenario, and applies to earlier builds where the WinPE existed outside of the WIM and custom-made WinPEs that have been extracted from the WIM of later builds, as is detailed in this handy guide by Grabberslasher.
- Download and install RMPrepUSB – this is by far the simplest way to make your flash drive bootable without sacrificing flexibility.
- Select your flash drive and set a label, or accept the default.
- Select the XP/BartPE bootable (NTLDR) option.
- You can chose any file system at this point, all should work for Longhorn, but FAT32 is widely regarded as best practice in this scenario.
- I personally suggest you chose Boot as HDD (C: 2PTNS). Different choices at this stage work for different people, but this option works most reliably with modern hardware for me.
- Copy the contents of the original ISO, or the WinPE to the flash drive.
- Copy SETUPLDR.BIN, NTDETECT.COM and TXTSETUP.SIF from the BOOT folder to the root of the drive.
- Rename BOOT to MININT and SETUPLDR.BIN to NTLDR.
- You should now have a bootable flash drive.
Later Builds
Later builds require a different method.. They need to read the WIM to load the WinPE. These builds include all from 4039 onwards. Previously, the only solution was to use Grabberslasher’s guide to extract the Windows PE, and then install Longhorn using this extracted Windows PE, but I disliked this method and researched a simpler alternative that allows the WinPE to boot from inside the WIM.
You can now prepare a bootable USB flash drive for later builds by doing the following:
- Follow the instructions for the earlier builds, up to and including the stage where you copy the files from the ISO onto the flash drive.
- Download this ZIP containing a WIM-Friendly NTLDR
- Extract the ZIP and place the NTLDR onto the root of the flash drive.
- Your flash drive should now be bootable.
You should bare in mind that simply because your flash drive is now bootable, does not mean that Longhorn will boot on your hardware. Longhorn has a number of incompatibilities with more modern hardware, some of which can lead to stop errors or boot failures.