microsoft / winget-pkgs

The Microsoft community Windows Package Manager manifest repository
MIT License
8.5k stars 4.4k forks source link

[Package Issue]: Microsoft.ServiceFabricSDK - version changes after installation #142677

Closed cthlo closed 6 months ago

cthlo commented 6 months ago

Please confirm these before moving forward

Category of the issue

Other

Brief description of your issue

After installing Microsoft.ServiceFabricSDK version 7.0.1949, the version shown by winget list is 7.0.1949.9590.

Not exactly sure if it's a package issue or an issue with WinGet.

May be related: When I winget configure with the following resource, it always thinks the package is not installed (even after I manually winget install):

# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
properties:
  resources:
    - resource: Microsoft.WinGet.DSC/WinGetPackage
      directives:
        description: Install Service Fabric SDK
        allowPrerelease: true
      settings:
        id: Microsoft.ServiceFabricSDK
        source: winget
        version: "7.0.1949"
        installMode: Default
  configurationVersion: "0.2.0"

Steps to reproduce

winget install -e --id Microsoft.ServiceFabricSDK --version 7.0.1949 --accept-package-agreements

Actual behavior

> winget list -e --id Microsoft.ServiceFabricSDK
Name                               Id                         Version       Source
-----------------------------------------------------------------------------------
Microsoft Azure Service Fabric SDK Microsoft.ServiceFabricSDK 7.0.1949.9590 winget

Expected behavior

The version should be 7.0.1949.

Environment

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

Windows: Windows.Desktop v10.0.22631.3155
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.10582.0

Screenshots and Logs

No response

stephengillie commented 6 months ago

This might be due to the manifest PackageVersion not matching the data written to the Registry. Can you post a screenshot of the application and version number in either Control Panel Add and Remove Programs (ARP), or Apps and features Settings page (ANF)?

cthlo commented 6 months ago

This might be due to the manifest PackageVersion not matching the data written to the Registry. Can you post a screenshot of the application and version number in either Control Panel Add and Remove Programs (ARP), or Apps and features Settings page (ANF)?

Indeed the version in Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Service Fabric SDK is 7.0.1949.9590, and as shown in the control panel: image

Looks like @trenly has a PR out for it. Thank you both!