This topic has not yet been rated - Rate this topic

Maintain an Image Using a Configuration Set and DISM

4/19/2012

There is more than one method you can use to apply packages and updates to Windows Embedded Standard 7 images. However, the following procedure is the most efficient method, as well as being the least vulnerable to user errors.

To apply packages and updates to Standard 7 images, create a configuration set and apply that configuration set by using Deployment Image Servicing and Management (DISM). Using a configuration set and resolving dependencies in Image Configuration Editor can help you avoid problems caused by missing dependencies.

Ff794887.note(en-US,WinEmbedded.60).gifNote:
DISM can only install packages; it cannot copy files referenced with path settings. If you require this copy functionality, you must use Image Builder Wizard. For more information about customizing a running image, see Customize a Running Image.
  • You have access to either a device currently running Windows Embedded Standard 7 or to a Windows image (WIM) file containing the Standard 7 image you want to update.
  • You have created a validated configuration set using Image Configuration Editor.
Ff794887.note(en-US,WinEmbedded.60).gifNote:
If you are deploying or redeploying feature sets, you must redeploy the appropriate languages for your image to satisfy dependencies. This is true even if you are not adding new languages to your image. Failure to do so can result in an image that does not function correctly.
  • You have installed Standard 7 Toolkit on a development computer.
  1. Create a directory on your development computer and mount your image to that directory by typing the following at a command prompt:

    MD C:\MyDir\Mount
    DISM /Mount-Wim /Wimfile:E:\images\myimage.wim /index:1 /Mountdir:C:\MyDir\Mount
    
  2. Apply the Autounattend.xml file created with your configuration set by typing the following at a command prompt, replacing <file_path> with the full path to the Autounattend.xml file in the configuration set:

    DISM /image:C:\MyDir\Mount /Apply-Unattend:<file_path>
    
  3. Verify the packages were added to the image using the DISM /Get-Packages command, if applicable. The /Get-Packages command does not return a list of .msu packages. Instead, it lists the corresponding .cab package(s). To list these packages, type the following at a command prompt:

    DISM /image:C:\MyDir\Mount /Get-Packages
    
  4. Unmount the image and commit your changes by typing the following at a command prompt:

    DISM /Unmount-Wim /Mountdir:C:\MyDir\Mount /Commit
    

Your image is now updated with the contents of your configuration set.

  1. Ff794887.note(en-US,WinEmbedded.60).gifNote:
    The Standard 7 setup process performs several verifications, which rely on the target device's date and time settings. For optimal performance, confirm that the target device is set to the correct date and time.

    Apply the Autounattend.xml file created with your configuration set by typing the following at a command prompt on your device, replacing <file_path> with the full path to the configuration set:

    DISM /Online /Apply-Unattend:<file_path>
    
    Ff794887.Caution(en-US,WinEmbedded.60).gifCaution:
    If DISM fails in Step 1, and you receive the error message Error 3: The system cannot find the path specified, then the environment variable is overriding DISM's command-line variable. To fix this issue, remove the value of the environment variable ConfigSetRoot on the target device, and then repeat Step 1.
    Ff794887.note(en-US,WinEmbedded.60).gifNote:
    This error message occurs when you perform an online installation, and occurs most often when you are installing from the original Standard 7 disk using the Create IBW disk from an Answer File option in Image Configuration Editor.
  2. Verify the packages were added to the image using the DISM /Get-Packages command, if applicable. The /Get-Packages command does not return a list of .msu packages. Instead, it lists the corresponding .cab package(s). To list these packages, type the following at a command prompt:

    DISM /Online /Get-Packages
    

    Your device is now updated with the contents of your configuration set.

Did you find this helpful?
(1500 characters remaining)