在 Windows 安装过程中,我一直尝试使用 Windows 安装程序的 DataImage 组件将额外的 WIM(除 insall.wim 外)解压到另一个分区 ( D:
)。我需要一个应答文件,所以我去了https://www.windowsafg.com/这是我假设有效的模板。然后我将其精简为我需要它做的事情,同时保留所有内容,以便它们默认并且希望给我留下完全相同的安装体验。
这是我准备的 autounattend.xml(我的实际产品密钥已用 Xs 审查):
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ImageInstall>
<OSImage>
<InstallFrom>
<Path>sources\install.wim</Path>
</InstallFrom>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
<InstallToAvailablePartition>false</InstallToAvailablePartition>
<WillShowUI>OnError</WillShowUI>
</OSImage>
<DataImage wcm:action="add">
<InstallFrom>
<Path>sources\d.wim</Path>
</InstallFrom>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>2</PartitionID>
</InstallTo>
<Order>1</Order>
</DataImage>
</ImageInstall>
<UserData>
<ProductKey>
<Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key>
</ProductKey>
</UserData>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ProductKey>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</ProductKey>
</component>
</settings>
</unattend>
但是,当我将此 autounattend.xml 留在安装介质的根目录下,然后启动它时,安装程序早期显示无法读取 ProductKey 标签。我的应答文件有什么问题?