As I can see there and as I know you’re hitting 0x80070005 (Access denied) during staging. That’s a permissions/policy block, not a deps issue.
Can you try these step to:
1) Set the appx policies (then reboot)
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Appx" /v AllowAllTrustedApps /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Appx" /v AllowDevelopmentWithoutDevLicense /t REG_DWORD /d 1 /f
Reboot once.
2) Temporarily take AV out of the way
- Add an exclusion for
C:\Packages in Defender (Windows Security > Virus & threat protection > Exclusions).
Or stop 3rd-party AV if present.
3) Install for current user with explicit deps (no folder) Open Windows PowerShell 5.1 as Admin.
$bundle = 'C:\Packages\Photos\Microsoft.Windows.Photos_2019.19061.18920.0_neutral_~_8wekyb3d8bbwe.AppxBundle'
$deps = @(
'C:\Packages\Deps\Microsoft.VCLibs.140.00_14.0.33519.0_x64__8wekyb3d8bbwe.appx',
'C:\Packages\Deps\Microsoft.NET.Native.Framework.2.2_2.2.29512.0_x64__8wekyb3d8bbwe.appx',
'C:\Packages\Deps\Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_x64__8wekyb3d8bbwe.appx',
'C:\Packages\Deps\Microsoft.UI.Xaml.2.1_2.11906.6001.0_x64__8wekyb3d8bbwe.appx'
)
Unblock-File $bundle; $deps | % { Unblock-File $_ }
Add-AppxPackage -Path $bundle -DependencyPath $deps -ForceUpdateFromAnyVersion
If this succeeds, Photos is installed for the current user.
4) Provision for all new users (run as SYSTEM) Error 5 often vanishes when DISM runs as SYSTEM:
psexec -i -s cmd.exe
dism /online /Add-ProvisionedAppxPackage ^
/PackagePath:"C:\Packages\Photos\Microsoft.Windows.Photos_2019.19061.18920.0_neutral_~_8wekyb3d8bbwe.AppxBundle" ^
/DependencyPackagePath:"C:\Packages\Deps\Microsoft.VCLibs.140.00_14.0.33519.0_x64__8wekyb3d8bbwe.appx" ^
/DependencyPackagePath:"C:\Packages\Deps\Microsoft.NET.Native.Framework.2.2_2.2.29512.0_x64__8wekyb3d8bbwe.appx" ^
/DependencyPackagePath:"C:\Packages\Deps\Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_x64__8wekyb3d8bbwe.appx" ^
/DependencyPackagePath:"C:\Packages\Deps\Microsoft.UI.Xaml.2.1_2.11906.6001.0_x64__8wekyb3d8bbwe.appx" ^
/SkipLicense
5) If it still says 0x80070005 Run these to fix servicing/ACLs, then retry step 3:
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
icacls "C:\Program Files\WindowsApps" /verify
(If WindowsApps ACLs are broken, we can repair them, but don’t take ownership unless needed.)
6) Quick WDAC/AppLocker check (if in a domain)
(Get-CimInstance Win32_DeviceGuard).UsermodeCodeIntegrityPolicyEnforcementStatus
Get-AppLockerPolicy -Effective -ErrorAction SilentlyContinue | Select -ExpandProperty RuleCollections
If WDAC/AppLocker is Enforced, your IT policy is blocking sideloads—either relax the policy or install via Microsoft Store.