Skip to content

Bugfix: Skip component cleanup when servicing is pending - #654

Open
CaioFPeres wants to merge 1 commit into
ntdevlabs:winui-previewfrom
CaioFPeres:DISM-pending-OP-fix
Open

CaioFPeres wants to merge 1 commit into
ntdevlabs:winui-previewfrom
CaioFPeres:DISM-pending-OP-fix

Conversation

@CaioFPeres

@CaioFPeres CaioFPeres commented Oct 15, 2026 •

Copy link
Copy Markdown

Skip component cleanup when servicing is pending

Check package, feature, and pending-marker state before invoking DISM cleanup. Serviceable builds now skip cleanup with a warning, while Core and component payload removal stop safely when pending work is detected.

Add regression tests and document the behavior.

Without this fix, every build of a serviceable image would fail to clean up the component store, leaving it in an error state and preventing iso build completion.
Problem found on official 26H2 ISO.

Logs (see "Retained because this image has pending servicing operations"):

[Advanced payloads] Remove selected payload files
[Redundant data] Remove redundant offline data
[Redundant data] Skipped cleanup: Windows\SoftwareDistribution\Download: Retained because this image has pending servicing operations.
[Redundant data] Skipped cleanup: Windows\Temp: Retained because this image has pending servicing operations.
[Redundant data] Skipped cleanup: Users\Default\AppData\Local\Temp: Retained because this image has pending servicing operations.
[Redundant data] Skipped cleanup: Windows\Logs\CBS: No redundant files.
[Redundant data] Skipped cleanup: Windows\Logs\DISM: Not present.
[Redundant data] Skipped cleanup: Windows\MEMORY.DMP: Not present.
[Redundant data] Skipped cleanup: Windows\Minidump: Not present.
[Redundant data] Skipped cleanup: ProgramData\Microsoft\Windows\WER\ReportArchive: No redundant files.
[Redundant data] Skipped cleanup: ProgramData\Microsoft\Windows\WER\ReportQueue: No redundant files.
[Redundant data] Remove redundant offline data
[Commit] Save image changes
[Commit] Deployment Image Servicing and Management tool
[Commit] Version: 10.0.26100.9549
[Commit] Saving image
[Commit] Unmounting image
[Commit] The operation completed successfully.

Check package, feature, and pending-marker state before invoking DISM cleanup.
Serviceable builds now skip cleanup with a warning, while Core and component
payload removal stop safely when pending work is detected.

Add regression tests and document the behavior.

Without this fix, every build of a serviceable image
would fail to clean up the component store, leaving it in an
error state and preventing iso build completion.
@CaioFPeres CaioFPeres changed the title Skip component cleanup when servicing is pending Bugfix: Skip component cleanup when servicing is pending Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant