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

choco install pscx fails

I get error this trying to install pscx powershell module via Chocolatey ERROR: Chocolatey expected a file at 'C:\Users\zf58\AppData\Local\Temp\chocolatey\pscx\3.2.0\pscxInstall.msi' to be of length '667' but the length was '1408'. The install of…
Sreerag
  • 1,381
  • 3
  • 11
  • 16
0
votes
1 answer

How to format chocolatey params in puppet manifest

The following choco install command works fine: choco Install 'InstallTest' -y --source 'C:\installtest' --params="'/serverinstance:MyServer /buildtype:OTP'" I now have the following, in a Puppet manifest: package { 'InstallTest': ensure …
PAC
  • 15
  • 1
  • 4
0
votes
2 answers

Some errors while installing Chocolatey

I'm currently trying to download Jekyll on Windows 10, and I'm having difficulty installing Ruby through Chocolatey. I'm following the instructions provided on this website:https://jekyllrb.com/docs/windows/ Here is the error that is causing some…
0
votes
1 answer

Nano Server container with Jenkins and Chocolatey

I need to have Jenkins and Java on a Windows container and I am investigating whether to use Windows Server Core or Windows Nano Server. So that the assembly of the container is fast and the movement of DEV to PRO is agile. I see better Nano Server…
user1911
  • 680
  • 1
  • 14
  • 36
0
votes
1 answer

Chocolatey commands not running remotely

when i am running chocolatey through powershell locally it`s working fine but when i try to run the chocolatey commands from remote machine it says choco is not recognized.All other commands are working fine remotely. Please Help
Narinder Verma
  • 153
  • 2
  • 16
0
votes
1 answer

How can I access C:\ProgramData in cmd

I installed Chocolatey using the NuGet Console in Visual Studio which reported it was successfully installed in C:\ProgramData and I could use it in cmd or Powershell. I tried 'choco install git' which also completed successfully, it created a…
Ravi
  • 727
  • 6
  • 19
0
votes
1 answer

Chocolatey: Make an install script

In order to make install scripts and understanding existing ones, I would like to know what happens behind the scenes of the typical: choco install notepadplusplus I found the following here: Installation Chocolatey uses Nuget.Core to retrieve…
antonio
  • 10,629
  • 13
  • 68
  • 136
0
votes
1 answer

How can I install Choco and a few applications from the same call in my application?

The first time I open and run the program it installs Choco but will not install the applications. If I close the application and run it again, it will then install the applications. My guess is the WinForm doesn't know it can use the choco command?…
Landmine
  • 1,759
  • 6
  • 39
  • 60
0
votes
0 answers

How to write a script to open a cmd prompt as administrator in Windows?

This should be a common question and the closest I found is: runas /noprofile /user:mymachine\administrator yourbatchfile.bat However the above is not 100% automatic and it will open another cmd window and ask user to type admin password. My…
user1559625
  • 2,583
  • 5
  • 37
  • 75
0
votes
1 answer

How can I configurate an installation/package in Chocolatey

I'm new to Chocolatey and playing with it now. My goal is to install and upgrade all my essential applications by one PowerShell script. I have one problem atm. When I manually install e.g. CCleaner then I can configurate by the wizard if I a want a…
Klaus
  • 189
  • 2
  • 11
0
votes
0 answers

StreamReader.CurrentEncoding different when run through chocolatey or octopus

I've got an azure VM with a number of files on it. Some of these files are pretty messed up, for example, containing a UTF8 BOM and non-UTF8 characters, in particular, smart quotes like so:
sirdank
  • 3,351
  • 3
  • 25
  • 58
0
votes
0 answers

Provisioning Vagrant box with Chocolatey causes node.exe to not be found while running webdriver

I am trying to configuring a Windows 7 Vagrant box to run tests. I used Chocolatey in the provisioning to install all the dependencies needed and everything is almost ready, but I keep running into this error when trying to run webdriver-manager…
Bruno Finger
  • 2,105
  • 3
  • 27
  • 47
0
votes
0 answers

Gracefully Terminate a Process from DSC or chocolateyinstall.ps1

You can gracefully terminate a program normally by: Get-Process "*notepad*" | Foreach-Object {$_.CloseMainWindow()} I'm using a DSC configuration with Package or a cChoco resource to install a package. I'd like to warn the user the program is…
0
votes
0 answers

Provision windows machine with vagrant to install github desktop

I try to install github desktop via chocolatey (vagrant provisioning) on my windows virtual machine. The installation process runs until the actual github installation. The error message looks like this: Download of GitHubSetup.exe (663.49 KB)…
Maximilian
  • 1,325
  • 2
  • 14
  • 35
0
votes
0 answers

choco list omits results

On my machine at home, choco list works fine. On my machine at work, it does not. Behavior on machine at work: Fine: PS C:\Windows\system32> choco list --exact --all maven Chocolatey v0.10.3 maven 3.3.9.1 ... maven 3.3.3 ... ... 9 packages…
Marco Eckstein
  • 4,448
  • 4
  • 37
  • 48