winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

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

Open stevenwdv opened this issue 3 weeks ago • 0 comments

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

stevenwdv avatar Dec 05 '25 11:12 stevenwdv