Skip to content

winget install . unexpectedly installs an unrelated Microsoft Store app #6297

Description

@heppth

Relevant area(s)

WinGet CLI

Relevant command(s)

winget install

Brief description of your issue

winget install resolves a query consisting only of a single punctuation
character (e.g. .) to a single, seemingly confident match from the
msstore source, and proceeds directly to the license-agreement prompt —
with no disambiguation list and no indication that the match is essentially
arbitrary.

Steps to reproduce

  1. Open a terminal in any folder (does not need to contain a manifest).
  2. Run: winget install .

Expected behavior

Either:

  • No results are returned (a punctuation-only string is not meaningful
    search input), or
  • If a low-confidence match exists, winget shows it as part of a
    disambiguation list ("Multiple/weak packages found, please refine the
    input") rather than proceeding straight to the package-agreement /
    install flow.

Actual behavior

winget install . immediately resolves to a single package from the
Microsoft Store (in my case: WhatsApp, 9NKSQGP7F2NH) and shows the
license agreement prompt, ready to install on a single Enter/Y.

Environment

Windows-Paket-Manager v1.29.20-preview
Windows.Desktop v10.0.26200.8655
Microsoft.DesktopAppInstaller v1.30.20.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Command-InstallIssue related to WinGet InstallIssue-BugIt either shouldn't be doing this or needs an investigation.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions