Validate an Answer File
Before an answer file can be saved in Windows System Image Manager (Windows SIM), the settings must first be validated.
The following procedure describes how to validate the settings in an answer file. When an answer file is validated successfully, all the setting values in the answer file can be applied to the Windows image.
To validate the settings in an answer file
- In Windows SIM, open a Windows image.
For more information, see Open a Windows Image or Catalog File.
- Open or create an answer file.
For more information, see Open an Answer File or Create an Answer File.
- On the Tools menu, click Validate Answer File.
The setting values in the answer file are compared with the available settings in the Windows image.
If no modifications have been made to component settings, the component is not saved with the answer file.
If the answer file validates successfully, a message verifying no warnings or errors in the answer file appears in the Messages pane on the Validation tab. Otherwise, error messages appear in the same location.
If an error occurs, double-click the error in the Messages pane to navigate to the setting.
You can also use the CPI API to programmatically validate an answer file in an environment that supports the .NET framework. However, to validate an answer file in an environment that does not support managed code and the .NET framework, you must use publicly documented native code interfaces. Sample code that utilizes these interfaces is provided with the Windows OPK and Windows AIK in the samples directory.
The publicly documented interfaces are documented in the Windows SDK Web site.