Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upHave a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
![Install Install](https://itsalwaysmyproblem.files.wordpress.com/2017/09/chocolatey.png)
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
commented Jan 9, 2018
What You Are Seeing?During the installation of some packages with following command: The process seems to wait for user input or maybe window focus? I am running on a fresh Windows 10 installation and had this behaviour quite a few times lately. The installation seems to sit there and wait for something to happen and it unfreezes only when I press enter on the shell. There is no prompt written. What is Expected?The installation should continue until the end of execution without having the user to input anything. How Did You Get This To Happen? (Steps to Reproduce)Install windows 10, install chocolatey with powershell, close powershell, open again (as administrator) and run the following command: Output LogIt's not very helpful to paste the whole output for this above command, but I had it stop before these two lines when it was installing It continued after focusing on the window and pressing enter. Maybe I'm not patient and I did not wait for hours, but it really seem to lock and wait for a user input sometimes. Version informations |
commented Jan 11, 2018 • edited
edited
Please submit the detailed log of this from chocolatey.log (it will start at about and you will see the command you run. Copy from there to the next and submit that). That will help us out. |
commented Jan 11, 2018
I will post a log here next time I work on a windows system, but I had this problem a few times in the past too and on different systems for different packages. |
commented Jan 12, 2018
I take it you already destroyed the system where you saw this then? The log file would still be there otherwise. |
commented Jan 12, 2018
ah indeed this time it wasn’t on a vm, it’s at the office, I’ll post the log tomorrow morning. :) |
commented Jan 16, 2018
@GabLeRoux if you have that log file, that would be most helpful. |
commented Jan 16, 2019 • edited
edited
Same issue on my machine. Windows 10, PowerShell. My log is pasted below. It did not freeze for everything, it only froze at the following points:
Rather than enter, I pressed ctl+c to get it moving along. |
commented Jan 18, 2019 • edited
edited
Those two points are where it takes forever to do something. If you lift the console up for any reason or click on it, the console stops logging until you hit enter (or possibly Ctrl+C). This is a 'feature' of the console window. It's not actually frozen in that choco is waiting, it's that the console isn't outputting the log until you do something. |
commented Mar 29, 2019
Experienced the same thing just now on my vm. The powershell console continued after i pressed 'enter', the logging to programdata was also paused till I pressed a key. |
commented Apr 8, 2019
@verzada this sounds like its due to the following: https://serverfault.com/questions/204150/sometimes-powershell-stops-sending-output-until-i-press-enter-why Powershell pauses output completely if you click into it, for whatever reason. Was happenign to me to. Once I adjusted the settings mentioned in that post, it was fine. |
commented May 10, 2019 • edited
edited
@ndom91 output meaning also log output? That just sounds weird. |
commented May 17, 2019
Not sure if related.. |
Installs a package or a list of packages (sometimes specified as apackages.config). Some may prefer to use cinst
as a shortcut for[[choco install
|Commandsinstall]].
NOTE: 100% compatible with older chocolatey client (0.9.8.32 and below)with options and switches. Add -y
for previous behavior with noprompt. In most cases you can still pass options and switches with onedash (-
). For more details, see how to pass arguments (choco -?
).
- Alternative Sources
Usage
NOTE:all
is a special package keyword that will allow you to installall packages from a custom feed. Will not work with Chocolatey defaultfeed. THIS IS NOT YET REIMPLEMENTED.
NOTE: Any package name ending with .config is considered a'packages.config' file. Please see https://bit.ly/packages_config
NOTE:Chocolatey Pro / Business builds on top of a great open sourceexperience with quite a few features that enhance the your use of thecommunity package repository (when using Pro), and really enhance theChocolatey experience all around. If you are an organization lookingfor a better ROI, look no further than Business - automatic packagecreation from installer files, automatic recompile support, runtimemalware protection, private CDN download cache, synchronize withPrograms and Features, etc - https://chocolatey.org/compare.
Kannada hit songs. Presenting To You 'Best Hits of Hamsalekha' Audio Jukebox, From The Best Hit Movies of Balagalittu. 2017 Kannada best Songs| latest Kannada Super Hit Songs| Neelakanta Kannada Movie| Namitha. Enjoy the song collection from the album All Time Volume Hits. Dont forget to visit ShemarooKannada for more.
Examples
Choco can also install directly from a nuspec/nupkg file. This aids intesting packages:
Install multiple versions of a package using -m (AllowMultiple versions)
What is -my
? See option bundling in how to pass arguments(choco -?
).
NOTE: All of these will add to PATH variable. We'll be adding a specialoption to not allow PATH changes. Until then you will need to manuallygo modify Path to just one Ruby and then use something like uru(https://bitbucket.org/jonforums/uru) or pik(https://chocolatey.org/packages/pik) to switch between versions.
NOTE: See scripting in how to pass arguments (choco -?
) for how towrite proper scripts and integrations.
Exit Codes
![Choco install list Choco install list](https://www.guruadvisor.net/images/numero17/Chocolatey/choco-gui-install.png)
Exit codes that normally result from running this command.
Normal:
- 0: operation was successful, no issues detected
- -1 or 1: an error has occurred
Package Exit Codes:
- 1641: success, reboot initiated
- 3010: success, reboot required
- other (not listed): likely an error has occurred
In addition to normal exit codes, packages are allowed to exitwith their own codes when the feature 'usePackageExitCodes' isturned on. Uninstall command has additional valid exit codes.Available in v0.9.10+.
Reboot Exit Codes:
- 350: pending reboot detected, no action has occurred
- 1604: install suspended, incomplete
In addition to the above exit codes, you may also see reboot exit codeswhen the feature 'exitOnRebootDetected' is turned on. It typically requiresthe feature 'usePackageExitCodes' to also be turned on to work properly.Available in v0.10.12+.
See It In Action
Chocolatey FOSS install showing tab completion and refreshenv
(a wayto update environment variables without restarting the shell).
Chocolatey Professional showing private download cache and virus scanprotection.
Packages.config
Alternative to PackageName. This is a list of packages in an xml manifest for Chocolatey to install. This is like the packages.config that NuGet uses except it also adds other options and switches. This can also be the path to the packages.config file if it is not in the current working directory.
NOTE: The filename is only required to end in .config, the name is not required to be packages.config.
Choco Install List
Alternative Sources
Available in 0.9.10+.
Ruby
This specifies the source is Ruby Gems and that we are installing agem. If you do not have ruby installed prior to running this command,the command will install that first.e.g. choco install compass -source ruby
WebPI
This specifies the source is Web PI (Web Platform Installer) and thatwe are installing a WebPI product, such as IISExpress. If you do nothave the Web PI command line installed, it will install that first andthen the product requested.e.g. choco install IISExpress --source webpi
Cygwin
This specifies the source is Cygwin and that we are installing a cygwinpackage, such as bash. If you do not have Cygwin installed, it willinstall that first and then the product requested.e.g. choco install bash --source cygwin
It is illegal for you to distribute copyrighted files without permission. The media files you download with aiohows.com must be for time shifting, personal, private, non commercial use only and remove the files after listening. Darling movie background music mp3 download. Aiohows.com is not responsible for third party website content.
Python
This specifies the source is Python and that we are installing a pythonpackage, such as Sphinx. If you do not have easy_install and Pythoninstalled, it will install those first and then the product requested.e.g. choco install sphinx --source python
Choco Install Yum
Windows Features
This specifies that the source is a Windows Feature and we shouldinstall via the Deployment Image Servicing and Management tool (DISM)on the local machine.e.g. choco install IIS-WebServerRole --source windowsfeatures
Resources
- How-To: A complete example of how you can use the PackageParameters argumentwhen creating a Chocolatey Package can be seen athttps://chocolatey.org/docs/how-to-parse-package-parameters-argument
- One may want to override the default installation directory of apiece of software. Seehttps://chocolatey.org/docs/getting-started#overriding-default-install-directory-or-other-advanced-install-concepts.
Options and Switches
NOTE: Options and switches apply to all items passed, so if you arerunning a command like install that allows installing multiplepackages, and you use --version=1.0.0
, it is going to look for andtry to install version 1.0.0 of every package passed. So please splitout multiple package calls when wanting to pass specific options.
Includes default options/switches (included below for completeness).
NOTE: This documentation has been automatically generated from choco install -h
.