创建或打开答案文件Create or Open an Answer File

以下过程介绍如何创建新的应答文件或通过使用 Windows® 系统映像管理器 (Windows SIM) 中打开现有答案文件。The following procedure describes how to create a new answer file or open an existing answer file by using Windows® System Image Manager (Windows SIM).

创建或打开答案文件后,可以将设置和程序包添加到它。After you create or open an answer file, you can add settings and packages to it. 有关详细信息,请参阅配置组件和答案文件中的设置将包添加到答案文件For more information, see Configure Components and Settings in an Answer File and Add a Package to an Answer File.

创建应答文件Create an answer file

  1. 打开 Windows SIM。Open Windows SIM.
  2. 打开 Windows 映像。Open a Windows image. 有关详细信息,请参阅打开 Windows 映像或编录文件For more information, see Open a Windows Image or Catalog File.
  3. 在中答案文件窗格中,选择顶端节点,然后右键单击以选中新的答案文件In the Answer File pane, select the top node, and then right-click to select New Answer File.

打开现有答案文件Open an existing answer file

  1. 打开 Windows SIM。Open Windows SIM.
  2. 右键单击答案文件窗格中,,然后单击打开答案文件Right-click the Answer File pane, and then click Open Answer File. 打开对话框随即出现。The Open dialog box appears.
  3. 浏览到现有答案文件,然后依次打开Browse to the existing answer file, and then click Open.

答案文件将显示在答案文件窗格。The answer file appears in the Answer File pane.

备注

如果它仍处于其原始位置,还会打开 Windows 映像生成的文件的答案文件。The Windows image file that generated the answer file also opens if it is still in its original location.

疑难解答Troubleshooting

在某些情况下,Windows SIM 打开现有答案文件时可能会显示验证错误。In some cases, Windows SIM might display validation errors when opening an existing answer file. 如果发生这种情况,请尝试以下选项:If this happens, try the following options:

  • 消息窗格中显示问题的答案文件中的单个设置。Problems with individual settings in an answer file appear in the Messages pane. 使用此信息来确定和解决问题。Use this information to identify and address the problem.
  • 如果答案文件将打开,但列为所有设置"中不存在"消息窗格中,然后使用该文件可能在错误 PC 体系结构-例如,原始答案文件可能会基于 x86、 和 Windows 目录文件是 amd64。If the answer file opens, but all the settings are listed as “does not exist” in the Messages pane, then the file you’re using might be for the wrong PC architecture – for instance, your original answer file might be based on x86, and your Windows catalog file is amd64. 若要解决此问题,可以查找和替换 processorArchitecture ="x86"的 processorArchitecture ="amd64",然后重新打开该文件。To fix this, you can find and replace processorArchitecture="x86" for processorArchitecture="amd64" and re-open the file.
  • 如果 Windows SIM 无法在所有打开的文件,这通常意味着在答案文件中没有某些 XML 格式不正确。If Windows SIM can’t open the file at all, this often means there’s some malformed XML in the answer file. 您可以经常将问题缩小通过剪切掉的节的答案文件,一次,一大块并再次尝试重新打开该文件。You can often narrow down the problem by cutting out sections of the answer file, one large block at a time, and trying again to re-open the file.

Windows 系统映像管理器操作指南主题Windows System Image Manager How-to Topics

在答案文件中配置的组件和设置Configure Components and Settings in an Answer File

验证答案文件Validate an Answer File

隐藏在答案文件中的敏感数据Hide Sensitive Data in an Answer File

将设备驱动程序路径添加到答案文件Add a Device Driver Path to an Answer File

将包添加到答案文件Add a Package to an Answer File

将自定义命令添加到答案文件Add a Custom Command to an Answer File

在 Windows SIM 中查找组件、 设置或包Find a Component, Setting, or Package in Windows SIM