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.31k stars 1.45k forks source link

Exit code 87 when using /override params on Logitech.OptionsPlus #4722

Open Alaknar opened 3 months ago

Alaknar commented 3 months ago

Brief description of your issue

I'm performing installation using this command:

winget.exe install Logitech.OptionsPlus --accept-source-agreements --accept-package-agreements --override "/sso no /flow no /analytics no /log C:\ProgramData\Microsoft\IntuneManagementExtension\Logs /quiet" --force

I'm trying to uninstall the software using this command:

winget.exe install Logitech.OptionsPlus --accept-source-agreements --accept-package-agreements --override "/sso no /flow no /analytics no /log C:\ProgramData\Microsoft\IntuneManagementExtension\Logs /quiet /uninstall" --force

In both cases the process succeeds (software shows up or disappears from the device) but WinGet is reporting a failure.

Steps to reproduce

Run one of the mentioned commands.

Expected behavior

Installation or removal succeeds.

Actual behavior

Receiving the message:

Installer failed with exit code: 87

Environment

Windows Package Manager v1.8.1911
Windows: Windows.Desktop v10.0.22631.3737
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.1911.0
Trenly commented 3 months ago

87 is the exit code that's being received from the logitech installer. WinGet is just passing it through. In order to show a success, WinGet expects the exit code 0

[Policy] Area External
stephengillie commented 3 months ago