Skip to content

Instantly share code, notes, and snippets.

@chaim1221
Created November 29, 2016 19:55
Show Gist options
  • Save chaim1221/98f8ec84103d6953ed4eccbfac957795 to your computer and use it in GitHub Desktop.
Save chaim1221/98f8ec84103d6953ed4eccbfac957795 to your computer and use it in GitHub Desktop.
[SWDevTools] C:\Windows\system32> choco version
found : 0.9.8.28
name : chocolatey
latestCompare : 000000000000.000000000009.000000000009.000000000011
verMessage : A more recent version is available
latest : 0.9.9.11
foundCompare : 000000000000.000000000009.000000000008.000000000028
[SWDevTools] C:\Windows\system32> choco install chocolatey
Chocolatey (v0.9.8.28) is installing 'chocolatey' and dependencies. By installing you accept the license for 'chocolatey
' and each dependency you are installing.
chocolatey v0.10.3
Creating ChocolateyInstall as an environment variable (targeting 'Machine')
Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
WARNING: It's very likely you will need to close and reopen your shell
before you can use choco.
Restricting write permissions to Administrators
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\ProgramData\chocolatey\lib'
(i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'.
Creating Chocolatey folders if they do not already exist.
WARNING: You can safely ignore errors related to missing log files when
upgrading from a version of Chocolatey less than 0.9.9.
'Batch file could not be found' is also safe to ignore.
'The system cannot find the file specified' - also safe.
WARNING: Not setting tab completion: Profile file does not exist at
'C:\Users\celiyah\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'.
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
first prior to using choco.
Finished installing 'chocolatey' and dependencies - if errors not shown in console, none detected. Check log for errors
if unsure.
Get-Content : Cannot find path 'C:\ProgramData\chocolatey\chocolateyinstall\chocolatey.config' because it does not exis
t.
At C:\ProgramData\chocolatey\chocolateyinstall\functions\Get-GlobalConfigValue.ps1:11 char:32
+ $globalConfig = [xml] (Get-Content $globalConfigFile)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\ProgramData\...ocolatey.config:String) [Get-Content], ItemNotFoundEx
ception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand
Write-Error : A configuration value for ksMessage was not found
At C:\ProgramData\chocolatey\chocolateyinstall\functions\Get-ConfigValue.ps1:20 char:7
+ Write-Error "A configuration value for $configValue was not found"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error
Did you know we are rewriting Chocolatey? The new
version is much more stable and secure.
Find out more and support the future of Chocolatey
at https://bit.ly/chocolateykickstarter
Disable this message by changing ksMessage to false in chocolatey.config.
The batch file cannot be found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment