Dism.exe /apply-image

Some packages require other packages to be installed first. If there is a dependency requirement, the best way to ensure the correct order of the installation is by using dism.exe /apply-image answer file.

The following servicing options are available to apply an unattend. The following table provides a description of how an unattended servicing option can be used. These options are not case sensitive. When used immediately after an unattended servicing command-line option, information about the option and the arguments is displayed. Additional topics might become available when an image is specified. If you are updating packages or other settings using an unattended answer file, you can apply the answer file to an offline or online image.

When you add packages to an image using an unattended answer file, the applicability of the package will not be checked. The answer file will be applied, and the operation will complete even if there are packages specified in the answer file which do not apply to the image. If you are updating device drivers using an unattended answer file, you must apply the answer file to an offline image. This is because some settings in the Specialize configuration pass might be applied to the operating system. However, if you use a manually authored answer file, you must validate the answer file in Windows SIM to verify that it works.

For more information, see Best Practices for Authoring Answer Files. When you apply an answer file by using DISM, the answer file is not cached on the target computer. Like other disk image formats, a WIM file contains a set of files and associated filesystem metadata. The primary advantages of being file-based is hardware independence and single-instance storage of a file referenced multiple times in the filesystem tree. Since the files are stored inside a single WIM file, the overhead of opening and closing many individual files is reduced. WIM files can contain multiple disk images, which are referenced either by their numerical index or by their unique name.