On top of this, Chocolatey has the concept of extension packages, which means that you can encapsulate common operations into a single Chocolatey package, which can then be used as a dependency on any other package that needs that functionality. Here the installation of vscode is completed as a single unit of work, and then the custom configuration is applied afterwards. The beauty of this approach is separation of concerns that can be achieved. Once complete, the installation of the vscode-config package will happen, and your custom configuration will be applied. Then, when you run: choco install vscode-configĬhocolatey will first ensure that all dependencies for this packages are met, and will install the vscode package. You could create a separate package called vscode-config, which takes a dependency on vscode, and in that package, you could perform all the necessary configuration that you wanted to achieve. For example, lets imagine that you want to install the vscode application, but you also wanted to perform some custom configuration after the installation was performed. When you couple this with the knowledge that a single Chocolatey package can take a dependency on another Chocolatey package, then you can quite quickly see how simple it can be to chain together a complex installation scenario. Gone are the days of guessing at what version of a binary is deployed onto any given machine. The benefit comes that you will then know exactly what version of these artifacts are deployed onto any machine, and as a result, you will know when some of these artifacts need to be updated. Then you can do all of these with Chocolatey. place some scripts into a particular folder.Since on a Windows machine you can pretty much do "anything" with PowerShell, you can pretty much do "anything" within a Chocolatey package. At the heart of this is PowerShell, the automation language for Windows. Chocolatey brings with it the concept of a Universal Packaging format for Windows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |