Skip to content
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

UpgradePackage silently #41

Open
Skio22 opened this issue Sep 6, 2024 · 3 comments
Open

UpgradePackage silently #41

Skio22 opened this issue Sep 6, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@Skio22
Copy link

Skio22 commented Sep 6, 2024

Hello, firstly, I would like to thank you for the library. I use it for upgrading packages, but every upgrade currently requires user acceptance via dialogs. Winget provides a --silent mode, which would make the package upgrading process much smoother and more seamless. Currently, the UpgradePackage function passes the --accept-source-agreements parameter. Is there a possibility to add the --silent parameter as an optional parameter?

@basicx-StrgV basicx-StrgV added the enhancement New feature or request label Sep 6, 2024
@basicx-StrgV
Copy link
Owner

Hi,
I will add the silent upgrade function with the next update.

Please keep in mind that the silent installation feature of winget only works if the package that should be installed or upgraded has a silent installer option. For packages that don't offer silent installation the behavior will be the same as it is now.
But, I think, this feature should work for most packages.

@Skio22
Copy link
Author

Skio22 commented Sep 10, 2024

Thank you very much for adding the silent parameter in the next update. Yes, I am aware that not every app supports silent upgrades, but it will still be a significant enhancement for my use cases.

basicx-StrgV added a commit that referenced this issue Sep 11, 2024
@basicx-StrgV
Copy link
Owner

I released version 4.2.0, which contains a silent option for package install, upgrade, repair and uninstall.

https://github.com/basicx-StrgV/WGet.NET/releases/tag/4.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants