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
22.55k stars 1.4k forks source link

VMware.HorizonClient dependency issue #4367

Open AkosBakos opened 2 months ago

AkosBakos commented 2 months ago

Brief description of your issue

Package ID "VMware.HorizonClient" cannot be installed on a clean machine, due wrong dependencies.

Steps to reproduce

When I install VMware-Horizon-Client-2312.1-8.12.1-23531249.exe, different dependencies will be installed on client, than I would install "winget install VMware.HorizonClient".

Expected behavior

it should be installed incl. all dependencies (with pre-defined versions)

Actual behavior

Installation breaks

Environment

winget --info
Windows Package Manager v1.7.10861
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.4291
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.10861.0

Winget Directories
---------------------------------------------------------------------------------------------------------------------------- 
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutpu… 
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.… 
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                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
AkosBakos commented 2 months ago

".\VMware-Horizon-Client-2312.1-8.12.1-23531249.exe /silent /norestart" installs the following components: 1

winget install "vmware.horizonclient" --silent 2

Winget installs the following components: 3

AkosBakos commented 2 months ago

vmware.horizonclient can be installed like that: winget install "Microsoft.DotNet.Runtime.6" --silent --accept-source-agreements --accept-package-agreements winget install "Microsoft.VCRedist.2015+.x64" --silent --accept-source-agreements --accept-package-agreements winget install "Microsoft.DotNet.DesktopRuntime.6" --version 6.0.28 --silent --accept-source-agreements --accept-package-agreements

winget install "VMware.HorizonClient" --silent --accept-source-agreements --accept-package-agreements

Trenly commented 2 months ago

Currently dependencies have no way to specify an exact version is required. The best would be for VMWare to update their installer to allow higher versions of the Desktop Runtime, but I understand that may not be possible

AkosBakos commented 2 months ago

But even when I get done this specific version for successfully installation. Then the upgrade process will fail, because these new dependencies which are wrong by VMware?!

Or I am asking in another way: why are the dependencies different for the EXE installer than for the winget installer?