marticliment / UniGetUI

UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers
https://www.marticliment.com/unigetui/
MIT License
12.12k stars 409 forks source link

Silent install / install parameter (global) #157

Closed ppvnf closed 1 year ago

ppvnf commented 1 year ago

I dislike seeing the installer when installing a Winget package, so my suggestion is to add an option in the settings to enable global silent install/uninstall/update option. An alternative would be to add a global install parameter.

By the way, --silent alone is enough for a silent install and --accept-package-agreements --accept-source-agreements are useless since Winget agrees with everything by default, right?

Related: https://github.com/martinet101/WingetUI/issues/140 (for individual packages I believe) https://github.com/martinet101/WingetUI/issues/44 (I didn't quite understand the discussion there about unattended/silent install. I know installation through WingetUI is unattended, why can't it be silent also?)

EDIT:

I think I figured out what you mean in https://github.com/martinet101/WingetUI/issues/44. WingetUI uses --silent, but this command sometimes doesn't work properly, isn't it?

I've tested updating Pinta directly through Winget and through WingetUI. Both display a pop-up. However, this script apparently uses a workaround to have completely silent updates (I also found this comment interesting).

Would launching a hidden powershell/cmd window be enough to accomplish this or do you think it is a problem for Microsoft to fix?

On a second thought, I don't think a global install parameter would be useful to achieve a silent install. So, unless there's a reason, you may ignore it.

marticliment commented 1 year ago

--accept-package-agreements --accept-source-agreements are useless since Winget agrees with everything by default, right?

Nope, it does not, especially when there is msstore origin available (still asks if the argument --source winget is passed)


The issue with silent installs is that not every installer handles the same way the arguments. some require --silent, some require /verysilent and some other require other things (and passing them all would cause errors). That's why silent installs is not a thing that can be fixed from here but rather should fix the winget-cli project.

However, i've seen now the winget (not installer) --silent argument, i'm gonna test it and see if it works or not, but the main issue is with winget. (because scoop apps do not annoy when installed)

marticliment commented 1 year ago

It seems to work, at least partially.

marticliment commented 1 year ago

I have added it