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

Push multiple versions of a package (chocolatey)

I have seen that it was possible to download and install different versions of a package. However I would like to know how to push different versions of a package to a server: If I pack a package and version it to 0.1 then proceed to push it - and…
trexgris
  • 362
  • 3
  • 14
0
votes
1 answer

Call a chocolatey package in powershell based on its package name

I recently set up a new machine and installed/enabled chocolatey. As far as I can remember I was able to call a package via powershell based on the package name. For instance, if I wanted to install mongodb, I used to type choco install mongodb -…
trexgris
  • 362
  • 3
  • 14
0
votes
2 answers

How to set with offline image in Chocolatey Packages for internal packages?

I have developed a few internal Chocolatey Packages and the internal repository has no access to Internet. I'd like to have the icon of the packages I have developed to be included in the package itself. Is this possible in Chocolatey?
Dilshad Abduwali
  • 1,388
  • 7
  • 26
  • 47
0
votes
0 answers

Error when executing this Ansible/Powershell

We would like to execute a package comparer to compare Chocolatey packages from the local repository with the public repository. Now when we execute the playbook, the copy of the script goes well but the execution of the script goes good too but…
user11818050
0
votes
1 answer

How to tell a chocolatey shim to use the path from original network location where the install file is located

When installing a locally hosted chocolatey package based on an installer located on the local network I can see a shim is created. This shim I understand points to the original installer. But for this to work the shim needs to be run in the network…
dnvn
  • 11
  • 4
0
votes
1 answer

Custom Chocolatey Package installing to wrong directory?

I created an installer that will download and install dependencies (I dont know if I am doing it right by the way). Everything installs properly ... But by the end of the installation I am getting an obscure message. Here is my installer function…
trexgris
  • 362
  • 3
  • 14
0
votes
1 answer

Automation of trusted packages in chocolatey using puppet

We have been given the task to deploy an infrastructure in openstack using puppet which installs only trusted packages from chocolatey. The problem we face is to implement a secure way to check if a package is trusted and apply this to our puppet…
0
votes
1 answer

Where are the environment variable set when installing a package (Chocolatey)?

I have been scratching my head over the following issue: After installing a package via chocolatey (in my case, gnuplot) - I am notified that the environment variables has been modified. I am able to call it in Powershell simply by typing gnuplot…
trexgris
  • 362
  • 3
  • 14
0
votes
1 answer

Unable to install SQL Server 2008 R2 by chocolatey

Unable to install SQL Server 2008 R2 Management Studio by chocolatey. Ran the command below: choco install sqlserver2008r2express-managementstudio --version 10.50.4000.1 -y --force Getting output as below: Chocolatey v0.10.15 Installing the…
learner
  • 2,480
  • 10
  • 50
  • 94
0
votes
0 answers

Is there any way that I can specify one of two commands if they have the same name in windows command prompt?

Specifically I have a conflict with using cup parser generator and chocolatey. Both have a command "cup" with chocolatey's "cup" meaning choco upgrade. Is there any way I can specify which command the command line should use? Or replace one command…
0
votes
1 answer

Uninstall package and its dependencies

I'm trying to uninstall a private package, but because it is used by others packages Chocolatey show me this: Unable to uninstall 'tibco-businessworks 6.5.1' because 'bw_6.5.1_hf_002 6.5.1.002, tibco_bwpluginibmi 7.2.0' depend on it. The problem…
Anouar BAKRI
  • 314
  • 2
  • 13
0
votes
1 answer

Manual reboot & login when Installing packages through choco via powershell script

I've a powershell script which installs some softwares using choco. Softwares like vagrant require reboot of the system and machine reboots on its own. How can I make this process fully automated as in if restart is required then, it restarts and…
Axel
  • 113
  • 3
0
votes
1 answer

How to show console log progressively?

When I execute powershell script that call Install-ChocolateyPackage or Update-ChocolateyPackage, the console log show on only after the script finish executing, I want the script to print log progressively, how can i do that please ? thank you
Anouar BAKRI
  • 314
  • 2
  • 13
0
votes
2 answers

Search for chocolatey local package and get result as powershell object

Is there any function to use instead of using this command in powershell script? choco search --local-only $package.name The function needs to return a list/array of objects with name and version if they exist, I want to use that in a powershell…
Anouar BAKRI
  • 314
  • 2
  • 13
0
votes
1 answer

When I install `Chocolatey`, nothing happens after entering the command

I enter the code in the command line: @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object…
eusataf
  • 807
  • 1
  • 12
  • 24