I am running Windows 10 Pro 64bit on my PC, and have installed Windows ADK for Windows 10. When using Windows System Image Manager, and trying to load a
install.wim file in it, i get the following error message:
Which in the log looks something like this:
20:38 : This application requires version 10.0.10240.16384 of the Windows ADK. Install this version to correct the problem 20:38 : 20:38 : Error opening Windows image at D:\sources\install.wim. 20:38 : 20:38 : System.ComponentModel.Win32Exception (0x80004005): An attempt was made to load a program with an incorrect format bij Microsoft.ComponentStudio.ComponentPlatformInterface.WimFileHandle..ctor(String wimPath) bij Microsoft.ComponentStudio.ComponentPlatformInterface.WimInfo..ctor(String wimPath) bij Microsoft.ComponentStudio.ComponentPlatformInterface.Cpi.OpenWim(String wimPath) bij Microsoft.ComponentStudio.ImagePicker.GetImageInfoFromPath(String path) bij Microsoft.ComponentStudio.ImagePicker.ValidateImageFileOrFolder(String fileOrFolder)
After doing some research, I found an answer to upgrade my ADK to the version that was asked for in the error message (16384).
I could download this version here.
When checking the version I currently have in SIM, I noticed I 10.0.10240.16384 version:
How do I load install.wim, from an Windows 10 installation disk, into SIM, without getting any errors?
I found solution here.
Run the below script from Deployment Tools Environment
:: Rename the original install.wim file. rename D:\sources\install.wim install.bak :: Create an empty temporary directory. mkdir D:\sources\dummy :: Create a new install.wim file with dummy image. dism.exe /Capture-Image /ImageFile:D:\sources\install.wim /CaptureDir:D:\sources\dummy /Name:dummy /Compress:Max :: Export the first Windows image to the empty install.wim file. dism.exe /Export-Image /SourceImageFile:D:\sources\install.bak /SourceIndex:1 /DestinationImageFile:D:\sources\install.wim /Compress:Max :: Delete the first dummy index in install.wim dism.exe /Delete-Image /ImageFile:D:\sources\install.wim /Index:1 :: Delete temporary directory. rmdir D:\sources\dummy
Now you can open install.wim in WSIM.
Also you can delete the original (install.bak) file and create the the bootable media using oscdimg.exe
Try using 7Zip to extract install.esd to install.wim.
I had tried using the DISM cmd running cmd line as admin, but was also getting "An attempt was made to load a program with an incorrect format". DISM log file was only marginally helpful and I decided to try 7ZIP, which seems to be working for me now.
User contributions licensed under CC BY-SA 3.0