Giter Site home page Giter Site logo

Comments (3)

denelon avatar denelon commented on June 30, 2024

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.

florelis avatar florelis commented on June 30, 2024

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.

jo-chemla avatar jo-chemla commented on June 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.