microsoft / microsoft/winget-cli
Cannot install winget - An error occurred because a user was logged off.
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Brief description of your issue
I am not able to install the latest version of winget from Github using PowerShell Command on Windows 10.
Steps to reproduce
I am trying to install winget using the PowerShell command below on Windows 10:
powershell -command "Add-AppxPackage https://github.com/microsoft/winget-cli/releases/latest/download/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
Expected behavior
Should install the latest version of winget
Actual behavior
I get the following error:
`Error: Add-AppxPackage : Deployment failed with HRESULT: 0x80073D19, An error occurred because a user was logged off.
Windows cannot install package Microsoft.DesktopAppInstaller_1.21.2771.0_x64__8wekyb3d8bbwe because this package
depends on a framework that could not be found. Provide the framework "Microsoft.UI.Xaml.2.7" published by
"CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor
architecture and minimum version 7.2109.13004.0, along with this package to install. The frameworks with name
"Microsoft.UI.Xaml.2.7" currently installed are: {}
NOTE: For additional information, look for [ActivityId] 71e70201-feb0-0010-cd13-3a72b0fed901 in the Event Log or use
the command line Get-AppPackageLog -ActivityID 71e70201-feb0-0010-cd13-3a72b0fed901
At line:1 char:1
- Add-AppxPackage -Path winget.msixbundle
-
+ CategoryInfo : NotSpecified: (F:\o\Git\src\winget.msixbundle:String) [Add-AppxPackage], Exception + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand`
Environment
Windows version:
Version BuildNumber
------- -----------
10.0.19043 19043
The machine is logged in as a service account that has admin permissions.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the PowerShell Add-AppxPackage command and the reported Microsoft.UI.Xaml.2.7 dependency error on Windows 10 build 19043. No repository file or test is named; done would require establishing whether installation works for the stated service-account environment and documenting or addressing the dependency failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100