Comments (3)
I believe in this case, the issue is the limit of 10 arguments in a batch file.
Have you tried winget export
and winget import
?
They are a bit more optimized for dealing with a set of packages.
You could fairly easily modify the contents of the JSON file to suit your needs and save some typing.
It might also be worth taking a look at WinGet Configuration which can do considerably more than just install packages.
from winget-cli.
There is a hard limit to the number of args, but it is actually 128.
I just tried the command you shared and it seems to work correctly for me. It did install only 10 packages, but that was because Windows Terminal was already installed and it got skipped.
What version of winget are you using? Do you see any error in the logs? These can be found with winget --logs
from winget-cli.
Hey there, not exactly sure what happened, I tested again on another machine the winget install
command with >10 packages (~30, out of which 17 did install because the others were already satisfying the latest version). It might indeed have come from an earlier winget version - I don't have access to this machine anymore.
Thanks also for pointing out at WinGet Configuration
(looks a bit like ansible winget
although not live) and winget import/export
, this might indeed be very useful!
from winget-cli.
Related Issues (20)
- PortableUninstall uninstaller failed: 2316632067 HOT 5
- Incorrect Versioning of Multiple Packages - Upgrade Or Manual Install Has No Effect - .NET, CUDA, Others HOT 4
- `winget export` failing with `Element not found` error HOT 4
- Add option to stop updating windows inbox apps / store apps HOT 2
- Github Desktopclear HOT 1
- Brand new Windows 11 machine has winget installed but all commands don't return anything HOT 3
- The update process fails although the package was successfully updated. HOT 4
- 0x8a15000f : Data required by the source is missing HOT 7
- winget does not recognice the installed version correct if run without administrator rights HOT 2
- winget import says json file is not valid. HOT 5
- Update Pipelines to use BinSkim v4
- `Get-WinGetPackage`'s `-Exact` option doesn't function HOT 4
- Cannot remove winget source without admin rights HOT 9
- Neovim is installed twice instead upgraded HOT 4
- when using winget list --id "7zip.7zip" not found but shows when using winget list HOT 3
- Unable to upgrade k6 HOT 3
- Access denied (0xc0000005) when running under Windows 10 version 17763 HOT 2
- Winget not update obs-ptz HOT 1
- Interacting at all with the `winget` source hangs HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winget-cli.