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

Program 'winget.exe' failed to run: Access is denied.At line:1 char:1 #876

Closed
bckelley opened this issue Apr 19, 2021 · 9 comments
Closed
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author-Feedback Issue needs attention from issue or PR author
Milestone

Comments

@bckelley
Copy link

anytime I run winget install app or any command other then just winget i get this error

ResourceUnavailable: Program 'winget.exe' failed to run: Access is denied.At line:1 char:1

and when I run just winget I actually see the help menu. Same results with admin and non-admin privileges.

@ghost ghost added the Needs-Triage Issue need to be triaged label Apr 19, 2021
@denelon
Copy link
Contributor

denelon commented Apr 19, 2021

@bckelley can you share the output of winget --info?

Are you running on a Windows Insider build?
Is this an enterprise managed machine?
Did you install the "App Installer" via the Microsoft Store, or did you install from the GitHub releases page?

@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author-Feedback Issue needs attention from issue or PR author and removed Needs-Triage Issue need to be triaged labels Apr 19, 2021
@bckelley
Copy link
Author

I have no idea.
no.
yes.

@ghost ghost added Needs-Attention Issue needs attention from Microsoft and removed Needs-Author-Feedback Issue needs attention from issue or PR author labels Apr 19, 2021
@denelon
Copy link
Contributor

denelon commented Apr 19, 2021

I'd like to help get this working for you.

I'll assume you're not running a Windows Insider build as you would likely know if you were.
My last question was regarding the method you used to install the Windows Package Manager.

Can you give some additional detail about which version of Windows you are running and how you installed the Windows Package Manager?

Are you trying to run the tool in PowerShell or CMD?

@bckelley
Copy link
Author

Windows Version 10.0.18362
As for

and how you installed the Windows Package Manager?

I already answered that when I said yes your

Did you install the "App Installer" via the Microsoft Store, or did you install from the GitHub releases page?

question

@denelon
Copy link
Contributor

denelon commented Apr 19, 2021

I'm trying to get clarity so I might be able to reproduce the issue. I've only seen this specific error one other time out of tens of thousands of installations. Users would usually do one of the two following things:

  1. Install the "App Installer" via the store.
  2. Download and install the "App Installer" via the GitHub releases page and install it directly.

You may have done both which isn't necessary. That may be part of the problem. If you did both, which one was first and which one was second?

Did you fill out the form to join the Windows Package Manager Insider flight ring? If you did, you would need to be signed into the store with the Microsoft Account (MSA) to get the flighted build from the Microsoft Store.

We've seen what appears to be an OS problem with #210

That issue may be able to help find the fix. In a few instances, a reboot seems to have corrected the problem, but not in all cases.

@bckelley
Copy link
Author

I have only installed using the microsoft store!

@denelon denelon changed the title Just another useless microsoft product Program 'winget.exe' failed to run: Access is denied.At line:1 char:1 Apr 19, 2021
@denelon denelon removed the Needs-Attention Issue needs attention from Microsoft label Apr 20, 2021
@denelon denelon added this to the v.Next - Windows Package Manager milestone May 21, 2021
@denelon
Copy link
Contributor

denelon commented Sep 21, 2021

@bckelley are you still having this issue? We've been working through several issues related to the Windows Package Manager not working. We've found at least one instance across more than one Issue related to a KB article associated with an update to App Installer. I'm not able to reproduce this without some assistance.

@denelon denelon added the Needs-Author-Feedback Issue needs attention from issue or PR author label Sep 21, 2021
@denelon
Copy link
Contributor

denelon commented Sep 21, 2021

@bckelley we've updated our troubleshooting guide. Let us know if none of these steps resolves the issue.

@chandanroksjsr
Copy link

had same issue went to app & features -> advanced options in app installer -> terminate repair & reset then it started working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author-Feedback Issue needs attention from issue or PR author
Projects
None yet
Development

No branches or pull requests

3 participants