winget-cli: Silent install of "winget install git.git" is not working
Environment
Windows Package Manager v0.2.10191 Preview Copyright © Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.18363.1440 Package: Microsoft.DesktopAppInstaller v1.11.10191.0
Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
Issue
I am trying to use winget install
to install git remotely. When running through a remote session the install hangs because I suspect the installer is waiting for an interaction as it has not gone silent. When I run the silent mode on a local powershell with administrator I get the dialog pop. How can I guarantee silent mode for all potential apps?
I have tried…
winget isntall git.git -h winget isntall git.git --silent winget isntall git.git /silent winget isntall git.git /s winget install --id Git.Git -e -h winget install --id Git.Git -e --silent
The dropbox link shows my winget --info as well as the install command failing to run silently and popping up the installer dialog. I am using a powershell in Administrator mode. Eventually I want this to work over a remote session but Im surprised to run up against this immediately. I also tried Notepad++ with the same issue.
Screen Capture
https://www.dropbox.com/s/wwvl068kfvx98y1/winGetInstallSilentIssue.png?dl=0
Thank you,
Jarrett
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 30 (14 by maintainers)
I did have Smartscreen enabled. As mentioned in my comment, my machine is not managed at all, no policies were defined.
However I have taken the Windows 11 Dev Insider Channel update and the issue seems to have been alleviated, I just attempted
winget install git
and awinget upgrade --all
and things are working again. As with the previous commentors, while on that build, turning off Zone Identifier checks fixed the issue, but I no longer need the workaround now on 22000.65.Ok good to know. Hopefully this will catch on eventually.