Open
Open
Copy link
Labels
Issue-FeatureThis is a feature request for the Windows Package Manager client.msstoreIssue related to "msstore" REST source
Description
Brief description of your issue
If you're on a version of Windows that doesn't have the Microsoft Store (LTSC, Server, the weird build Sandbox runs), winget adds the Microsoft Store source even though you can't use it since you can't sign in.
Steps to reproduce
- Install winget on Windows Sandbox (or real LTSC).
- Run
winget install solitaire. - Note that it doesn't work since you aren't signed in.
- Try to go sign in, and remember that you don't have the Microsoft Store so you can't do that.
Expected behavior
Either the Microsoft Store source won't be added at all so the searches make more sense, or it will do the install without auth (as that's the same behavior that the Microsoft Store app has for free apps).
Actual behavior
Environment
[winget --info]
Windows: Windows.Desktop v10.0.22000.194
Package: Microsoft.DesktopAppInstaller v1.16.12653.0
Any other software?
Metadata
Metadata
Assignees
Labels
Issue-FeatureThis is a feature request for the Windows Package Manager client.msstoreIssue related to "msstore" REST source

Activity
KevinLaMS commentedon Oct 7, 2021
Thanks for the report. I believe this is related to the user not being logged on to the store. Can you log into the store and retry? I suspect this will address the issue.
jedieaston commentedon Oct 7, 2021
I can't log into the store because the store isn't installed on LTSC builds (or on Server, or in the Sandbox)1. Therefore, I think the expected behavior here would be that the msstore source isn't available on systems that don't have the Microsoft Store installed.
Footnotes
explanation here, specifically "Features from Windows 10 that could be updated with new functionality, including Cortana, Edge, and all in-box Universal Windows apps, are also not included.". I can still install winget manually (or use the in-box App Installer eventually), but in that case the Microsoft Store still isn't available. ↩
denelon commentedon Oct 7, 2021
It looks like we might need to expand on the scenario for purchased apps. We may need to add some kind of authentication method for the Windows Package Manager if/when the Microsoft Store isn't present.
KevinLaMS commentedon Oct 7, 2021
Easton Pillay (@jedieaston) I need a head slap emoji. :) Thanks for clarifying.
JohnMcPMS commentedon Oct 7, 2021
Due to architectural reasons, the
msstoresource is a combination of different catalogs internally. So there are some packages that will be able to install in your scenarios. I think the right answer is not to remove the source completely, but rather detect it and limit the available packages.Even better if we can get anonymous installs to work where appropriate, but there may be legal hurdles there that we are not aware of. Additionally, I'm not sure if the OS components are even present in these cases.
denelon commentedon Dec 3, 2021
We're working on enabling the anonymous scenario. Most free packages rated "e" for everyone should not require MSA authentication in the Microsoft Store source.
denelon commentedon May 31, 2022
Easton Pillay (@jedieaston)
Does this Issue look like it's resolved in your opinion? Since the bug has been fixed for anonymous install this might be resolved. Let me know what you think.
jedieaston commentedon May 31, 2022
The issue was that the Microsoft Store source exists even if the Microsoft Store itself isn't installed, and therefore some apps can't be installed (regardless of authentication being necessary). In Windows Sandbox, where the Microsoft Store isn't available, the store source is still installed by default in the latest preview but doesn't work correctly since there isn't a store:
JohnMcPMS is right, there are packages that will install (Win32 apps, specifically, since they act like other winget apps). I think that winget should be able to detect which apps are installable and hide the others from searches to prevent confusion. It's up to you if that's a different bug or not, since strictly speaking, the Microsoft Store source works a bit more than it did (it's still confusing though).
denelon commentedon May 31, 2022
OK, I'll keep this open, and start some internal discussions on what kind of options might get the right desired behavior.
denelon commentedon Oct 9, 2025
I've got a bit of an update here.
The Windows Sandbox doesn't support the Windows Update service which contains part of the code necessary to install packages from the Microsoft Store (even when the Microsoft Store client isn't installed). There is no requirement to be logged into the Microsoft Store to install the packages from the Microsoft Store.
The other situation where this can be a point of failure is when the Microsoft Store licensing server cannot be reached by the device, so the license ends up failing.