Skip to content

winget install --silent option only suppresses UI and is not completely silent #3891

Description

Brief description of your issue

--silent option is meant to install packages silently so that users running this in an automated fashion will not need to see the details of installation unless specified.

Steps to reproduce

Run
winget install --id Microsoft.Git --disable-interactivity --silent --accept-source-agreements --accept-package-agreements

The logs indicate it did run /VERYSILENT but yet dumps a lot in the console.
2023-11-14 19:23:33.315 Setup command line: /SL5="$290C98,64264836,867328,C:\Users\shakhare\AppData\Local\Temp\WinGet\Microsoft.Git.2.42.0.0.3\Git-2.42.0.vfs.0.3-64-bit.exe" /VERYSILENT /NORESTART /LOG="C:\Users\shakhare\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-Microsoft.Git.2.42.0.0.3-2023-11-14-19-23-30.944.log" /SUPPRESSMSGBOXES /enable-component windowsterminal

Expected behavior

Should not print to stdout if running --silent which is essentially /VERYSILENT. Instead print the outputs to a log file.

Actual behavior

winget install --id Microsoft.Git --disable-interactivity --silent --accept-source-agreements --accept-package-agreements
Found Microsoft Git [Microsoft.Git] Version 2.42.0.0.3
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/microsoft/git/releases/download/v2.42.0.vfs.0.3/Git-2.42.0.vfs.0.3-64-bit.exe
██████████████████████████████ 62.4 MB / 62.4 MB
Successfully verified installer hash
Starting package install...
Successfully installed

Environment

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

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

Running on Windows 11.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-FeatureThis is a feature request for the Windows Package Manager client.Resolution-DuplicateIssue is a duplicate

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions