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.03k stars 1.43k forks source link

The msys-2.0.dll that the package depends on cannot be loaded correctly. #3947

Closed lonnywong closed 10 months ago

lonnywong commented 10 months ago

Brief description of your issue

The msys-2.0.dll that the package depends on cannot be loaded correctly.

There are rz.exe and sz.exe in C:\Users\x\AppData\Local\Microsoft\WinGet\Links\.

There are rz.exe, sz.exe and msys-2.0.dll in C:\Users\x\AppData\Local\Microsoft\WinGet\Packages\trzsz.lrzsz__DefaultSource\lrzsz_0.12.21rc_windows_x86_64\.

The rz and sz command only works in C:\Users\x\AppData\Local\Microsoft\WinGet\Packages\trzsz.lrzsz__DefaultSource\lrzsz_0.12.21rc_windows_x86_64\.

It will fail when running in other directory.

Steps to reproduce

  1. winget install -m . for https://github.com/microsoft/winget-pkgs/pull/129171
  2. Run rz -h and sz -h command.

Expected behavior

Run rz -h should output the help message:

rz version 0.12.21rc
Usage: rz [options] [filename.if.xmodem]
...

Actual behavior

No output. Maybe the msys-2.0.dll cannot be loaded.

Environment

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

Windows: Windows.Desktop v10.0.22621.2715
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.3133.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
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
lonnywong commented 10 months ago

BTW, it works with chocolatey: https://community.chocolatey.org/packages/lrzsz.

choco install lrzsz --version=0.12.21
Trenly commented 10 months ago
denelon commented 10 months ago

Duplicate of #2711

microsoft-github-policy-service[bot] commented 10 months ago

Hello @lonnywong,

We've identified this as a duplicate of another issue or PR that already exists. This specific instance is being closed in favor of the linked issue. Please add your 👍 to the other issue to raise its priority. Thanks for your contribution!

Template: msftbot/duplicate/closed