Skip to content

Instantly share code, notes, and snippets.

@ekardon
Created November 27, 2021 17:03
Show Gist options
  • Save ekardon/945918e6bbfa3f8d104819ba750f2c9c to your computer and use it in GitHub Desktop.
Save ekardon/945918e6bbfa3f8d104819ba750f2c9c to your computer and use it in GitHub Desktop.
<#
Example appxpackage manifest structure:
>(Get-Appxpackage *windowsstore* | Get-appxpackagemanifest).package
IgnorableNamespaces : uap mp rescap wincap build
xmlns : http://schemas.microsoft.com/appx/manifest/foundation/windows10
mp : http://schemas.microsoft.com/appx/2014/phone/manifest
uap : http://schemas.microsoft.com/appx/manifest/uap/windows10
rescap : http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities
wincap : http://schemas.microsoft.com/appx/manifest/foundation/windows10/windowscapabilities
build : http://schemas.microsoft.com/developer/appx/2015/build
Identity : Identity
PhoneIdentity : PhoneIdentity
Properties : Properties
Dependencies : Dependencies
Resources : Resources
Extensions : Extensions
Applications : Applications
Capabilities : Capabilities
Metadata : Metadata
#>
# Get App's FullName from partial package name
(Get-Appxpackage *windowsstore* | Get-appxpackagemanifest).package.identity.name
# Get App's version
(Get-Appxpackage *windowsstore* | Get-appxpackagemanifest).package.identity.version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment