Enable admin-writable $PSHOME for MSIX installs via MutablePackageDirectory#27553
Enable admin-writable $PSHOME for MSIX installs via MutablePackageDirectory#27553jshigetomi wants to merge 3 commits into
Conversation
| <Extensions> | ||
| <desktop8:Extension Category="windows.mutablePackageDirectories"> | ||
| <desktop8:MutablePackageDirectories> | ||
| <desktop8:MutablePackageDirectory Target="$(package.mutableroot)\$PRODUCTNAME$" /> |
There was a problem hiding this comment.
To prevent collision Preview, Stable, and LTS installs will have different folders in the mutable directory.
https://learn.microsoft.com/en-us/windows/msix/manage/create-directory#considerations-for-projection
| <Extensions> | ||
| <desktop8:Extension Category="windows.mutablePackageDirectories"> | ||
| <desktop8:MutablePackageDirectories> | ||
| <desktop8:MutablePackageDirectory Target="$(package.mutableroot)\$PRODUCTNAME$" /> |
There was a problem hiding this comment.
Any changes in the mutable files persist after updates, not documented but from local testing.
|
|
||
| <Dependencies> | ||
| <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.18362.0" /> | ||
| <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.26100.0" /> |
There was a problem hiding this comment.
Win11 21H2 compatible. Will still run on Win10 but not get mutable directories.
https://learn.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-desktop8-mutablepackagedirectory#requirements
There was a problem hiding this comment.
Pull request overview
This pull request updates the MSIX AppxManifest to enable an admin-writable/mutable package directory for PowerShell installs (via windows.mutablePackageDirectories), while also refreshing manifest compatibility metadata for newer Windows builds.
Changes:
- Increased
TargetDeviceFamily/@MaxVersionTestedto10.0.26100.0. - Added the
desktop8manifest namespace plus a package-levelwindows.mutablePackageDirectoriesextension to declare a mutable package directory. - Added the restricted
modifiableAppcapability to support post-install modification scenarios.
PR Summary
This pull request updates the
assets/AppxManifest.xmlto add support for new Windows features and capabilities, ensuring compatibility with the latest Windows versions and allowing the app to use modifiable and mutable package directories.Manifest compatibility and feature updates:
MaxVersionTestedfor theTargetDeviceFamilyto10.0.26100.0to support newer Windows builds.desktop8namespace and a new<Extensions>section to declarewindows.mutablePackageDirectories, enabling the app to use mutable package directories on Windows 11 and above. [1] [2]Capabilities enhancements:
modifiableApprestricted capability, allowing the app to be modified after installation.PR Context
This change specifically updates the AppxManifest.xml to ensure compatibility with newer Windows versions and to unlock capabilities required by the MSIX-based deployment model.
Fixes: #9278 and the underlying issue for #25733
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright header