winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

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

Open Alaknar opened this issue 1 year ago • 2 comments

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

Alaknar avatar Aug 09 '24 07:08 Alaknar

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

Trenly avatar Aug 09 '24 12:08 Trenly

  • https://github.com/microsoft/winget-pkgs/issues/157749

stephengillie avatar Aug 09 '24 17:08 stephengillie