
私の PC では Windows 10 Pro 64 ビットを実行しており、Windows 10 用の Windows ADK をインストールしています。Windows システム イメージ マネージャーを使用していて、その中にファイルを読み込もうとすると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)
やった後いくつかの研究、エラー メッセージ (16384) で要求されたバージョンに ADK をアップグレードするという答えを見つけました。
ダウンロードできましたこのバージョンはこちら。
現在 SIM にあるバージョンを確認したところ、バージョン 10.0.10240.16384 であることがわかりました。
エラーなしで、Windows 10 インストール ディスクから install.wim を 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 を試してみることにしました。今のところ、これがうまく機能しているようです。