microsoft / microsoft/winget-pkgs

[Package Issue]: Spotify.Spotify Supports Machine-Scope Installation (But WinGet Doesn't Realize)

Open
#210,448 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug
Dominant language
No language data
Stars
11.1k
Forks
9.7k
Avg merge
1h 32m
Merged PRs (30d)
376

Description

Please confirm these before moving forward
  • I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • I have not been informed if the issue is resolved in a preview version of the winget client.
Category of the issue

Installation issue.

Brief description of your issue

I just recently found out that Spotify, a package notorious (I guess?) for not working out of elevated sessions, actually supports machine-scope installation, which does work when run as administrator. However, WinGet not only doesn't recognize this with the --scope parameter, but also prevents one from manually using it with --override due to the elevationProhibited flag on the package.
Spotify will normally refuse to install from an administrator context (for some reason), but if the wizard is called with the arguments /extract "C:\Program Files\Spotify", it will work.

Steps to reproduce

Open an elevated shell
winget install Spotify.Spotify
(See that it fails—"The installer cannot be run from an administrator context.")
winget install Spotify.Spotify --scope machine
(See that it fails—"No applicable installer found; see logs for more details.")
winget install Spotify.Spotify --override '/extract "C:\Program Files"'
(See that it fails—"The installer cannot be run from an administrator context.")
winget download Spotify.Spotify
&<Path to downloaded installer> /extract "C:\Program Files\Spotify
(See that it works from the elevated shell)

Actual behavior

WinGet does not recognize a valid package with the --scope machine flag, nor does it allow users to manually use the arguments for admin-friendly machine-scope installation, preëmptively blocking the wizard on the belief it cannot be run from an administrator context.

Expected behavior

WinGet should recognize the machine-scope installation option and also not block users from doing it manually.

Environment
Windows: Windows.Desktop v10.0.22631.4602
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.24.25200.0
Screenshots and Logs

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Spotify.Spotify package manifest in the winget-pkgs repository and compare its installer metadata with the reported machine-scope behavior. Reproduce the elevated install and download commands from the issue, then update the package metadata only if it accurately supports the documented extraction arguments and scope. Done means machine-scope installation is recognized without incorrectly blocking the manual override.

Written by the indexing model from the issue text.

Assessment

Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.