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

add install parameter #140

Closed
reaseno opened this issue Sep 15, 2022 · 5 comments
Closed

add install parameter #140

reaseno opened this issue Sep 15, 2022 · 5 comments
Labels
new-feature A new feature that could be useful in WingetUI ready-to-go

Comments

@reaseno
Copy link

reaseno commented Sep 15, 2022

It would be nice to be able to add parameters like --overwrite manually:

winget install Microsoft.VisualStudioCode --override '/SILENT /mergetasks="!runcode,addcontextmenufiles,addcontextmenufolders"'

more:
winget install --help

And it would also be nice to be able to save them for updates.

@marticliment
Copy link
Owner

Difficult but i'll take this in account

@marticliment marticliment added new-feature A new feature that could be useful in WingetUI ready-to-go hard-one lol labels Sep 16, 2022
@ppvnf
Copy link
Contributor

ppvnf commented Sep 29, 2022

#123 seems related

@ppvnf
Copy link
Contributor

ppvnf commented Mar 23, 2023

For Chocolatey:

Example:
choco install virtualbox --params "/NoDesktopShortcut /ExtensionPack"

To find out about parameters you can look at the description: https://community.chocolatey.org/packages/virtualbox#description

@marticliment
Copy link
Owner

An option will be provided to be able to pass parameters to the choco/winget executable:
image

@ppvnf
Copy link
Contributor

ppvnf commented Apr 19, 2023

chocolatey has an option to remember the packages parameters when updating, but for some reason it is not turned on by default (see chocolatey/choco#797). To enable it run choco feature enable -n useRememberedArgumentsForUpgrades. I am not sure if Winget has something similar, but it is pretty handy not having to delete desktop icons when updates. I don't think it is an essential thing for WingetUI to add though. If someone knows a way to do the same with Winget, please tell me

Edit: someone explained why that Chocolatey feature is not enabled by default ( because of open issues), so it doesn't really make sense to implement it on WingetUI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature A new feature that could be useful in WingetUI ready-to-go
Projects
None yet
Development

No branches or pull requests

3 participants