add new store cmdlet to install photos legacy

This commit is contained in:
zoicware
2026-02-12 18:06:10 -05:00
committed by GitHub
parent 2afb6bc715
commit 86ddec0132

View File

@@ -2781,6 +2781,12 @@ function install-photoslegacy {
if (!$appx) {
try {
Get-Command store -ErrorAction Stop
#install photos legacy using new store cmdlet
store install 9NV2L4XVMCXM
}
catch {
Remove-Item "$($tempDir)Microsoft.PhotosLegacy_8wekyb3d8bbwe*" -Force -Recurse -ErrorAction SilentlyContinue
$downloadedfiles = Download-AppxPackage -PackageFamilyName 'Microsoft.PhotosLegacy_8wekyb3d8bbwe' -outputDir "$tempDir"
$package = $downloadedfiles | Where-Object { $_ -match '\.appxbundle$' } | Select-Object -First 1
@@ -2798,6 +2804,8 @@ function install-photoslegacy {
Write-status -msg "Can't find PhotosLegacy Installer" -errorOutput
}
}
}
}
function install-classicapps {