Skip to content

fix(install): defer success message until post-install checks#6098

Open
AMDphreak wants to merge 1 commit intomicrosoft:masterfrom
AMDphreak:fix/defer-install-success-after-checks
Open

fix(install): defer success message until post-install checks#6098
AMDphreak wants to merge 1 commit intomicrosoft:masterfrom
AMDphreak:fix/defer-install-success-after-checks

Conversation

@AMDphreak
Copy link

@AMDphreak AMDphreak commented Mar 21, 2026

Summary

Delays the Successfully installed / repair success line until after post-install work runs (ARP snapshot correlation, upgrade version verification, record install, installation notes).

Details

  • New context flags: DeferInstallSuccessMessage, PendingDeferredInstallSuccess, SuppressDeferredInstallSuccess.
  • InstallPackageInstaller sets defer, runs the existing pipeline, then ReportDeferredInstallSuccess.
  • ReportInstallerResult, MsixInstall, and Microsoft Store install/update/repair paths respect defer; MSIX registration-deferred suppresses generic success (warning already shown).
  • PendingDeferredInstallSuccess avoids printing success when the installer never completed (for example install lock cancelled before a success path).

Related

Complements accurate reporting after install (for example ARP / version checks); avoids claiming success before those steps finish.

Testing

CI build; manual install scenarios recommended.

Made with Cursor

Microsoft Reviewers: Open in CodeFlow

- Add DeferInstallSuccessMessage, PendingDeferredInstallSuccess, and
  SuppressDeferredInstallSuccess context flags.
- InstallPackageInstaller defers reporting until after ReportARPChanges,
  RecordInstall, and DisplayInstallationNotes.
- ReportInstallerResult, MsixInstall, and MS Store handlers honor defer;
  MSIX registration-deferred path suppresses generic success.
- ReportDeferredInstallSuccess avoids spurious success when the installer
  did not complete (e.g. lock cancellation).

Made-with: Cursor
@AMDphreak AMDphreak marked this pull request as ready for review March 21, 2026 09:54
@AMDphreak AMDphreak requested a review from a team as a code owner March 21, 2026 09:54
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