AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Winget install4/30/2023 If you look at some of them you will see what parameters they use by default and be able to know if you need to override them to fit your needs. By the way, the packages and their manifests can be found in this GitHub repository. The name override could seem a bit strange but it is to indicate that we override the default parameters that could have been specified in the manifest of the package you are installing. ![]() So override is a really useful option because it allows us to customize our program installations. You can find the documentation of the visual studio installer with the parameters I used here. Winget install -silent -override "-wait -quiet -addProductLang En-us -add " To do that we can run the following command: If we take the example of Visual Studio 2019, let's say we want to install it with the English language pack and the Azure workload. An example with Visual Studio 2019 installation When using winget CLI, you can also specify these parameters by passing them as the value of the option override. Each installer has its own parameters that you can specify on the command line if you run the installer exe in your terminal. For instance, Git installer lets you choose how you want to handle CRLF. When you install a program on your laptop, the installer GUI often prompts you to configure some parameters for the program. ![]() ![]() Winget install official documentation says the override option to the install command can be used to provide a " string that will be passed directly to the installer". Well, that was before I went through a few GitHub issues of the winget-cli repository that mentioned the override option. ![]() In my last article about Windows Package Manager, I said that with winget I was missing " being able to specify some parameters for a package installation (like the workload and components to install for Visual Studio 2019)".
0 Comments
Read More
Leave a Reply. |