microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.18k stars 1.45k forks source link

Dependency not installed during Package install #3671

Open ghost opened 1 year ago

ghost commented 1 year ago

Brief description of your issue

Only msi package is installed, dependency is not installed. Screenshot 2023-09-26 101253 Screenshot 2023-09-26 101331

Steps to reproduce

winget install WHONET.AMRInterpretationEngine

Expected behavior

Install package and .NET 6 Runtine dependency.

Actual behavior

Only package is installed, leads to dependency install prompt when app is opened for first time.

Environment

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

Windows: Windows.Desktop v10.0.22621.2283
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.2631.0

Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Enabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
mdanish-kh commented 1 year ago

[Policy] Dependencies [Policy] Command-Install

Trenly commented 1 year ago

Dependencies are not re-installed if they are already installed. I tested this on a clean VM using the same version of Winget, and it did install the dependency.

Can you provide the log files from your install?

I'm going to guess you have an older version of DotNet Desktop Runtime installed that doesn't work for AMRInterpretationEngine, and because there is no MinimumVersion set in the manifest, winget doesn't update it

image

ghost commented 1 year ago

Dependencies are not re-installed if they are already installed. I tested this on a clean VM using the same version of Winget, and it did install the dependency.

Can you provide the log files from your install?

I'm going to guess you have an older version of DotNet Desktop Runtime installed that doesn't work for AMRInterpretationEngine, and because there is no MinimumVersion set in the manifest, winget doesn't update it

image

I don't have dot net installed in my laptop. I have specified .NET 6 in manifest so it should install that. Attaching logs. WinGet-2023-09-26-20-10-32.485.log

Trenly commented 1 year ago

I don't have dot net installed in my laptop. I have specified .NET 6 in manifest so it should install that. Attaching logs.

Interesting. I do see that it did a search for the package. Based on the search query, it seems that this is related to https://github.com/microsoft/winget-cli/labels/Area-Matching where Winget is mis-identifying another package on the system as DotNet.DesktopRuntime.6

2023-09-26 20:10:34.986 [REPO] Finding installed package from available package using system reference search: Query:[none] Include:ProductCode='{0592d506-5847-43cd-81d8-4f4786094df8}'[Exact] Include:ProductCode='{06cd4f51-0a4b-471c-9ccc-e3dd11294c03}'[Exact] Include:ProductCode='{0df3785d-6d1c-4438-b374-b333749d75e4}'[Exact] Include:ProductCode='{0f39db03-9030-48f3-82ef-5384bed81d85}'[Exact] Include:ProductCode='{0f711ee3-eb88-456d-acb4-c2ee31add211}'[Exact] Include:ProductCode='{0f94f805-22c3-4413-b1e5-5ab275ba92d5}'[Exact] Include:ProductCode='{1029e17d-322e-4b22-9a22-12c842deb1a2}'[Exact] Include:ProductCode='{1060f7af-cb36-418a-b850-f8272577f9ab}'[Exact] Include:ProductCode='{1076f621-bac6-40ab-b519-58d896ab3ec3}'[Exact] Include:ProductCode='{1adc560d-44cd-459a-b993-3bfbd5a15d6f}'[Exact] Include:ProductCode='{1fffc0c7-35b0-4b30-9d69-22d4af432aa2}'[Exact] Include:ProductCode='{24b99d74-a81e-4765-aefe-be853ac47482}'[Exact] Include:ProductCode='{33e692e6-1f06-4c3d-8981-738c129e0b2c}'[Exact] Include:ProductCode='{39139702-799e-4843-8d90-cfe9330b285a}'[Exact] Include:ProductCode='{4388d91e-7b64-41cc-b8fb-0b2c1602159f}'[Exact] Include:ProductCode='{438e2731-ef44-4987-ac9e-e19ac28dded5}'[Exact] Include:ProductCode='{46c3b0b1-e7f1-431c-967b-278c9a0107d2}'[Exact] Include:ProductCode='{4798386d-1643-4c0c-b1b2-f09f5d2fe059}'[Exact] Include:ProductCode='{4f079a14-1265-415f-8809-7a4c48a8329a}'[Exact] Include:ProductCode='{569b351b-451b-48db-a2c7-7beb63411666}'[Exact] Include:ProductCode='{68fdb6fb-cca0-4e8e-bf22-7d8f9806c832}'[Exact] Include:ProductCode='{70624c55-d0e1-40a6-913e-96560feea689}'[Exact] Include:ProductCode='{720e50f1-ec87-4573-8dd0-05a88ed63daf}'[Exact] Include:ProductCode='{844ab108-8b8c-40cb-8014-3e68521b0128}'[Exact] Include:ProductCode='{8a683f18-94a7-4665-ae48-bd663b522964}'[Exact] Include:ProductCode='{8d173101-98c1-4e92-97c6-47c6840745a7}'[Exact] Include:ProductCode='{8e256e2b-a36f-4f85-a4c7-37fdf661778c}'[Exact] Include:ProductCode='{8fc89711-89d8-4157-ba4b-f6e15664ad8d}'[Exact] Include:ProductCode='{94516d8b-3ef0-4617-8fd8-40155d1ab91a}'[Exact] Include:ProductCode='{95474ef5-2654-4ae1-a60a-b68931b0e10d}'[Exact] Include:ProductCode='{96cf40b0-81d6-43ed-ad0e-611e67899196}'[Exact] Include:ProductCode='{9a14ddc6-3a4a-420b-a304-ae5cf6579d20}'[Exact] Include:ProductCode='{9ae5aa89-d88f-4e86-b2e3-be3b775896fa}'[Exact] Include:ProductCode='{9dd24b73-88e0-4f0f-882a-500e00d2bdef}'[Exact] Include:ProductCode='{a5dcceca-28c5-4419-b487-19db6eb93050}'[Exact] Include:ProductCode='{a6c2578b-971a-4426-b13d-6980e78bc870}'[Exact] Include:ProductCode='{a7dab025-ec7a-4e8a-add3-6d872f1d8aca}'[Exact] Include:ProductCode='{aad3b888-fde2-48c0-95c2-2f7a729283fb}'[Exact] Include:ProductCode='{b10f60e5-59a9-46f2-9116-2e38ae6bc32e}'[Exact] Include:ProductCode='{b9cfa33e-ace4-49f4-8bb4-82ded940990a}'[Exact] Include:ProductCode='{c31ad3df-16b7-41b3-81fa-7658cb450781}'[Exact] Include:ProductCode='{c4558324-5b32-43fc-9ac2-423fee96dae0}'[Exact] Include:ProductCode='{c4846f79-a633-4ae4-92a3-92fdbeb33da2}'[Exact] Include:ProductCode='{ca35acb3-b442-44fb-924c-4448120bf689}'[Exact] Include:ProductCode='{d0da1241-5784-4a15-98a5-cf37e3f102e6}'[Exact] Include:ProductCode='{da750765-3a7d-4a9c-ada4-e352381b25fa}'[Exact] Include:ProductCode='{e7f1303d-c7d7-4496-ab7a-c1d069dbfad7}'[Exact] Include:ProductCode='{e87d9247-916d-4f99-b417-022ca8af19e3}'[Exact] Include:ProductCode='{ea6630ea-899e-4b36-84ff-9cc123d36399}'[Exact] Include:ProductCode='{f714fb7f-b010-4cad-9b7b-aa428f40a837}'[Exact] Include:ProductCode='{ff748137-9c9a-4056-be0a-48c7e465453c}'[Exact] Include:NormalizedNameAndPublisher='microsoft .net windows desktop runtime 6.0'+'microsoft corporation'[Exact] Include:NormalizedNameAndPublisher='microsoft windows desktop runtime - 6.0.20 (arm64)'+'microsoft corporation'[Exact] Include:NormalizedNameAndPublisher='microsoft windows desktop runtime - 6.0.20 (x64)'+'microsoft corporation'[Exact] Include:NormalizedNameAndPublisher='microsoft windows desktop runtime - 6.0.20 (x86)'+'microsoft corporation'[Exact] Include:NormalizedNameAndPublisher='microsoft windows desktop runtime - 6.0.21 (arm64)'+'microsoft corporation'[Exact] Include:NormalizedNameAndPublisher='microsoft windows desktop runtime - 6.0.21 (x64)'+'microsoft corporation'[Exact] Include:NormalizedNameAndPublisher='microsoft windows desktop runtime - 6.0.21 (x86)'+'microsoft corporation'[Exact] Include:NormalizedNameAndPublisher='microsoft windows desktop runtime - 6.0.22 (arm64)'+'microsoft corporation'[Exact] Include:NormalizedNameAndPublisher='microsoft windows desktop runtime - 6.0.22 (x64)'+'microsoft corporation'[Exact] Include:NormalizedNameAndPublisher='microsoft windows desktop runtime - 6.0.22 (x86)'+'microsoft corporation'[Exact] Include:NormalizedNameAndPublisher='microsoftnetwindowsdesktopruntime'+'microsoft'[Exact] Include:NormalizedNameAndPublisher='microsoftwindowsdesktopruntime'+'microsoft'[Exact] Include:NormalizedNameAndPublisher='microsoftwindowsdesktopruntime(x64)'+'microsoft'[Exact] Include:NormalizedNameAndPublisher='microsoftwindowsdesktopruntime(x86)'+'microsoft'[Exact]
ghost commented 1 year ago

I don't have dot net installed in my laptop. I have specified .NET 6 in manifest so it should install that. Attaching logs.

Interesting. I do see that it did a search for the package. Based on the search query, it seems that this is related to Area-Matching where Winget is mis-identifying another package on the system as DotNet.DesktopRuntime.6

2023-09-26 20:10:34.986 [REPO] Finding installed package from available package using system reference search: Query:[none] Include:ProductCode='{0592d506-5847-43cd-81d8-4f4786094df8}'[Exact] Include:ProductCode='{06cd4f51-0a4b-471c-9ccc-e3dd11294c03}'[Exact] Include:ProductCode='{0df3785d-6d1c-4438-b374-b333749d75e4}'[Exact] Include:ProductCode='{0f39db03-9030-48f3-82ef-5384bed81d85}'[Exact] Include:ProductCode='{0f711ee3-eb88-456d-acb4-c2ee31add211}'[Exact] Include:ProductCode='{0f94f805-22c3-4413-b1e5-5ab275ba92d5}'[Exact] Include:ProductCode='{1029e17d-322e-4b22-9a22-12c842deb1a2}'[Exact] Include:ProductCode='{1060f7af-cb36-418a-b850-f8272577f9ab}'[Exact] Include:ProductCode='{1076f621-bac6-40ab-b519-58d896ab3ec3}'[Exact] Include:ProductCode='{1adc560d-44cd-459a-b993-3bfbd5a15d6f}'[Exact] Include:ProductCode='{1fffc0c7-35b0-4b30-9d69-22d4af432aa2}'[Exact] Include:ProductCode='{24b99d74-a81e-4765-aefe-be853ac47482}'[Exact] Include:ProductCode='{33e692e6-1f06-4c3d-8981-738c129e0b2c}'[Exact] Include:ProductCode='{39139702-799e-4843-8d90-cfe9330b285a}'[Exact] Include:ProductCode='{4388d91e-7b64-41cc-b8fb-0b2c1602159f}'[Exact] Include:ProductCode='{438e2731-ef44-4987-ac9e-e19ac28dded5}'[Exact] Include:ProductCode='{46c3b0b1-e7f1-431c-967b-278c9a0107d2}'[Exact] Include:ProductCode='{4798386d-1643-4c0c-b1b2-f09f5d2fe059}'[Exact] Include:ProductCode='{4f079a14-1265-415f-8809-7a4c48a8329a}'[Exact] Include:ProductCode='{569b351b-451b-48db-a2c7-7beb63411666}'[Exact] Include:ProductCode='{68fdb6fb-cca0-4e8e-bf22-7d8f9806c832}'[Exact] Include:ProductCode='{70624c55-d0e1-40a6-913e-96560feea689}'[Exact] Include:ProductCode='{720e50f1-ec87-4573-8dd0-05a88ed63daf}'[Exact] Include:ProductCode='{844ab108-8b8c-40cb-8014-3e68521b0128}'[Exact] Include:ProductCode='{8a683f18-94a7-4665-ae48-bd663b522964}'[Exact] Include:ProductCode='{8d173101-98c1-4e92-97c6-47c6840745a7}'[Exact] Include:ProductCode='{8e256e2b-a36f-4f85-a4c7-37fdf661778c}'[Exact] Include:ProductCode='{8fc89711-89d8-4157-ba4b-f6e15664ad8d}'[Exact] Include:ProductCode='{94516d8b-3ef0-4617-8fd8-40155d1ab91a}'[Exact] Include:ProductCode='{95474ef5-2654-4ae1-a60a-b68931b0e10d}'[Exact] Include:ProductCode='{96cf40b0-81d6-43ed-ad0e-611e67899196}'[Exact] Include:ProductCode='{9a14ddc6-3a4a-420b-a304-ae5cf6579d20}'[Exact] Include:ProductCode='{9ae5aa89-d88f-4e86-b2e3-be3b775896fa}'[Exact] Include:ProductCode='{9dd24b73-88e0-4f0f-882a-500e00d2bdef}'[Exact] Include:ProductCode='{a5dcceca-28c5-4419-b487-19db6eb93050}'[Exact] Include:ProductCode='{a6c2578b-971a-4426-b13d-6980e78bc870}'[Exact] Include:ProductCode='{a7dab025-ec7a-4e8a-add3-6d872f1d8aca}'[Exact] Include:ProductCode='{aad3b888-fde2-48c0-95c2-2f7a729283fb}'[Exact] Include:ProductCode='{b10f60e5-59a9-46f2-9116-2e38ae6bc32e}'[Exact] Include:ProductCode='{b9cfa33e-ace4-49f4-8bb4-82ded940990a}'[Exact] Include:ProductCode='{c31ad3df-16b7-41b3-81fa-7658cb450781}'[Exact] Include:ProductCode='{c4558324-5b32-43fc-9ac2-423fee96dae0}'[Exact] Include:ProductCode='{c4846f79-a633-4ae4-92a3-92fdbeb33da2}'[Exact] Include:ProductCode='{ca35acb3-b442-44fb-924c-4448120bf689}'[Exact] Include:ProductCode='{d0da1241-5784-4a15-98a5-cf37e3f102e6}'[Exact] Include:ProductCode='{da750765-3a7d-4a9c-ada4-e352381b25fa}'[Exact] Include:ProductCode='{e7f1303d-c7d7-4496-ab7a-c1d069dbfad7}'[Exact] Include:ProductCode='{e87d9247-916d-4f99-b417-022ca8af19e3}'[Exact] Include:ProductCode='{ea6630ea-899e-4b36-84ff-9cc123d36399}'[Exact] Include:ProductCode='{f714fb7f-b010-4cad-9b7b-aa428f40a837}'[Exact] Include:ProductCode='{ff748137-9c9a-4056-be0a-48c7e465453c}'[Exact] Include:NormalizedNameAndPublisher='microsoft .net windows desktop runtime 6.0'+'microsoft corporation'[Exact] Include:NormalizedNameAndPublisher='microsoft windows desktop runtime - 6.0.20 (arm64)'+'microsoft corporation'[Exact] Include:NormalizedNameAndPublisher='microsoft windows desktop runtime - 6.0.20 (x64)'+'microsoft corporation'[Exact] Include:NormalizedNameAndPublisher='microsoft windows desktop runtime - 6.0.20 (x86)'+'microsoft corporation'[Exact] Include:NormalizedNameAndPublisher='microsoft windows desktop runtime - 6.0.21 (arm64)'+'microsoft corporation'[Exact] Include:NormalizedNameAndPublisher='microsoft windows desktop runtime - 6.0.21 (x64)'+'microsoft corporation'[Exact] Include:NormalizedNameAndPublisher='microsoft windows desktop runtime - 6.0.21 (x86)'+'microsoft corporation'[Exact] Include:NormalizedNameAndPublisher='microsoft windows desktop runtime - 6.0.22 (arm64)'+'microsoft corporation'[Exact] Include:NormalizedNameAndPublisher='microsoft windows desktop runtime - 6.0.22 (x64)'+'microsoft corporation'[Exact] Include:NormalizedNameAndPublisher='microsoft windows desktop runtime - 6.0.22 (x86)'+'microsoft corporation'[Exact] Include:NormalizedNameAndPublisher='microsoftnetwindowsdesktopruntime'+'microsoft'[Exact] Include:NormalizedNameAndPublisher='microsoftwindowsdesktopruntime'+'microsoft'[Exact] Include:NormalizedNameAndPublisher='microsoftwindowsdesktopruntime(x64)'+'microsoft'[Exact] Include:NormalizedNameAndPublisher='microsoftwindowsdesktopruntime(x86)'+'microsoft'[Exact]

Screenshot 2023-09-26 204142

Trenly commented 1 year ago

Yep, definitely a misdetection. [Policy] Area-Matching.

denelon commented 1 year ago

New possibly related feature: