Skip to content

Windows 10 v1809 and Server 2019 support was lost after v1.7.3481-preview #5318

Closed

Description

@jantari

Brief description of your issue

A change in winget CLI introduced back between v1.7.3481-preview and v1.7.10514 (see diff here: v1.7.3481-preview...v1.7.10514) has broken it on Windows Build 10.0.17763.x, which is Windows 10 v1809 and Windows Server 2019.

The issue specifically is that when running an install command targeting a REST source - the package could be anything, doesn't matter:

winget install --id "Notepad++.Notepad++" --source internal-rest-source --no-upgrade --silent --scope machine --accept-source-agreements --disable-interactivity --verbose-logs

winget will quit prematurely with exit code -1073741819 (0xc0000005)

the verbose log file ends with (full log in my comment below):

...
[CLI ] Source agreements satisfied. Source: internal-rest-source
[REPO] Creating PredefinedInstalledSource with filter [Machine]
[REPO] Creating new SQLite Index with version [Latest] at ':memory:'
[REPO] Reading MSI UpgradeCodes
[REPO] Examining ARP entries for Machine | X64
< Some log lines "Adding", "Skipping" or "Did not find" a bunch of programs >
[REPO] Examining ARP entries for Machine | X86
< Some log lines "Adding", "Skipping" or "Did not find" a bunch of programs >
[REPO] Examining MSIX entries for Machine

No errors. Looking at the source code, the last visible log message comes from here:

AICLI_LOG(Repo, Verbose, << "Examining MSIX entries for " << ScopeToString(scope));
IIterable<Package> packages;
PackageManager packageManager;
if (scope == Manifest::ScopeEnum::Machine)
{
packages = packageManager.FindProvisionedPackages();
}

and right after writing the log message, the FindProvisionedPackages API is called which does not exist in Windows Build 17763 - the documentation says it was introduced in Build 19041 (which is Windows 10 v2004). The method not being there is also very easy to verify by attempting to call it in PowerShell:

jantari@server2019:C:\Windows\system32
└─ PS> [Windows.Management.Deployment.PackageManager,Windows.Management.Deployment,ContentType=WindowsRuntime]

IsPublic IsSerial Name                                     BaseType
-------- -------- ----                                     --------
True     False    PackageManager                           System.Runtime.InteropServices.WindowsRuntime.RuntimeClass


jantari@server2019:C:\Windows\system32
└─ PS> $pkgm = [Windows.Management.Deployment.PackageManager]::new()
jantari@server2019:C:\Windows\system32
└─ PS> $pkgm.FindProvisionedPackages()
Method invocation failed because [Windows.Management.Deployment.PackageManager] does not contain a method named 'FindProvisionedPackages'.
At line:1 char:1
+ $pkgm.FindProvisionedPackages()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound

jantari@server2019:C:\Windows\system32
└─ PS>

All this is further corroborated by the fact that the command succeeds, even with the latest winget v1.10.340, if the --scope machine parameter is omitted, thus skipping that API call code path. So I am pretty sure this call is the only reason for the crash.

This is a bug because:

  1. v1.7.10514 and even the very latest release of winget are advertised as compatible with Windows 10 1809:

This release represents a servicing fix Windows Package Manager 1.10 release build for Windows 10 (1809+), and Windows 11.

  1. Even though Windows Server 2019 was never officially supported, winget versions v1.7.3481-preview, v1.6.3482 and prior worked great on it and it is wingets goal to make sure the Windows Package Manager works on earlier versions of Windows - thus it would be great if compatibility would be fixed, Server 2019 still has almost 4 years of life left.

Steps to reproduce

  1. Get a Windows Build 17763 machine compatible with winget (Windows 10 v1809 or Windows Server 2019 Core with the AppCompatibility feature-on-demand added or Windows Server 2019 Desktop Experience)
  2. Set up any winget version 1.7.10514 or later, up to and including the latest - on Windows Server 2019 the msix install won't work, so if you're testing with Windows Server extract and use an unpackaged winget instance
  3. Set up a private REST source
  4. Add the REST source to winget
  5. Attempt to install a program from the REST source with the above command, including the --scope machine parameter

Expected behavior

winget should download and install the software.

Actual behavior

winget quits with exit code -1073741819 before completing the task.

Environment

WindowsPackageManager
MainCopyrightNotice

Windows: Windows.Server v10.0.17763.7009
SystemArchitecture

KeyDirectoriesHeader
----------------------------------------------------------------------------------------
Logs                 %TEMP%\WinGet\defaultState
UserSettings         %LOCALAPPDATA%\Microsoft\WinGet\Settings\defaultState\settings.json
PortableLinksUser    %LOCALAPPDATA%\Microsoft\WinGet\Links
PortableLinksMachine C:\Program Files\WinGet\Links
PortableRootUser     %LOCALAPPDATA%\Microsoft\WinGet\Packages
PortableRoot         C:\Program Files\WinGet\Packages
PortableRoot86       C:\Program Files (x86)\WinGet\Packages
InstallerDownloads   %USERPROFILE%\Downloads

Links
--------------------------------------------------------------------------------
PrivacyStatement         https://aka.ms/winget-privacy
LicenseAgreement         https://aka.ms/winget-license
ThirdPartSoftwareNotices https://aka.ms/winget-3rdPartyNotice
MainHomepage             https://aka.ms/winget
WindowsStoreTerms        https://www.microsoft.com/en-us/storedocs/terms-of-sale

AdminSettingHeader                        StateHeader
-------------------------------------------------------
LocalManifestFiles                        StateDisabled
BypassCertificatePinningForMicrosoftStore StateDisabled
InstallerHashOverride                     StateDisabled
LocalArchiveMalwareScanOverride           StateDisabled

Activity

  1. jantari commented on Mar 24, 2025

    @jantari
    Author

    I want to add a log comparison between running the above command:

    winget install --id "Notepad++.Notepad++" --source internal-rest-source --no-upgrade --silent --scope machine --accept-source-agreements --disable-interactivity --verbose-logs

    twice on the same machine, once with the last working version v1.7.3481-preview and once with the next, broken version v1.7.10514:

    Log file from v1.7.3481-preview (working)
    2025-03-24 14:44:57.086 [CORE] WinGet, version [1.7.3481-preview], activity [{DFAA69FC-7C19-4DF3-988D-2224693206ED}]
    2025-03-24 14:44:57.088 [CORE] OS: Windows.Server v10.0.17763.3406
    2025-03-24 14:44:57.088 [CORE] Command line Args: "C:\Program Files\Microsoft\winget\winget.exe" install --id Notepad++.Notepad++ --source internal-rest-source --no-upgrade --silent --scope machine --accept-source-agreements --disable-interactivity --verbose-logs
    2025-03-24 14:44:57.089 [CORE] IsCOMCall:0; Caller: winget-cli
    2025-03-24 14:44:57.093 [CLI ] WinGet invoked with arguments: 'install' '--id' 'Notepad++.Notepad++' '--source' 'internal-rest-source' '--no-upgrade' '--silent' '--scope' 'machine' '--accept-source-agreements' '--disable-interactivity' '--verbose-logs'
    2025-03-24 14:44:57.094 [CLI ] Found subcommand: install
    2025-03-24 14:44:57.094 [CLI ] Leaf command to execute: root:install
    2025-03-24 14:44:57.095 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
    2025-03-24 14:44:57.095 [CORE] Admin settings was not found
    2025-03-24 14:44:57.095 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
    2025-03-24 14:44:57.095 [CORE] Admin settings was not found
    2025-03-24 14:44:57.096 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
    2025-03-24 14:44:57.096 [CORE] Admin settings was not found
    2025-03-24 14:44:57.096 [CLI ] Executing command: install
    2025-03-24 14:44:57.097 [REPO] Additional sources GP is not enabled.
    2025-03-24 14:44:57.097 [CORE] Setting action: Get, Type: Secure, Name: user_sources
    2025-03-24 14:44:57.098 [YAML] Detected UTF-8
    2025-03-24 14:44:57.098 [YAML] Detected UTF-8
    2025-03-24 14:44:57.100 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
    2025-03-24 14:44:57.100 [CORE] Admin settings was not found
    2025-03-24 14:44:57.100 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
    DigiCert Global Root G3 : PublicKey
      Microsoft Azure ECC TLS Issuing CA 02 : Subject | Issuer
        sfdataservice.microsoft.com : Subject | Issuer
    2025-03-24 14:44:57.100 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
    DigiCert Global Root G3 : PublicKey
      Microsoft Azure ECC TLS Issuing CA 04 : Subject | Issuer
        sfdataservice.microsoft.com : Subject | Issuer
    2025-03-24 14:44:57.102 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
    2025-03-24 14:44:57.102 [YAML] Detected UTF-8
    2025-03-24 14:44:57.103 [REPO] Named source requested, found: internal-rest-source
    2025-03-24 14:44:57.103 [REPO] User agent caller found: winget-cli
    2025-03-24 14:44:57.103 [REPO] Sending http GET request to: https://rewinged.domain.internal/api/information
    2025-03-24 14:44:57.103 [REPO] Http GET request details:
    GET / HTTP/1.1
    
    Content-Type: application/json
    
    User-Agent: winget-cli WindowsPackageManager/1.7.3481-preview DesktopAppInstaller/none
    
    
    
    
    2025-03-24 14:44:57.142 [REPO] Response status: 200
    2025-03-24 14:44:57.142 [REPO] Response details:
    HTTP/1.1 200 OK
    
    Connection: keep-alive
    
    Content-Length: 116
    
    Content-Type: application/json; charset=utf-8
    
    Date: Mon, 24 Mar 2025 13:44:52 GMT
    
    Server: nginx/1.27.3
    
    Strict-Transport-Security: max-age=31536000; includeSubDomains
    
    X-Content-Type-Options: nosniff
    
    X-Frame-Options: SAMEORIGIN
    
    X-XSS-Protection: 1; mode=block
    
    
    
    {"Data":{"SourceIdentifier":"rewinged","ServerSupportedVersions":["1.1.0","1.4.0","1.5.0","1.6.0","1.7.0","1.9.0"]}}
    2025-03-24 14:44:57.143 [REPO] User agent caller found: winget-cli
    2025-03-24 14:44:57.143 [REPO] Sending http GET request to: https://rewinged.domain.internal/api/information
    2025-03-24 14:44:57.143 [REPO] Http GET request details:
    GET / HTTP/1.1
    
    Content-Type: application/json
    
    User-Agent: winget-cli WindowsPackageManager/1.7.3481-preview DesktopAppInstaller/none
    
    
    
    
    2025-03-24 14:44:57.146 [REPO] Response status: 200
    2025-03-24 14:44:57.146 [REPO] Response details:
    HTTP/1.1 200 OK
    
    Connection: keep-alive
    
    Content-Length: 116
    
    Content-Type: application/json; charset=utf-8
    
    Date: Mon, 24 Mar 2025 13:44:52 GMT
    
    Server: nginx/1.27.3
    
    Strict-Transport-Security: max-age=31536000; includeSubDomains
    
    X-Content-Type-Options: nosniff
    
    X-Frame-Options: SAMEORIGIN
    
    X-XSS-Protection: 1; mode=block
    
    
    
    {"Data":{"SourceIdentifier":"rewinged","ServerSupportedVersions":["1.1.0","1.4.0","1.5.0","1.6.0","1.7.0","1.9.0"]}}
    2025-03-24 14:44:57.215 [CLI ] Checking Source agreements for source: internal-rest-source
    2025-03-24 14:44:57.217 [REPO] Additional sources GP is not enabled.
    2025-03-24 14:44:57.217 [CORE] Setting action: Get, Type: Secure, Name: user_sources
    2025-03-24 14:44:57.217 [YAML] Detected UTF-8
    2025-03-24 14:44:57.217 [YAML] Detected UTF-8
    2025-03-24 14:44:57.218 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
    2025-03-24 14:44:57.218 [CORE] Admin settings was not found
    2025-03-24 14:44:57.218 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
    DigiCert Global Root G3 : PublicKey
      Microsoft Azure ECC TLS Issuing CA 02 : Subject | Issuer
        sfdataservice.microsoft.com : Subject | Issuer
    2025-03-24 14:44:57.219 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
    DigiCert Global Root G3 : PublicKey
      Microsoft Azure ECC TLS Issuing CA 04 : Subject | Issuer
        sfdataservice.microsoft.com : Subject | Issuer
    2025-03-24 14:44:57.219 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
    2025-03-24 14:44:57.219 [YAML] Detected UTF-8
    2025-03-24 14:44:57.219 [CLI ] Source agreements satisfied. Source: internal-rest-source
    2025-03-24 14:44:57.220 [CORE] Subkey 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall' was not found
    2025-03-24 14:44:57.224 [REPO] Creating PredefinedInstalledSource with filter [ARP]
    2025-03-24 14:44:57.224 [REPO] Creating new SQLite Index with version [Latest] at ':memory:'
    2025-03-24 14:44:57.342 [REPO] Reading MSI UpgradeCodes
    2025-03-24 14:44:57.343 [REPO] Examining ARP entries for Machine | X64
    2025-03-24 14:44:57.343 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:44:57.343 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:44:57.345 [REPO] Skipping <REDACTED> Manager because it is a SystemComponent
    2025-03-24 14:44:57.345 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:44:57.345 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:44:57.345 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:44:57.345 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:44:57.346 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:44:57.346 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:44:57.346 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:44:57.346 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:44:57.346 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:44:57.346 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:44:57.346 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:44:57.346 [REPO] Did not find an Id { Vim 8.2 }
    2025-03-24 14:44:57.347 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:44:57.347 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:44:57.347 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:44:57.347 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:44:57.347 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:44:57.347 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:44:57.347 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:44:57.348 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:44:57.348 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:44:57.349 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:44:57.349 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:44:57.349 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:44:57.350 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:44:57.350 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:44:57.350 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:44:57.350 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:44:57.350 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:44:57.351 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:44:57.351 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:44:57.352 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:44:57.352 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:44:57.353 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:44:57.353 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:44:57.353 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:44:57.354 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:44:57.354 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:44:57.355 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:44:57.355 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:44:57.356 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:44:57.356 [REPO] Examining ARP entries for Machine | X86
    2025-03-24 14:44:57.356 [REPO] Skipping <REDACTED> Manager because it is a SystemComponent
    2025-03-24 14:44:57.356 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:44:57.356 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:44:57.356 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:44:57.357 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:44:57.357 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:44:57.357 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:44:57.357 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:44:57.357 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:44:57.357 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:44:57.357 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:44:57.357 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:44:57.357 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:44:57.358 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:44:57.358 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:44:57.358 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:44:57.359 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:44:57.359 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:44:57.359 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:44:57.360 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:44:57.360 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:44:57.361 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:44:57.361 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:44:57.361 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:44:57.362 [REPO] Reading MSI UpgradeCodes
    2025-03-24 14:44:57.363 [CORE] Subkey 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall' was not found
    2025-03-24 14:44:57.363 [REPO]  ... finished creating PredefinedInstalledSource
    2025-03-24 14:44:57.363 [REPO] Examining MSIX entries for User
    2025-03-24 14:44:57.593 [REPO] Opening database for ReadWrite at 'C:\Users\jantari\AppData\Local\Microsoft/WinGet\State\defaultState\rewinged\installed.db'
    2025-03-24 14:44:57.594 [REPO] Opened SQLite Index with version [1.7], last write [2025-03-24 14:44:46.000]
    2025-03-24 14:44:57.594 [REPO] Performing search: Query:[none] Filter:Id='Notepad++.Notepad++'[CaseInsensitive]
    2025-03-24 14:44:57.594 [REPO] Search found 0 rows
    2025-03-24 14:44:57.594 [REPO] Removed 0 duplicate rows
    2025-03-24 14:44:57.595 [REPO] Search request meets optimized search criteria.
    2025-03-24 14:44:57.595 [REPO] Sending http GET request to: https://rewinged.domain.internal/api/packageManifests/Notepad++.Notepad++
    
    ...
    
    Log file from v1.7.10514 (broken)
    2025-03-24 14:50:58.725 [CORE] WinGet, version [1.7.10514], activity [{6601942D-80C8-46ED-A133-BDF5678E42EF}]
    2025-03-24 14:50:58.729 [CORE] OS: Windows.Server v10.0.17763.3406
    2025-03-24 14:50:58.729 [CORE] Command line Args: "C:\Program Files\Microsoft\winget\winget.exe" install --id Notepad++.Notepad++ --source internal-rest-source --no-upgrade --silent --scope machine --accept-source-agreements --disable-interactivity --verbose-logs
    2025-03-24 14:50:58.729 [CORE] IsCOMCall:0; Caller: winget-cli
    2025-03-24 14:50:58.733 [CLI ] WinGet invoked with arguments: 'install' '--id' 'Notepad++.Notepad++' '--source' 'internal-rest-source' '--no-upgrade' '--silent' '--scope' 'machine' '--accept-source-agreements' '--disable-interactivity' '--verbose-logs'
    2025-03-24 14:50:58.734 [CLI ] Found subcommand: install
    2025-03-24 14:50:58.734 [CLI ] Leaf command to execute: root:install
    2025-03-24 14:50:58.736 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
    2025-03-24 14:50:58.736 [CORE] Admin settings was not found
    2025-03-24 14:50:58.736 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
    2025-03-24 14:50:58.736 [CORE] Admin settings was not found
    2025-03-24 14:50:58.737 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
    2025-03-24 14:50:58.737 [CORE] Admin settings was not found
    2025-03-24 14:50:58.737 [CLI ] Executing command: install
    2025-03-24 14:50:58.739 [REPO] Additional sources GP is not enabled.
    2025-03-24 14:50:58.739 [CORE] Setting action: Get, Type: Secure, Name: user_sources
    2025-03-24 14:50:58.739 [YAML] Detected UTF-8
    2025-03-24 14:50:58.739 [YAML] Detected UTF-8
    2025-03-24 14:50:58.740 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
    2025-03-24 14:50:58.740 [CORE] Admin settings was not found
    2025-03-24 14:50:58.741 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
    DigiCert Global Root G3 : PublicKey
      Microsoft Azure ECC TLS Issuing CA 02 : Subject | Issuer
        sfdataservice.microsoft.com : Subject | Issuer
    2025-03-24 14:50:58.741 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
    DigiCert Global Root G3 : PublicKey
      Microsoft Azure ECC TLS Issuing CA 04 : Subject | Issuer
        sfdataservice.microsoft.com : Subject | Issuer
    2025-03-24 14:50:58.743 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
    2025-03-24 14:50:58.743 [YAML] Detected UTF-8
    2025-03-24 14:50:58.743 [REPO] Named source requested, found: internal-rest-source
    2025-03-24 14:50:58.744 [CLI ] Created authentication arguments. Mode: silent, Account:
    2025-03-24 14:50:58.744 [REPO] User agent caller found: winget-cli
    2025-03-24 14:50:58.744 [REPO] Sending http GET request to: https://rewinged.domain.internal/api/information
    2025-03-24 14:50:58.744 [REPO] Http GET request details:
    GET / HTTP/1.1
    
    Content-Type: application/json
    
    User-Agent: winget-cli WindowsPackageManager/1.7.10514 DesktopAppInstaller/none
    
    
    
    
    2025-03-24 14:50:58.793 [REPO] Response status: 200
    2025-03-24 14:50:58.793 [REPO] Response details:
    HTTP/1.1 200 OK
    
    Connection: keep-alive
    
    Content-Length: 116
    
    Content-Type: application/json; charset=utf-8
    
    Date: Mon, 24 Mar 2025 13:50:54 GMT
    
    Server: nginx/1.27.3
    
    Strict-Transport-Security: max-age=31536000; includeSubDomains
    
    X-Content-Type-Options: nosniff
    
    X-Frame-Options: SAMEORIGIN
    
    X-XSS-Protection: 1; mode=block
    
    
    
    {"Data":{"SourceIdentifier":"rewinged","ServerSupportedVersions":["1.1.0","1.4.0","1.5.0","1.6.0","1.7.0","1.9.0"]}}
    2025-03-24 14:50:58.793 [REPO] Authentication node not found. Assuming authentication type none.
    2025-03-24 14:50:58.794 [REPO] User agent caller found: winget-cli
    2025-03-24 14:50:58.794 [REPO] Sending http GET request to: https://rewinged.domain.internal/api/information
    2025-03-24 14:50:58.794 [REPO] Http GET request details:
    GET / HTTP/1.1
    
    Content-Type: application/json
    
    User-Agent: winget-cli WindowsPackageManager/1.7.10514 DesktopAppInstaller/none
    
    
    
    
    2025-03-24 14:50:58.799 [REPO] Response status: 200
    2025-03-24 14:50:58.799 [REPO] Response details:
    HTTP/1.1 200 OK
    
    Connection: keep-alive
    
    Content-Length: 116
    
    Content-Type: application/json; charset=utf-8
    
    Date: Mon, 24 Mar 2025 13:50:54 GMT
    
    Server: nginx/1.27.3
    
    Strict-Transport-Security: max-age=31536000; includeSubDomains
    
    X-Content-Type-Options: nosniff
    
    X-Frame-Options: SAMEORIGIN
    
    X-XSS-Protection: 1; mode=block
    
    
    
    {"Data":{"SourceIdentifier":"rewinged","ServerSupportedVersions":["1.1.0","1.4.0","1.5.0","1.6.0","1.7.0","1.9.0"]}}
    2025-03-24 14:50:58.799 [REPO] Authentication node not found. Assuming authentication type none.
    2025-03-24 14:50:58.856 [CLI ] Checking Source agreements for source: internal-rest-source
    2025-03-24 14:50:58.858 [REPO] Additional sources GP is not enabled.
    2025-03-24 14:50:58.858 [CORE] Setting action: Get, Type: Secure, Name: user_sources
    2025-03-24 14:50:58.858 [YAML] Detected UTF-8
    2025-03-24 14:50:58.858 [YAML] Detected UTF-8
    2025-03-24 14:50:58.859 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
    2025-03-24 14:50:58.859 [CORE] Admin settings was not found
    2025-03-24 14:50:58.859 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
    DigiCert Global Root G3 : PublicKey
      Microsoft Azure ECC TLS Issuing CA 02 : Subject | Issuer
        sfdataservice.microsoft.com : Subject | Issuer
    2025-03-24 14:50:58.859 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
    DigiCert Global Root G3 : PublicKey
      Microsoft Azure ECC TLS Issuing CA 04 : Subject | Issuer
        sfdataservice.microsoft.com : Subject | Issuer
    2025-03-24 14:50:58.859 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
    2025-03-24 14:50:58.859 [YAML] Detected UTF-8
    2025-03-24 14:50:58.859 [CLI ] Source agreements satisfied. Source: internal-rest-source
    2025-03-24 14:50:58.860 [REPO] Creating PredefinedInstalledSource with filter [Machine]
    2025-03-24 14:50:58.860 [REPO] Creating new SQLite Index with version [Latest] at ':memory:'
    2025-03-24 14:50:58.986 [REPO] Reading MSI UpgradeCodes
    2025-03-24 14:50:58.987 [REPO] Examining ARP entries for Machine | X64
    2025-03-24 14:50:58.988 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:50:58.988 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:50:58.989 [REPO] Skipping <REDACTED> Manager because it is a SystemComponent
    2025-03-24 14:50:58.989 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:50:58.989 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:50:58.989 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:50:58.989 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:50:58.990 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:50:58.990 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:50:58.990 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:50:58.990 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:50:58.990 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:50:58.990 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:50:58.990 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:50:58.990 [REPO] Did not find an Id { Vim 8.2 }
    2025-03-24 14:50:58.991 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:50:58.991 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:50:58.991 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:50:58.991 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:50:58.991 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:50:58.991 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:50:58.991 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:50:58.992 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:50:58.992 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:50:58.993 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:50:58.994 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:50:58.994 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:50:58.995 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:50:58.995 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:50:58.995 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:50:58.995 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:50:58.995 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:50:58.996 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:50:58.996 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:50:58.997 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:50:58.997 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:50:58.998 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:50:58.998 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:50:58.998 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:50:58.999 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:50:58.999 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:50:58.999 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:50:58.999 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:50:59.000 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:50:59.000 [REPO] Examining ARP entries for Machine | X86
    2025-03-24 14:50:59.001 [REPO] Skipping <REDACTED> Manager because it is a SystemComponent
    2025-03-24 14:50:59.001 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:50:59.001 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:50:59.001 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:50:59.001 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:50:59.002 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:50:59.002 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:50:59.002 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:50:59.002 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:50:59.002 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:50:59.002 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:50:59.002 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:50:59.002 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:50:59.003 [REPO] Skipping <REDACTED> because DisplayName is not a REG_SZ value
    2025-03-24 14:50:59.003 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:50:59.003 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:50:59.004 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:50:59.004 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:50:59.004 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:50:59.005 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:50:59.005 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:50:59.006 [REPO] Skipping <REDACTED> because it is a SystemComponent
    2025-03-24 14:50:59.006 [REPO] Adding manifest for [ <REDACTED> ] at relative path [ <REDACTED> ]
    2025-03-24 14:50:59.006 [REPO] Did not find an Id { <REDACTED> }
    2025-03-24 14:50:59.007 [REPO] Examining MSIX entries for Machine
    
  2. added
    Issue-Bug
    and removed
    Needs-Triage
    on Mar 25, 2025
  3. JohnMcPMS commented on Mar 27, 2025

    @JohnMcPMS
    Member

    Could you post the data from Event Viewer > Windows Logs > Application for the event caused by this crash?

    Alternately, just confirm that it has failure GUID: 52535a66-ef3d-79a3-1cde-ae38af6d0268

    That crash (whose signature matches your report so far) is still occurring, but it has a vastly higher hit rate on older OS versions.

  4. JohnMcPMS commented on Mar 27, 2025

    @JohnMcPMS
    Member

    I think that the newer hits are unrelated; older hits seem to be the issue as you report. FindProvisionedPackages and thus IPackageManager9 come in a later OS. I would have expected C++/WinRT to protect us from this QI failure with an exception.
    Wouldn't make things work any better, just less crashing.

    I was going to do a fix in this area for an unrelated issue so I will throw in the check. I'm not going to implement a workaround, we just won't know the set of provisioned packages until the API is available.

    You should be able to mitigate by passing --force to install. That will bypass the attempt to determine what is installed, but it will obviously clash with your --no-upgrade flag which seems to want to know that.

  5. jantari commented on Mar 27, 2025

    @jantari
    Author

    I am not sure about the failure GUID, this is the information the crash event has when running winget v1.7.10514:

    LogName      : Application
    ProviderName : Windows Error Reporting
    Level        : 4
    Id           : 1001
    Message      : Fault bucket 2113966831703411388, type 4
                   Event Name: APPCRASH
                   Response: Not available
                   Cab Id: 0
    
                   Problem signature:
                   P1: winget.exe
                   P2: 1.22.2402.20004
                   P3: 65d542aa
                   P4: WindowsPackageManager.dll
                   P5: 1.22.2402.20004
                   P6: 65d542a6
                   P7: c0000005
                   P8: 00000000001f2b06
                   P9:
                   P10:
    
                   Attached files:
                   \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER37C9.tmp.dmp
                   \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER3950.tmp.WERInternalMetadata.xml
                   \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER3971.tmp.xml
                   \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER396F.tmp.csv
                   \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER397F.tmp.txt
    
                   These files may be available here:
                   \\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_winget.exe_e12743b283b3f3242a62e17efc7b6bc44c5b6a7_ec69d579_31153e31
    
                   Analysis symbol:
                   Rechecking for solution: 0
                   Report Id: 8a657fc9-8637-49c4-b848-d3d263cac463
                   Report Status: 268435456
                   Hashed bucket: 8c97033910d8453a4d5651a216a3cabc
                   Cab Guid: 0
    
    Full Event XML
    <Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'>
    	<System>
    		<Provider Name='Windows Error Reporting'/>
    		<EventID Qualifiers='0'>1001</EventID>
    		<Level>4</Level>
    		<Task>0</Task>
    		<Keywords>0x80000000000000</Keywords>
    		<TimeCreated SystemTime='2025-03-27T18:07:17.442039700Z'/>
    		<EventRecordID>2912469</EventRecordID>
    		<Channel>Application</Channel>
    		<Computer>server2019.domain.internal</Computer>
    		<Security/>
    	</System>
    	<EventData>
    		<Data>2113966831703411388</Data>
    		<Data>4</Data>
    		<Data>APPCRASH</Data>
    		<Data>Not available</Data>
    		<Data>0</Data>
    		<Data>winget.exe</Data>
    		<Data>1.22.2402.20004</Data>
    		<Data>65d542aa</Data>
    		<Data>WindowsPackageManager.dll</Data>
    		<Data>1.22.2402.20004</Data>
    		<Data>65d542a6</Data>
    		<Data>c0000005</Data>
    		<Data>00000000001f2b06</Data>
    		<Data></Data>
    		<Data></Data>
    		<Data>
    \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER37C9.tmp.dmp
    \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER3950.tmp.WERInternalMetadata.xml
    \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER3971.tmp.xml
    \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER396F.tmp.csv
    \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER397F.tmp.txt</Data>
    		<Data>\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_winget.exe_e12743b283b3f3242a62e17efc7b6bc44c5b6a7_ec69d579_31153e31</Data>
    		<Data></Data>
    		<Data>0</Data>
    		<Data>8a657fc9-8637-49c4-b848-d3d263cac463</Data>
    		<Data>268435456</Data>
    		<Data>8c97033910d8453a4d5651a216a3cabc</Data>
    		<Data>0</Data>
    	</EventData>
    </Event>

    I'm not going to implement a workaround, we just won't know the set of provisioned packages until the API is available.

    As long as it doesn't crash anymore and just assumes no provisioned packages (empty list) that's perfect. Thank you.

  6. added a commit that references this issue on Mar 28, 2025
    4fbbf0e
  7. jantari commented on Jun 4, 2025

    @jantari
    Author

    I can confirm that Server 2019 is working again as expected with v1.11.220-preview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-PRIssue-Bug

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions