Repository navigation
Enable admin-writable $PSHOME for MSIX installs via MutablePackageDirectory #27553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,13 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
|
|
||
| <Package IgnorableNamespaces="uap mp rescap desktop6" | ||
| <Package IgnorableNamespaces="uap mp rescap desktop6 desktop8" | ||
| xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" | ||
| xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" | ||
| xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" | ||
| xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3" | ||
| xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10" | ||
| xmlns:desktop6="http://schemas.microsoft.com/appx/manifest/desktop/windows10/6" | ||
| xmlns:desktop8="http://schemas.microsoft.com/appx/manifest/desktop/windows10/8" | ||
| xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"> | ||
|
|
||
| <Identity Name="Microsoft.$PRODUCTNAME$" ProcessorArchitecture="$ARCH$" Publisher="$PUBLISHER$" Version="$VERSION$" /> | ||
|
|
@@ -20,7 +21,7 @@ | |
| </Properties> | ||
|
|
||
| <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" /> | ||
| </Dependencies> | ||
|
|
||
| <Resources> | ||
|
|
@@ -41,13 +42,22 @@ | |
| </Application> | ||
| </Applications> | ||
|
|
||
| <Extensions> | ||
| <desktop8:Extension Category="windows.mutablePackageDirectories"> | ||
| <desktop8:MutablePackageDirectories> | ||
| <desktop8:MutablePackageDirectory Target="$(package.mutableroot)\$PRODUCTNAME$" /> | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To prevent collision Preview, Stable, and LTS installs will have different folders in the mutable directory.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any changes in the mutable files persist after updates, not documented but from local testing. |
||
| </desktop8:MutablePackageDirectories> | ||
| </desktop8:Extension> | ||
| </Extensions> | ||
|
|
||
| <Capabilities> | ||
| <Capability Name="internetClient" /> | ||
| <rescap:Capability Name="appLicensing" /> | ||
| <rescap:Capability Name="runFullTrust" /> | ||
| <rescap:Capability Name="unvirtualizedResources" /> | ||
| <rescap:Capability Name="packageManagement" /> | ||
| <rescap:Capability Name="packageQuery" /> | ||
| <rescap:Capability Name="modifiableApp" /> | ||
| </Capabilities> | ||
| <mp:PhoneIdentity PhoneProductId="$PHONEPRODUCTID$" PhonePublisherId="95d94207-0c7c-47ed-82db-d75c81153c35" /> | ||
| </Package> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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