winget-cli: Can't install anything, from any source
Brief description of your issue
Everything I’ve tried to install via winget, even from different sources, has led to an error like this:
I’ve tried disabling antivirus (eset) altogether, no difference. If I go find the installer in my temp folder and double-click it, it runs just fine. I’ve tried running winget as a regular user and as administrator.
I have to assume I’m missing something fairly basic?
Steps to reproduce
winget install slcaktechnologies.slack
or winget install discord.discord
or winget install discord --source msstore
Expected behavior
I expected the installer to run
Actual behavior
Installer is blocked
Environment
Windows Package Manager (Preview) v1.3.692-preview
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22000.613
Package: Microsoft.DesktopAppInstaller v1.18.692.0
Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
Links
---------------------------------------------------------------------------
Privacy Statement https://aka.ms/winget-privacy
License Agreement https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 20 (3 by maintainers)
I think that the location of the downloaded artifact may be the problem - changing the environment variable
TMP
to point at another temp location (C:\tmp
), I could install things just fine. It would seem that perhapswinget
should rather use a folder outside of the special%LOCALAPPDATA%\Temp
location as it’s being screened differently.to re-iterate: setting the
TMP
environment variable, at the user level, was enough to bypass the installation issue.This will only happen if the company you work at configured the default source to be
msstore
via Group Policy.WinGet’s default source is still
winget
but ever since themsstore
source rolled out to everyone you now need to be more specific on what package you want to install if you see the “Multiple packages found matching input criteria. Please refine the input.” message.Previously if you did
winget install Ruby
it’ll install Ruby from thewinget
source but since there’s a random app called “RubyGo” you will now need to dowinget install RubyInstallerTeam.Ruby
which will allow you to download Ruby from thewinget
source instead of a random app called “RubyGo” from themsstore
source.