These are solutions for Windows ISOs that have Install.WIMs larger than 4GB for computers with UEFI and Secure Boot.
[Option 1] Install Windows from within a WinPE environment.
Taking into account your Windows ISO is in your PCs harddrive and your WinPE can mount the ISO.
You can go here to Build Your Own WinPE
[Option 2] Create a custom installation boot disk.
What the script does:
- Run the script (as Administrator)
- After you plug in the USB stick
- It creates 2 partitions. A FAT32 and an NTFS partition.
- After you mount your Windows ISO
- It copies the entire contents of Mounted Windows ISO to the NTFS partition of the boot disk.
- Then it copies the “boot” and “efi” folders and the “bootmgr” and “bootmgr.efi” files from the mounted ISO to the FAT32 partition.
- It then creates a “sources” folder in the FAT32 partition then copies the “boot.wim” from the sources folder of mounted ISO to the newly created folder.
[Option 3] Create a Windows ISO with an Install.ESD or Install.SWM instead of an install.WIM
What the script does:
- Extracts the ISO
- Optimizes the boot.wim
- Compresses the install.wim to install.esd with LZMS compression
Splits the install.wim into multiple 3500MB install.swm files
- It creates an ISO with the install.esd or install.swm files
- It also will offer the opportunity to copy the ISO folder to the FAT32 formatted USB key, before the ISO folder gets deleted.
[Option 4] Create an NTFS boot disk instead of FAT32
What Rufus does:
It creates 2 partitions on the target USB disk. The first one is an NTFS partition that contains the Windows ISO files, and the second is a very small FAT partition, located at the very end, that contains an NTFS UEFI driver as well as the UEFI:NTFS bootloader.
Note: You have to temporarily disable Secure Boot during the installation process.
[Option 5] Convert the Install.WIM to Install.ESD
Use WIM <> ESD
Note: When converting WIM to Solid ESD, the process will consume very high amount of CPU and RAM resources. If your machine specifications are not powerful enough, the operation will substantially paralyze your system.
[Option 6] Split the Install.WIM into Install.SWMs
Use this batch (BAT) script
Dism /Split-Image /ImageFile:install.wim /SWMFile:install.swm /FileSize:4000
Create a folder. Copy Install.WIM to folder. Put this BAT script in the same folder.
Note: If you get an error during installation such as “Windows cannot find the Microsoft Software License Terms”, use a ei.cfg file.