Can't open install.wim in System Image Manager because of invalid version
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
Related videos on Youtube
![Bas](https://i.stack.imgur.com/FozLD.jpg?s=256&g=1)
Bas
Updated on September 18, 2022Comments
-
Bas almost 2 years
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?
-
Moab almost 9 yearsSee if the answer here solves it for you
-
Bas almost 9 years@Moab As described in my question, i did that, and the problem still occurs when trying to open the file with the right version of WIM.
-
ზურა კურტანიძე almost 9 yearsJust testing per OP request here.
-
-
Ben Voigt over 7 yearsThis helped me when WSIM demanded the same version 10.0.14393.0 of the ADK that I was already using.