Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

A package is not installed when you are servicing an offline image that has pended content and then try to add the package


View products that this article applies to.

Symptoms

When you are servicing an offline image that has pended content and then try to add a package by using the Deployment Image Servicing and Management (DISM) command-line option /Add-Package /PreventPending, the package is not installed. The /PreventPending argument can be used successfully only when you are servicing an image that has no pended content.

If you service the image by using the /PreventPending argument despite the presence of pended content, the package is falsely reported as "installed" even though no installation operation is complete. At this point, the only way to confirm which servicing operations were successfully completed is to boot into the image. This lets you verify what is installed.

↑ Back to the top


Cause

This issue occurs because of the way that the system marks package states during offline servicing operations.

↑ Back to the top


Resolution

To resolve this issue, do not use the /PreventPending argument to service an offline image if the image has pended content. If you do use the /PreventPending argument, the package state is reported incorrectly until you boot into the image. 

If the image has pended content, you may continue with offline servicing. However, you should not use the /PreventPending argument. If you want to use the /PreventPending argument anyway, you should take one of the following actions: 
  • Boot the image. (This results in the pended content being installed.) Then, recapture the image to continue servicing. 
  • Discard the image, and then start again by using a clean image.

If you use the /PreventPending argument against an offline image that has pended content, the only way to confirm which servicing operations were actually performed and completed is to boot into the system. After the image is online, you can use the /Get-Packages option and other DISM inventory commands to review what is installed in the image. Or, you can recapture the image and continue to service the image offline. Pended content will be cleared from the image after you boot the image and then recapture the image. Querying the servicing state without booting the image will produce incorrect and false results.

↑ Back to the top


More Information

To determine whether the image that is being serviced has pended content, you can look for the Pending.xml file. This file indicates the presence of pended content in the image. If the Pending.xml file is present, you can find it in the WinSxS folder of the image that you are servicing. For example, it will be located in the following folder: 
<mount path>\Windows\WinSxS\

For more information about the DISM command-line options, go to the following Microsoft TechNet website:

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 2749510
Revision : 1
Created on : 1/7/2017
Published on : 10/17/2012
Exists online : False
Views : 708