Skip to content

Install-WinGetPackage downloads installer even when package is up-to-date #5909

@stevenwdv

Description

@stevenwdv

Relevant area(s)

WinGet CLI, PowerShell Module

Relevant command(s)

No response

Brief description of your issue

Install-WinGetPackage downloads the package installer for the package, even when the package is already up-to-date. winget install does not do this.

Steps to reproduce

  • Update-WinGetPackage Microsoft.PowerShell
  • Re-run Update-WinGetPackage Microsoft.PowerShell
    • Notice how a download progress bar appears
    • Compare with winget install Microsoft.PowerShell

Expected behavior

It first checks if the package is up-to-date, and only downloads the installer if it is not.

Actual behavior

It always downloads the installer.

Environment

Windows Package Manager v1.12.350
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22000.2538
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.27.350.0

[...]

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.PowerShellIssue related to WinGet PowerShell Module or cmdlet

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions