Questions tagged [chocolatey]

Chocolatey is a Windows apt-get like global automation tool (used mostly as a silent installer). Use this tag for questions about Chocolatey usage and package creation/maintenance. Issues with packages you don't maintain should be asked on Super User, or better, reported to the package maintainer listed on the community feed for the problem package.

Chocolatey is a Windows apt-get-like package management tool (used mostly as a silent installer). It uses PowerShell and you can automate almost everything.

It allows you to create packages and submit them to the main feed repository, put those packages on custom sources like includes myget.org, a file share, directories, custom feeds and private feeds. Most packages take advantage of the functions that a Chocolatey PowerShell module provides that make downloading and silently installing an application no more than a function call.

Use this tag for questions about Chocolatey usage and package creation/maintenance. However, issues with packages you don't maintain are best suited for Super User, or even better, by contacting the package maintainer listed on the community feed for the problem package.

See chocolatey.org for all details.

642 questions
0
votes
1 answer

How do you run the same job on multiple machines powershell?

BasicallyIm trying to run a powershell command from a list of machines. I can invoke the command on each machine, but i have to wait for each machine to complete the installations before moving on to the next one. When I try creating a job for each…
ETHER
  • 37
  • 1
  • 13
0
votes
2 answers

How do I write a powershell script to setup a developer environment on Windows?

Stack Overflow, I am working on a PowerShell script to setup a developer environment for my team. I want to have it so that a user can click a shortcut and have the necessary developer tools downloaded and installed for them. These installations…
Bradley Marques
  • 129
  • 1
  • 16
0
votes
1 answer

Detecting an outdated Chocolatey package programmatically

In my use of Chocolatey to provision Jenkins build nodes, I have a need to perform certain operations before and/or after a choco upgrade (e.g., stopping the Jenkins service, or reconfiguring Git after installation). My simplest alternative is to…
Nick Jones
  • 4,395
  • 6
  • 33
  • 44
0
votes
0 answers

gitlab-ci exits the job after refreshenv after installing choco

When using gitlab-ci with windows, I tried installing choco. I ran refreshenv after choco, it skips the commands after refreshenv and exits the job declaring that the job was a success. my .gitlab-ci.yml before-script: - > …
Vasantha Ganesh
  • 4,570
  • 3
  • 25
  • 33
0
votes
1 answer

Chocolatey Credentials Required

I just installed chocolatey through nuGet using the following steps in the admin shell: chocolatey nuget install. However, when I try to get any package, I am asked for credentials (which I assume is not meant to happen). Can anyone point out what I…
Bob
  • 21
  • 4
0
votes
1 answer

Use packages downloaded and installed as source for another machine

I am starting to use Chocolatey with Artifactory as my main source and I need a machine to act as a source for another that has no Internet. Scenario: Machine A install packageA and packageB pulled from Artifactory (Internet access). All good…
Squirrel
  • 1,283
  • 1
  • 13
  • 22
0
votes
1 answer

Chocolatey unable to install jre. Throwing 1603

I am unable to install jre in windows 2016 using chocolatey. It throws an exit code 1603. The jre is getting downloaded. The problem comes at the time of installing jre. Following is the log: [server-core-2016] [0;32m openstack: Progress:…
0
votes
2 answers

chocolatey cpack parameter passing

i have been pouring over Chocolatey documentation and have not yet found an example of the use of package-parameter argument that addresses my need. Note, i am relativey new to Chocolatey. I am attempting to create a NuGet package, using…
speKc
  • 21
  • 3
0
votes
1 answer

Install files by copying to specific folder

I have build artifacts in a folder (e.g. FolderTest) that needs to be deployed to a specific folders locations on Windows such as: C: FolderA FileA FileB FolderB FileC FolderC FilesD Is it…
Squirrel
  • 1,283
  • 1
  • 13
  • 22
0
votes
1 answer

Sync multiple chocolatey repositories

I was wondering if there is a way for chocolatey to sync multiple repositories to one, in a hub and spoke topology. I am implementing a chocolatey repo system in my organization, and I need to have repositories located in multiple network segments,…
Acerbity
  • 417
  • 1
  • 11
  • 29
0
votes
1 answer

Chocolatey waits for input

Wrote a simple batch to automatically install some packages: choco install dotnet4.7.1 -y choco install netfx-4.7.1-devpack -y choco install microsoft-build-tools -y The -y switch was added so it won't interact with the user, but I tried to run…
Alex Weitz
  • 3,199
  • 4
  • 34
  • 57
0
votes
1 answer

Build gradle fails even in new apps

I keep getting the same error "Error:Execution failed for task ':app:mergeDebugResources' no servers to serve " This happened after I installed glade via choco. I deleted every folder of android studio(.gradle, sdk, projects, etc) and deleted…
0
votes
1 answer

What does Chocolatey consider essential information?

The Chocolatey documentation describes the -r, --limitoutput, --limit-output flags as "Limit the output to essential information". I'm using it with the upgrade command: choco upgrade all --whatif --limitoutput and get this…
JustHeath
  • 70
  • 5
0
votes
1 answer

Chocolatey: Simple Automatic Upgrades of Local Folder Packages

I have a folder like c:\chocopkg where I put a couple of packages which I can't find on the official repo. Creating nupkg archives was really simple and fun. Instead, the Automatic Updater (AU) is too much for me: there is no simple cinst au; one…
antonio
  • 10,629
  • 13
  • 68
  • 136
0
votes
1 answer

ARM template deploy w/ Chocolatey CSE fails on PS script

I have been following along with this ARM template to build a VM and deploy apps via Chocolatey: https://github.com/Azure/azure-quickstart-templates/tree/master/visual-studio-dev-vm-chocolatey Despite the extension on GitHub showing as a Linux…
Beefcake
  • 733
  • 2
  • 12
  • 37