microsoft / microsoft/winget-cli

WinGet COM Server denies installation of non-UWP apps in Microsoft Store

Open
#3,936 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug msstore
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

Can't install non-UWP apps in Microsoft Store, for example, Adobe Photoshop and Zoom, Store reports 0x80070005. However they can be installed through winget command line. This is not entirely a Store problem because Microsoft Store was removed and fresh installed countless times and when this happens the following logs are recorded:

Install state changing for product XPFD4T9N395QN6: Pending => Error
Exception Details: System.UnauthorizedAccessException
Function: OnStatusChanged
Source: .\src\Shell\WinStore.App\Acquisition\InstallManager.cs (254)
TaskScheduler.UnobservedTaskException: "Access is denied. (Exception from HRESULT: 0x80070005)".
Exception Details: System.UnauthorizedAccessException
Function: 
Source:  (0)
PackageManager is not available. CheckEnoughSpaceOnPackageVolumeAsync defaults to true
Error Code: Unknown HResult Error code: 0x80000000
Function: CheckEnoughSpaceOnPackageVolumeAsync
Source: .\src\Shell\WinStore.App\Helpers\PackageStatusHelper.cs (741)
Failed to create a WpmInstallerShim instance to reconnect an install.
Exception Details: System.UnauthorizedAccessException
Function: ReconnectAsync
Source: .\src\Shell\WinStore.App\Acquisition\WindowsPackageManagerInstaller.cs (379)
Exception creating Microsoft.Management.Deployment.PackageManager: Access is denied. (Exception from HRESULT: 0x80070005)
Exception Details: System.UnauthorizedAccessException
Function: Reset
Source: .\src\Core\WinStore.Core\Acquisition\PackageManager\WindowsPackageManager.cs (74)

and an empty log file WinGetCOM-XXX.log is created in %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir. Seems that WindowsPackageManagerServer refused the API call for unknown reason

Steps to reproduce

Try to install a non-UWP app in Microsoft Store, like Adobe Photoshop and Zoom

Expected behavior

The app installs with no problem, through both Microsoft Store and winget command line

Actual behavior

Store can't detect if the app is installed because access to package manager's COM server is denied, already installed apps always show a "Install" button, and click on "Install" results in 0x80070005 regardless of it is installed through winget command line or not

Environment
Windows Package Manager v1.6.3133
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.3693
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.3133.0

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the Store installation path through the mentioned WinStore.App\Acquisition\InstallManager.cs, WindowsPackageManagerInstaller.cs, and WinStore.Core\Acquisition\PackageManager\WindowsPackageManager.cs locations, then inspect the empty WinGetCOM log. Reproduce the Adobe Photoshop or Zoom installation failure and identify why the COM server returns 0x80070005; done means Store detection and installation work for non-UWP apps without access-denied errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api, cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.