Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recent Windows 11 update broke/removed winget #4586

Closed
Nexxsys opened this issue Jun 26, 2024 · 2 comments
Closed

Recent Windows 11 update broke/removed winget #4586

Nexxsys opened this issue Jun 26, 2024 · 2 comments
Milestone

Comments

@Nexxsys
Copy link

Nexxsys commented Jun 26, 2024

Brief description of your issue

I have tried the various solutions listed in a previous bug/issue here, but with the same result: winget is an unrecognized cmdlet.

PS C:\Users\nexxsys> winget-install
winget-install 4.1.2
To check for updates, run winget-install -CheckForUpdate
To delay script exit, run winget-install -Wait

#################
# Prerequisites #
#################

Downloading VCLibs...
Downloading UI.Xaml...

##########
# winget #
##########

Downloading winget license...
Downloading winget...
Installing winget and its dependencies...

############
# Complete #
############

winget installed successfully.
Checking if winget is installed and working...

###############
# Registering #
###############

winget command registered successfully.

PS C:\Users\nexxsys> winget
winget : The term 'winget' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify 
that the path is correct and try again.
At line:1 char:1
+ winget
+ ~~~~~~
    + CategoryInfo          : ObjectNotFound: (winget:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 

PS C:\Users\nexxsys> 

Steps to reproduce

https://github.com/microsoft/winget-cli/issues/3832

Tried this - no change in PowerShell 5 and 7 as adminstrator

Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile winget.msixbundle
Add-AppxPackage winget.msixbundle
del winget.msixbundle

Tried this - no change in PowerShell 5 and 7 as administrator

Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
Install-Script -Name winget-install -Force
winget-install.ps1 -Force

Expected behavior

Installation of winget-cli to a functional state.

Actual behavior

winget not a recognized cmdlet

Environment

POWERSHELL_DISTRIBUTION_CHANN… MSI:Windows 10 Home
PROCESSOR_ARCHITECTURE         AMD64
PROCESSOR_IDENTIFIER           AMD64 Family 25 Model 33 Stepping 2, AuthenticAMD
PROCESSOR_LEVEL                25
PROCESSOR_REVISION             2102
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Jun 26, 2024
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@Nexxsys
Copy link
Author

Nexxsys commented Jun 26, 2024

Resolved. Had to add the following to User Path: %USERPROFILE%\AppData\Local\Microsoft\WindowsApps

@Nexxsys Nexxsys closed this as completed Jun 26, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage Issue need to be triaged label Jun 26, 2024
@denelon denelon added this to the 1.8 Client milestone Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants