由於版本無效,無法在系統映像管理員中開啟 install.wim

由於版本無效,無法在系統映像管理員中開啟 install.wim

我在電腦上運行 Windows 10 Pro 64 位,並安裝了適用於 Windows 10 的 Windows ADK install.wim

在此輸入影像描述

日誌中的內容如下所示:

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)

做完之後一些研究,我找到了將 ADK 升級到錯誤訊息 (16384) 中要求的版本的答案。

我可以下載這個版本在這裡

在檢查 SIM 卡中目前的版本時,我注意到我的版本是 10.0.10240.16384:

在此輸入影像描述

如何將 install.wim 從 Windows 10 安裝磁碟載入到 SIM 中而不出現任何錯誤?

答案1

我找到了解決方案這裡

從部署工具環境執行以下腳本

:: 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

現在您可以在 WSIM 中開啟 install.wim。

您也可以刪除原始 (install.bak) 檔案並使用 oscdimg.exe 建立可啟動媒體

答案2

嘗試使用 7Zip 將 install.esd 提取到 install.wim。

我曾嘗試使用 DISM cmd 以管理員身份執行 cmd 行,但也收到「嘗試載入格式不正確的程式」。 DISM 日誌檔案的作用不大,我決定嘗試 7ZIP,它現在似乎對我有用。

相關內容