winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Error Code 0x80070043: The network name cannot be found

Open Burkino opened this issue 2 years ago • 4 comments

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

Burkino avatar Jan 27 '23 03:01 Burkino

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

samiksome92 avatar Feb 01 '23 10:02 samiksome92

This looks like it's related to:

  • #2740

denelon avatar Feb 01 '23 23:02 denelon

@denelon Yes. Seems to be the same issue.

samiksome92 avatar Feb 02 '23 12:02 samiksome92

I can confirm this too.

boozeman avatar Feb 02 '23 14:02 boozeman

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 avatar Feb 02 '23 18:02 denelon