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

Error Code 0x80070043: The network name cannot be found #2885

Closed
Burkino opened this issue Jan 27, 2023 · 5 comments
Closed

Error Code 0x80070043: The network name cannot be found #2885

Burkino opened this issue Jan 27, 2023 · 5 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Milestone

Comments

@Burkino
Copy link

Burkino commented Jan 27, 2023

Brief description of your issue

This seems to only apply to .exe installers. I have 2 accounts, a User and Administrator account.
I run winget install/update <package> on the User account, and if the installer is a .exe and requires administrator I get the "The network name cannot be found" error.
image

Steps to reproduce

  1. Create a User account, one that is not an Administrator.
  2. On the User account, run winget install ViGEm.ViGEmBus (another example I found is Docker.DockerDesktop)
  3. It will download an installer that is a .exe into %LocalAppData%\Temp\WinGet\???
  4. A UAC prompt will popup (as expected), however after granting permission the install will error

Expected behavior

I expect it to install the program normally, show the UAC, get permission, continue installing.

Actual behavior

After the UAC it's showing the "The network name cannot be found" error.

I did find a temporary fix. If you give the Administrators group Full Control permissions on the %LocalAppData%\Temp\WinGet directory, and then open the .exe installer directly (NOT through winget install/update), it will continue installing normally. However this is only temporary as the next time you run winget install/update the permissions you set on the folder get wiped.

Me is the User account, not an Administrator.
image

Environment

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

Windows: Windows.Desktop v10.0.22621.1105
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.10173.0
@ghost ghost added the Needs-Triage Issue need to be triaged label Jan 27, 2023
@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. and removed Needs-Triage Issue need to be triaged labels Jan 27, 2023
@samiksome92
Copy link

I can confirm that I have this same issue. Somehow Administrators don't have permission for winget's temp folder.

@denelon
Copy link
Contributor

denelon commented Feb 1, 2023

This looks like it's related to:

@samiksome92
Copy link

@denelon Yes. Seems to be the same issue.

@boozeman
Copy link

boozeman commented Feb 2, 2023

I can confirm this too.

@denelon
Copy link
Contributor

denelon commented Feb 2, 2023

I'm going to close this as a Duplicate of #2740.

The issue will still be linked, but it should help make sure we get more 👍 on one issue to help raise priority.

@denelon denelon added this to the v1.5-Client milestone Feb 2, 2023
@denelon denelon closed this as completed Feb 2, 2023
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.
Projects
None yet
Development

No branches or pull requests

4 participants