Git Product home page Git Product logo

chocolatey's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chocolatey's Issues

[Enhancement] Make the main helpers work with files not coming over HTTP.

Refer to this chocolatey group discussion: How do I use Chocolatey with a private corporate network share based source?


This command

Install-ChocolateyPackage 'mypackage' 'EXE' '/S' '\\mylocalnas\gallery\myproduct.exe' 

produces this error

Write-Error : acrview did not finish successfully. Boo to the chocolatey gods!
-----------------------
[ERROR] Property 'CookieContainer' cannot be found on this object; make sure it exists and is settable.
-----------------------
At D:\packages\chocolateyInstall\helpers\chocolateyInstaller.psm1:373 char:13
+     Write-Error <<<<  $errorMessage
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error

Property 'CookieContainer' cannot be found on this object; make sure it exists and is settable.
At D:\packages\chocolateyInstall\helpers\chocolateyInstaller.psm1:510 char:8
+   $req. <<<< CookieContainer = New-Object System.Net.CookieContainer
    + CategoryInfo          : InvalidOperation: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : PropertyAssignmentException

Chocolatey doesn't work without VisualStudio installed

I tried to install completely fresh machine and started with package installation. Chocolatey didn't throw any errors on installation and also didn't install anything. After some research I found that NuGet.exe is not working, but it started to work after I installed Visual Studio and NuGet separately.

I know that it might be NuGet issue, but maybe some NuGet configuration is missing in Chocolatey installation.

Installation fails: "execution of scripts is disabled"

When I first tried to install chocolatey, I got this error in Powershell:

chocolateyInstall.ps1 cannot be loaded because the 
execution of scripts is disabled on this system.

After seeing the rcommended get-help about_signing (which is several pages long), I turned to DuckDuckGo and found this solution:

Set-ExecutionPolicy RemoteSigned

Now scripts can be executed from Powershell and the installation finishes successfully. Perhaps this information would be helpful to other users new to Powershell who want to install chocolatey. I did not see any mention of it in the installation section of the documentation.

[Enhancement] Virtual Packages

I want to point to a package and have it look to see if there are any packages installed that meet the standards of the package needs.

For instance, I need to see if ruby is installed. I don't care if it is the zipped version or the full blown install.
If it is not installed, then I would like to default to one of these two (the one that doesn't require an install).

Other use cases, install a pdf reader. I wouldn't necessarily care if it is adobe or foxit. I just want one of these to be installed.

BUG: chocolateyInstall.ps1 can not be run (possibly can not be found) during install.

When installing any package ("cinst any_package") after creating folder structure and downloading PS files etc. and when it is time for "chocolateyInstall.ps1" to be executed, nothing happens on my Windows 7 x64.

But when I browse to the "tools" folder, rename "chocolateyInstall.ps1" to "chocolateyinstall.ps1" and "cinst any_package" again, everything runs fine and package is installed successfully.

My OS language is English but my regional and keyboard settings are Turkish (and I am from Turkey).

I think this is because in Turkish uppercase "i" !== "I" but uppercase "i" === "İ" and lowercase "I" === "ı" and so chocolatey can not find "chocolateyInstall.ps1"

Becuase my OS language is English, maybe this shouldn't be a problem but this is the only logical explanation I could think of.

[Enhancement] Install Nuget to the path as part of the 'easy install'

If you install Chocolatey using the easy install on the Chocolatey.org website, you don't get the NuGet.exe on your command line.

iex ((new-object net.webclient).DownloadString("http://bit.ly/psChocInstall"))

If you go on and update (cup) or install Chocolatey using Chocolatey (cinst chocolatey), you get a new NuGet batch file in the %chocolateyInstall%\bin\ path.

It seems like you should get NuGet on your command line as part of the easy install.

[Enhancement] Support Uninstalls

cuninst somepackage
gives the user a choice of what to remove
cuninst somepackage -version 1.23
removes just that version

This would reroute the batch link to the most up to date version. If there are no more versions, delete the batch file.

Look to see if there is an chocolateyUninstall.ps1 file. This file could actually remove applications from the computer. Of course the uninstaller would need to look at the version installed before running the uninstaller in case someone has upgraded.

Uninstall-ChocolateyPackage $packageName $possiblePathsToUninstaller
This may need helpers for the version

A link to help this idea: http://www.appdeploy.com/software/detail.asp?id=266176

Remove the stuff from lib folder as well.

[Bug] Source path with spaces fails.

Installing a package with a source path containing spaces fails in the NuGet command.

PS> cinst windowpad -source "D:\Users\Anthony Mastrean\Downloads"
=====================================================
Chocolatey (0.9.8.12) is installing windowpad (from D:\Users\Anthony) to "C:\Users\Anthon
y Mastrean\AppData\Roaming\Chocolatey\lib"
=====================================================
Package License Acceptance Terms
-------------------------
Please run chocolatey /? for full license acceptance verbage. By installing you accept th
e license for the package you are installing...
-------------------------
-------------------------
NuGet
-------------------------

Version string portion was too short or too long.
=====================================================
Chocolatey has finished installing windowpad
=====================================================

[Bug] The Chocolatey update to 0.9.8.13 has some unintended output.

The latest chocolatey update seems to be leaving some goofy stuff on the console. I did the update with cup from my console. You can see that here.

Z:\> cup
The most recent version of chocolatey available from (https://go.microsoft.com/fwlink/?Link=206669) is 0.9.8.13. On your machine you have 0.9.8.12 installed.
=====================================================
Chocolatey (0.9.8.12) is installing chocolatey (from https://go.microsoft.com/fwlink/?LinkID=206669) to "D:\packages\lib"
=====================================================
Package License Acceptance Terms
-------------------------
Please run chocolatey /? for full license acceptance verbage. By installing you accept the license for the package you are installing...
-------------------------
-------------------------
NuGet
-------------------------
Successfully installed 'chocolatey 0.9.8.13'.

It did a lot of downloading and made my existing bat files portable. And you can see at the bottom, it leaves some text on the console. It looks like these might have been incorrectly escaped commands or output text.

-------------------------
Executable Batch Links
-------------------------
Looking for executables in folder: D:\packages\lib\chocolatey.0.9.8.13
Adding batch files for any executables found to a location on PATH. In other words the executable will be available from ANY command line/powershell prompt.
-------------------------
Adding D:\packages\bin\NuGet.bat and pointing to D:\packages\lib\chocolatey.0.9.8.13\tools\chocolateyInstall\NuGet.exe
-------------------------
=====================================================
Chocolatey has finished installing chocolatey
=====================================================
'rrentThread.CurrentUICulture' is not recognized as an internal or external command, operable program or batch file.
'import-module' is not recognized as an internal or external command, operable program or batch file.
The specified path is invalid.

Notepad++ doesn't install

There is an error installing notepad++:
Failed to download package correctly. The contents of the package could not be verified.

Enhancement: Reduce the number of window pop ups

Now that you don't need to assert admin privileges for chocolateyinstall.ps1 prior to running it, there is no reason to pop a second window. The processes that need admin privileges will automatically pop a window and that is fine.

Cannot 'cinst' windowpad: "Version string portion was too short or too long."

The windowpad package is a simple download zip and create shortcut script. It has a dependency on autohotkey, which I've done before. It has a two segment version (1.60), which I've done before. When I try to debug the package, I get some goofy message

PS> cinst windowpad -source "$pwd"
=====================================================
Chocolatey (0.9.8.12) is installing windowpad (from D:\Users\Anthony) to "C:\Users\Anthon
y Mastrean\AppData\Roaming\Chocolatey\lib"
=====================================================
Package License Acceptance Terms
-------------------------
Please run chocolatey /? for full license acceptance verbage. By installing you accept th
e license for the package you are installing...
-------------------------
-------------------------
NuGet
-------------------------

Version string portion was too short or too long.
=====================================================
Chocolatey has finished installing windowpad
=====================================================

I tried messing with the autohotkey dependency version number (which I know isn't necessary) and it didn't help. I used NuGet directly and was able to unpack the nupkg (obviously, it didn't run the chocolateyInstall). I put the autohotkey dependency in the same source directory.

PS> nuget install windowpad -source "$pwd"

Enhancement: Add a helper to install powershell commands

I want to be able to have a powershell script that I can access anywhere on the system and not just from powershell by putting in a batch redirect that calls powershell and passes the script in question.

So if I had a powershell script named install-windowsimage.ps1, I could run this command during install and it would allow me to call install-windowsimage.bat with the arguments.

[Enhancement] cinst all -source somewhere

As long as the source is not webpi, ruby, nuget.org, or chocolatey, I should be able to install all packages from a custom feed. This will greatly reduce the need to carry around and maintain a file for installations.

Cant install! remove-module and import-module problem

Downloading http://chocolatey.org/packages/chocolatey/DownloadPackage to C:\DOCUME1\PABLOD1\CONFIG1\Temp\chocolatey\chocInstall\chocolatey.zip
Extracting C:\DOCUME
1\PABLOD1\CONFIG1\Temp\chocolatey\chocInstall\chocolatey.zip to ...
Installing chocolatey on this machine
The term 'remove-module' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.
At C:\DOCUME1\PABLOD1\CONFIG~1\Temp\chocolatey\chocInstall\tools\chocolateyInstall.ps1:7 char:28

  •                                                     remove-module  <<<< $moduleName -ErrorAction SilentlyContinue
    
    ;
    The term 'import-module' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.
    At C:\DOCUME1\PABLOD1\CONFIG~1\Temp\chocolatey\chocInstall\tools\chocolateyInstall.ps1:8 char:28
  •                                                     import-module  <<<< -name  $psm1File;
    
    The term 'Initialize-Chocolatey' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.
    At C:\DOCUME1\PABLOD1\CONFIG~1\Temp\chocolatey\chocInstall\tools\chocolateyInstall.ps1:11 char:22
  • Initialize-Chocolatey <<<<
    Updating chocolatey to the latest version
    The term 'cup' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again
    .
    At line:48 char:4
  • cup <<<< chocolatey

Install doesn't function

All installs fail to complete, however they do report as installed.

PS C:\Users\John> cinst nodejs
=====================================================
Chocolatey (0.9.8.11) is installing nodejs (from https://go.microsoft.com/fwlink/?LinkID=206669) to "C:\NuGet\lib"
=====================================================
Package License Acceptance Terms
-------------------------
Please run chocolatey /? for full license acceptance verbage. By installing you accept the license for the package you a
re installing...
-------------------------
-------------------------
NuGet
-------------------------
'nodejs 0.5.9' already installed.

-------------------------
-------------------------
Chocolatey Runner (NODEJS)
-------------------------
-------------------------
Chocolatey Installation (chocolateyinstall.ps1)
-------------------------
Looking for chocolateyinstall.ps1 in folder C:\NuGet\lib\nodejs.0.5.9
If chocolateyInstall.ps1 is found, it will be run.
-------------------------
Running powershell -NoProfile -ExecutionPolicy unrestricted -Command "& import-module -name  'C:\NuGet\chocolateyInstall
\helpers\chocolateyInstaller.psm1'; & 'C:\NuGet\lib\nodejs.0.5.9\tools\chocolateyInstall.ps1'". This may take awhile and
 permissions may need to be elevated, depending on the package.
Exception calling "Start" with "1" argument(s): "The system cannot find the file specified"
At C:\NuGet\chocolateyInstall\chocolatey.ps1:33 char:43
+   $s = [System.Diagnostics.Process]::Start <<<< ($psi);
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

You cannot call a method on a null-valued expression.
At C:\NuGet\chocolateyInstall\chocolatey.ps1:34 char:17
+   $s.WaitForExit <<<< ();
    + CategoryInfo          : InvalidOperation: (WaitForExit:String) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

[ERROR] Running powershell with -NoProfile -ExecutionPolicy unrestricted -Command "& import-module -name  'C:\NuGet\choc
olateyInstall\helpers\chocolateyInstaller.psm1'; & 'C:\NuGet\lib\nodejs.0.5.9\tools\chocolateyInstall.ps1'" was not succ
essful.
-------------------------
Executable Batch Links
-------------------------
Looking for executables in folder: C:\NuGet\lib\nodejs.0.5.9
Adding batch files for any executables found to a location on PATH. In other words the executable will be available from
 ANY command line/powershell prompt.
-------------------------
There are no executables in the package.
-------------------------
=====================================================
Chocolatey has finished installing nodejs
=====================================================
PS C:\Users\John> cver
You have the latest version of chocolatey (0.9.8.11) based on (https://go.microsoft.com/fwlink/?LinkID=206669).

Name                           Value
----                           -----
found                          0.9.8.11
latestCompare                  00000.00009.00008.00011
latest                         0.9.8.11
foundCompare                   00000.00009.00008.00011


PS C:\Users\John> cup all
You have the latest version of Console2 (2.0) based on (https://go.microsoft.com/fwlink/?LinkID=206669).
You have the latest version of grepwin (1.5.3) based on (https://go.microsoft.com/fwlink/?LinkID=206669).
You have the latest version of nodejs (0.5.9) based on (https://go.microsoft.com/fwlink/?LinkID=206669).

[Enhancement] Restore packages from a 'packages.config' file

The NuGet way, nuget install packages.config, only downloads the packages. The idea being, you've already installed the packages into the projects, you're just rebuilding a new machine/workspace. Obviously, chocolatey would have different semantics: rebuild a machine from this "manifest" (reinstall or update packages).

chocolatey install packages.config

or

cinst packages.config

[Bug] The NuGet.bat file is not portable.

The new chocolatey (0.9.8.13) processes existing bat files to make them portable. Then it puts a NuGet.bat in the bin. That file is not portable.

@echo off
"D:\packages\lib\chocolatey.0.9.8.13\tools\chocolateyInstall\NuGet.exe" %*

Packages are reported to be installed even though install failed

I tried to install cUrl, but the package was not found and thus the install failed.

When running cup all, I'm getting this:
curl does not appear to be on (https://go.microsoft.com/fwlink/?LinkID=206669). You have 7.21.7 installed. Interesting...

Something intelligent should be done with failed installs.

When installer fails

When an installer fails to install the package should not be put in the lib folder or be removed from the lib folder.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.