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

Chocolatey Installation with PackageParams error parsing second argument

Chocolatey v0.13.3 (Free version) We are creating Chocolatey Packages for our Install Shield msi installers. When installing we are passing in package parameters (-params ) to configure some of the application configuration files after the…
Flightdeck73
  • 303
  • 2
  • 8
0
votes
1 answer

Run chef block only if chocolatey is installing package

I'm having an issue with determining if a package was installed or was already installed using chef's chocolatey_package functionality. Pretty much, I'm installing a package that requires an iisreset afterwards. I only want iis to be reset when the…
0
votes
2 answers

Should I rewrite Chocolatey's warning messages in my wrapper script?

I've bundled a Chocolatey installer into PowerShell: My script calls a function for the installation process. The user is supposed to run .\install.ps1 in PowerShell. If the package already is installed the output is similar to:
0
votes
0 answers

How Chocolatey should be prepared using NPM working environment?

Previously installed packages should be removed? What should be the local path and environment variables? Any of these topics, there are suggestions for Windows?
anarchist
  • 23
  • 4
0
votes
1 answer

Why doesn't Uninstall-Package launch the Chocolatey uninstall script?

So I've been trying out OneGet for a while and wanted to create packages. The biggest problem I've run into is that OneGet does not seem to actually execute the uninstall script provided into the package. This is the .nuspec file and the script…
Tevemark
  • 33
  • 4
0
votes
1 answer

How do I prevent NuGet restore from downloading a Chocolatey package?

I have a vs2015 solution that relies on NuGet packages. On my dev box, VS2015 takes care of restoring packages. On my CI server, I use the command line "NuGet.exe restore" before calling MSBuild. This all works fine, except... on a new CI server,…
mike mckechnie
  • 844
  • 8
  • 14
0
votes
1 answer

Permission denied on tools/python after chocolatey install?

Even though I have admin rights, I continue getting permission denied errors when writing to the files inside my chocolatey python installation. Why, how can I fix that? PermissionError: [WinError 5] Access is denied:…
kutschkem
  • 7,826
  • 3
  • 21
  • 56
0
votes
2 answers

Chocolatey not working

When I try to run chocolatey from the Command Prompt, it gives me this error: The system cannot find the file C:\Chocolatey\bin\chocolatey.exe. I've tried changing the environmental variable, but then it gives me (almost) the same thing: The system…
user3806019
  • 45
  • 2
  • 9
0
votes
1 answer

Nuget - strategy for delivering servers

Coming from the Unix/Linux world, I came across Nuget and Chocolatey as a possibility to help me automate the provisioning, configuration and software installation of Windows servers. My scenario currently is to clone Windows 2008 VM's with…
Steve Hong
  • 189
  • 1
  • 2
  • 9
0
votes
1 answer

How to add additional files to a package using NuGet?

Attempt Nuspec Result File is not added to tools directory Running cpack indicates the…
030
  • 10,842
  • 12
  • 78
  • 123
0
votes
2 answers

install chocolatey redis packages for VisualStudio on build

When we download git project and click build button in VS, it restores nuget packages and then compile. always cool. Just like that, I'd like to install Redis locally before compile because my project unit test job requires Redis. I found Redis-64…
Youngjae
  • 24,352
  • 18
  • 113
  • 198
0
votes
1 answer

Can I Request the Latest Package with a specific Pre-Release Tag?

I work in an environment in which we have to distribute multiple different pre-release versions of our packages to internal employees who are not developers. I'm giving them a .bat file right now that has the "-pre" flag, to install the latest…
Tyler Jones
  • 1,283
  • 4
  • 18
  • 38
0
votes
1 answer

Creating a chocolatey package using the quick start guide fails the UTF-8 test even when using a UTF-8 supported editor

When running the warmup chocolatey PackageName command in the Quick start guide the generated nuspec file gets the omega character replaced with '???' (see below) even though I open it in an editor supporting UTF-8 (e.g. Sublime). Can I safely…
Christian
  • 7,433
  • 4
  • 36
  • 61
0
votes
1 answer

What is the proper syntax to pass installargs to a chocolatey package through Chef's chocolatey recipe?

I'm trying to install a chocolatey package through a chef script. I need to pass it specific arguments to install the way I want, and I'm getting lost in the multiple levels of escaping going on between ruby, powershell, and whatever else may be in…
Jay Oliver
  • 53
  • 6
0
votes
1 answer

Chocolatey install packages from local network

Is it possible to install packages from a location on local network or even your own harddrive, because I dont want my chocolatey script to download the packages from internet everytime I run it. I want to be able to put the packages on to central…
maths
  • 1,399
  • 5
  • 23
  • 38