I know if I have .appx package file, I can install it via powershell with the Add-AppxPackage cmdlet. However, I simply want to download & install Microsoft Store packages by name.
I don't want to have to go to the Microsoft Store page, start fiddler, start the download, capture the .appx file URL and then manually download it so that I can use Add-AppxPackage. (See how Windows OS Hub did that here)
That could be fun - but it will be flaky. I need a robust scriptable method for managing Windows Store apps.
(There are a few software packages that are only accessible via Microsoft Store. Everything else I can get via Chocolatey or direct msi download.)
One example that I can't yet script is installation of the HEIF Image Extensions (needed to view the image format from iPhones: *.HEIC format.
Once I install this from the Windows Store, it shows up with Get-AppxPackage
PS C:\Tools> Get-AppxPackage | Where-Object {$_.Name -eq "Microsoft.HEVCVideoExtension" } Name : Microsoft.HEVCVideoExtension Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US Architecture : X64 ResourceId : Version : 1.0.31053.0 PackageFullName : Microsoft.HEVCVideoExtension_1.0.31053.0_x64__8wekyb3d8bbwe InstallLocation : C:\Program Files\WindowsApps\Microsoft.HEVCVideoExtension_1.0.31053.0_x64__8wekyb3d8bbwe IsFramework : False PackageFamilyName : Microsoft.HEVCVideoExtension_8wekyb3d8bbwe PublisherId : 8wekyb3d8bbwe IsResourcePackage : False IsBundle : False IsDevelopmentMode : False NonRemovable : False Dependencies : {Microsoft.VCLibs.140.00_14.0.27810.0_x64__8wekyb3d8bbwe} IsPartiallyStaged : False SignatureKind : Store Status : Ok What I want is the cmdlet: Download-AppxPackage so that I can do:
Download-AppxPackage -Name "Microsoft.HEVCVideoExtension" Does anyone know how I can do this?