-
Notifications
You must be signed in to change notification settings - Fork 44
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 support for --override #4
Comments
Maybe it can work with something like this : Edit: |
We will have to think differently cause we can put several packages in the script. So not easy to introduce the override feature as is. |
It may have to be an additional parameter, accepting the commands you want to override with as input. There'd also have to be a check whether the override flag is used or not before adding the flag to the actual winget command being run, otherwise it'll see override with nothing next to it, and ignore the usual silent installation options. When I have a moment, I'll throw together a proof of concept. I have a rough idea how to do it in my head, just have to find time to make it work. |
We currently use Winget to install our antimalware software and use the override flag to specify the appropriate license key, as per the following example.
winget install --id=Webroot.SecureAnywhere -e -h --override "/silent /key=XXXX-XXXX-XXXX-XXXX-XXXX /exeshowaddremove /lang=en"
It'd be nice to be able to support the override flag in this script for cases like this, where commercial software requiring product keys or other cases rely on the override flag.
The text was updated successfully, but these errors were encountered: