winget-cli
winget-cli copied to clipboard
unable to install Ms Store package using --scope command
Brief description of your issue
When we do winget install "netflix" --scope machine its says no applicable installer found but when we do winget install "Google Chrome" --scope machine it installs for all user
Steps to reproduce
When we do winget install "netflix" --scope machine its says no applicable installer found
Expected behavior
When we do winget install "netflix" --scope machine its says no applicable installer found It should install it for the machine basis
Actual behavior
Ms store apps are not getting installed using --scope But 3rd party apps from other sources are being installed using --scope
Environment
Winget version = 1.2.10271
OS = windows 20H2
This issue is not limited to netflix package. Many (or all - did not test!) msstore apps fail to install when using --scope argument.
Sample log when trying to install Ubuntu 20.04:
[CLI ] Found one app. App id: 9MTTCL66CPXJ App name: Ubuntu 20.04.4 LTS
[CLI ] Manifest fields: Name [Ubuntu 20.04.4 LTS], Version [Unknown]
[CLI ] Starting installer selection.
[CLI ] Installer [Arm64,msstore,Unknown,] not applicable: Installer scope does not match required scope: Unknown != Machine
[CLI ] Installer [Arm64,msstore,Unknown,] not applicable: Machine is not compatible with Arm64
[CLI ] Installer [X64,msstore,Unknown,] not applicable: Installer scope does not match required scope: Unknown != Machine
[CLI ] Terminating context: 0x8a150010 at D:\a\_work\1\s\external\pkg\src\AppInstallerCLICore\Workflows\InstallFlow.cpp:74
To see all winget logs open:
C:\Users\username\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
It happens with all store apps.i believe if the scope option works with store apps that can be game changer as Microsoft store for business is retiring and we could get the offline appxpackage but as winget doesn't provide with a appxpackage scope machine would be really helpful in case of store apps
Loosely related to:
- #2163