-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
winget (v1.2) upgrade --all --silent only installs the first package silently #2008
Comments
+1 on this, I'm using winget v1.2.10941 and same thing happens. |
--silent doesn't properly work for me sometimes (it shows a pop-up briefly). I don't think there's any pattern tho. Some packages are silent and other aren't |
Same behavior here when doing |
Same thing here. The first one—GitHub Desktop—upgraded silently fine, but the rest of the queue (M365 apps, Git, Visual Studio libraries, etc.) popped up GUIs. |
I have experienced the same problem with a variety of applications as well. |
Tried v1.4.3531 now, it shows a different behavior: First package was not installed silently, but the second one was. This was using CMD without admin permissions, and the MSIX package extracted to a folder on my desktop, as I did not want to override current installed Winget version. Output from CMD
Edit: Strange. Log output found in Log file
Edit 2: Think it's a problem with oh-my-posh, opened an issue in its' repo. Edit 3: A bug with winget, according to oh-my-posh author. The install parameter should be |
I seem to still have this issue with |
@jonasjancarik which package isn't installing/upgrading silently? I'm curious if it's the update mechanism in the package as opposed to WinGet failing to honor the switch. |
Good question, I will try to figure out. It's true the original issue was that any package that was not the first one on the list wouldn't be installed silently, now it seems like it's only happening with specific packages. I'll report back. |
I think you're right. It seems to have been an issue with |
While upgrading the following list of packages I had a couple of popups
Visual Studio BuildTools 2022 [Microsoft.VisualStudio.2022.BuildTools] Version 17.5.2 For the following packages I had installer progressbar window:
For the following packages I had an unzipping popup:
|
This issue is not fixed @florelis, @denelon. I tried Logs however says that silent switch is specified. But I'm lead to believe that logs does not show what is actually sent to the installer. Windows 10 22H2 19045.2846. Programs upgraded, which all install silently with no progress if
Logs: DiagOutputDir.zip |
@o-l-a-v The installer logs show that the /SILENT flag was passed, so we can be sure winget sent the args. But I think the combination of flags in this case actually amount to "silent with progress" instead of "silent". |
Ah, right. Sorry I brought it up again. Don't know if I forgot or never caught that. (The amount of time between stable releases is too damn high. ^^) |
Not for me. If you don't provide logs and the list of packages you tried to upgrade this is impossible to troubleshoot. |
Commented with wrong accout, here is the log: WinGet-2024-03-01-10-41-07.760.log If you need any other files, just let me know. |
I'm not a maintainer in this project, just a user that faced the same problem with an earlier version of Winget. :) Just thought that saying "it doesn't work" with no logs, terminal output etc. isn't very helpful. Would be helpful to know what package showed progress / GUI. Was it all but the very first package? From the logs it seems that all packages got a silent/quiet parameter passed to it. It has happened that some packages (outside the control of Winget) show progress / GUI even if silent/quiet is passed correctly. So which package showed progress / GUI?
|
Hello again, Here is an output from my last
All packages have displayed the confirmation popup. Regards |
Confirmation as in admin ellevation / consent? 🤔 |
Yes. If you install apps that requires admin permission, either run CMD / PowerShell / Terminal as admin and don't get prompted with UAC for each app, or don't and get prompted with UAC for each app. This is expected behavior. 🙂 |
Brief description of your issue
winget upgrade --all --silent
only installs the first package silently. The rest shows progress.I had following upgrades available when running
winget upgrade
.First Teams installed silently, but neither of the VCRedist or JDK did.
Steps to reproduce
Have more than one package to upgrade, then:
winget upgrade --all --silent
Expected behavior
All packages should install silently.
Actual behavior
Only the first package installs silently.
Environment
The text was updated successfully, but these errors were encountered: