The copy stops with "file is too large for the destination file system". Nothing is corrupt — FAT32 simply cannot hold a single file over 4 GB. Three proper fixes below, in the order a technician would use them.
This problem appears at the very end of building a custom ISO: you add drivers and updates, export the image, and now install.wim is 4.5 or 5 GB — but your bootable USB is FAT32, and FAT32 has a hard limit of 4 GB per single file. Windows refuses the copy with "The file is too large for the destination file system." The strict UEFI-with-Secure-Boot setup wants FAT32, so simply reformatting is not always an option. You have three clean solutions: split the WIM, convert it to the smaller ESD format, or change how the USB is written.
The file 'install.wim' is too large for the destination file system.
Windows Setup natively understands split WIM files — this is Microsoft's own intended solution. Open Command Prompt as Administrator, and adjust the drive letters to yours (D: below is the USB stick):
sources\install.wimdism /Split-Image /ImageFile:"C:\ISO\sources\install.wim" /SWMFile:"D:\sources\install.swm" /FileSize:3800 /CheckIntegrityinstall.swm, install2.swm, and so on, directly inside the USB's sources folder — keep all parts together thereThe ESD format uses stronger ("recovery") compression and is often 25–30% smaller — many images drop under 4 GB and copy as one file. The trade-off: an ESD cannot be mounted and edited again as easily, so convert only when your editing is finished.
dism /Get-WimInfo /WimFile:"C:\ISO\sources\install.wim"1 with your edition's index):dism /Export-Image /SourceImageFile:"C:\ISO\sources\install.wim" /SourceIndex:1 /DestinationImageFile:"C:\ISO\sources\install.esd" /Compress:recovery /CheckIntegrityinstall.wim in the sources folder with the new install.esd — Setup accepts either one, but never keep bothIf you would rather not touch the image at all, change the media instead:
install.wim copies happilyinstall.wim fails mid-install, after your old Windows is already gone. Use the DISM split, the ESD conversion, or the proper USB writers above.
The complete custom Windows ISO process — extraction, DISM conversion, NTLite editing and the final build — on video.
▶️ Watch Full VideoFAT32 was designed in the 1990s and stores a file's size in 32 bits, which caps a single file at 4 GB minus one byte. The limit is per file, not per drive — a 64 GB FAT32 stick can hold many files, just none bigger than 4 GB each.
Yes. Split WIM (.swm) is an official DISM/Windows Setup feature. As long as every part sits in the sources folder with the correct naming (install.swm, install2.swm, ...), Setup reads them as one image with no extra steps.
Use WIM while you are still editing and testing, because it can be mounted and serviced. Produce the ESD at the very end if you need the smaller size for FAT32 media, knowing you would convert back to WIM before any further editing.