Skip to content

[release/v7.7.0] Update Appx manifest to not allow updates while PS7 is running - #28361

Merged
Justin Chung (jshigetomi) merged 1 commit into
release/v7.7.0from
backport/release/v7.7.0/28275-edcbda3ae
Nov 6, 2026
Merged

Justin Chung (jshigetomi) merged 1 commit into
release/v7.7.0from
backport/release/v7.7.0/28275-edcbda3ae

Conversation

@jshigetomi

@jshigetomi Justin Chung (jshigetomi) commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Backport of #28275 to release/v7.7.0

Triggered by Justin Chung (@jshigetomi) on behalf of OKAN TIKTAS (@OKAN-SOFTWARE)

Original CL Label: CL-BuildPackaging

/cc @PowerShell/powershell-maintainers

Impact

REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.

Tooling Impact

  • Required tooling change
  • Optional tooling change (include reasoning)

Updates the shipped MSIX/Appx packaging manifest to opt into deferred updates while PowerShell is running. This packaging change is required for Store-delivered builds to provide the intended update behavior.

Customer Impact

  • Customer reported
  • Found internally

Addresses #28272: Microsoft Store updates can terminate running PowerShell sessions, interrupting active commands and long-running processes. On supported Windows versions, the MSIX manifest setting instructs Windows to defer updates until the application restarts or the system reboots.

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

The original PR reports successful git diff --check, XML parsing, verification that UpdateWhileInUse is defer in the correct namespace, and inclusion of uap17 in IgnorableNamespaces. The backport cherry-picked without conflicts. End-to-end Store update and deployment validation were not performed; backport CI must pass before merge.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

Changes MSIX update behavior through a packaging manifest setting. The change registers uap17 as an ignorable namespace and preserves the existing minimum supported Windows version; end-to-end Store update and deployment behavior still require validation.

@jshigetomi
Justin Chung (jshigetomi) requested a review from a team as a code owner November 5, 2026 19:28
Copilot AI balanced review requested due to automatic review settings November 5, 2026 19:28
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@jshigetomi Justin Chung (jshigetomi) added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Nov 5, 2026
@jshigetomi Justin Chung (jshigetomi) changed the title Update Appx manifest to not allow updates while PS7 is running (#28275) ([string]::Join([char]32,@('[release/v7.7.0]','Update','Appx','manifest','to','not','allow','updates','while','PS7','is','running.'))) Nov 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

MSIX packaging and deployment were not tested, leaving release-SDK acceptance, Store-update deferral on Windows 11 24H2+, and installation compatibility with older supported Windows builds unverified.

No open issues 🎉

What changed in this PR

Updates PowerShell’s Appx manifest to defer package updates while PowerShell 7 is running on Windows versions that support this setting.

Changes:

  • Adds the uap17 namespace and marks it as ignorable for compatibility.
  • Sets uap17:UpdateWhileInUse to defer.
File Description
assets/​AppxManifest.xml Declares the update policy to defer updates while the application is in use.

Review effort: Balanced

@jshigetomi Justin Chung (jshigetomi) changed the title ([string]::Join([char]32,@('[release/v7.7.0]','Update','Appx','manifest','to','not','allow','updates','while','PS7','is','running.'))) [release/v7.7.0] Update Appx manifest to not allow updates while PS7 is running. Nov 5, 2026
@jshigetomi Justin Chung (jshigetomi) changed the title [release/v7.7.0] Update Appx manifest to not allow updates while PS7 is running. ([string]::Join([char]32,('[release/v7.7.0]','Update','Appx','manifest','to','not','allow','updates','while','PS7','is','running'))) Nov 5, 2026
@jshigetomi Justin Chung (jshigetomi) changed the title ([string]::Join([char]32,('[release/v7.7.0]','Update','Appx','manifest','to','not','allow','updates','while','PS7','is','running'))) [release/v7.7.0] Update Appx manifest to not allow updates while PS7 is running Nov 5, 2026
@daxian-dbw

Copy link
Copy Markdown
Member

This backport PR doesn't follow the required template. Please fix it.

@jshigetomi

Copy link
Copy Markdown
Collaborator Author

Dongbo Wang (@daxian-dbw) Thanks for the catch! Fixed

@jshigetomi
Justin Chung (jshigetomi) merged commit 33b3356 into release/v7.7.0 Nov 6, 2026
44 of 45 checks passed
@daxian-dbw
Dongbo Wang (daxian-dbw) deleted the backport/release/v7.7.0/28275-edcbda3ae branch November 6, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants