Git Product home page Git Product logo

chocolateypackages's Introduction

chocolateypackages's People

Contributors

digitaldrummerj avatar jtcmedia avatar justinpjames avatar

Stargazers

 avatar

Watchers

 avatar  avatar

chocolateypackages's Issues

android-sdk uninstalled incorrectly

I had a problem uninstall android-sdk.

2018-06-01 14:59:09,064 5896 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\android-sdk\tools\chocolateyUninstall.ps1'
2018-06-01 14:59:10,105 5896 [ERROR] - cannot connect to daemon at tcp:5037: cannot connect to 127.0.0.1:5037: No connection could be made because the target machine actively refused it. (10061)
2018-06-01 14:59:10,153 5896 [DEBUG] - Running Uninstall-ChocolateyZipPackage -packageName 'android-sdk' -zipFileName 'tools_r25.2.3-windows.zip' 
2018-06-01 14:59:10,171 5896 [ERROR] - ERROR: Cannot bind argument to parameter 'Path' because it is null.
2018-06-01 14:59:10,183 5896 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\android-sdk\tools\chocolateyUninstall.ps1' -installArguments '' -packageParameters '''] exited with '-1'.
2018-06-01 14:59:10,196 5896 [DEBUG] - Calling command ['"C:\WINDOWS\System32\shutdown.exe" /a']
2018-06-01 14:59:10,239 5896 [DEBUG] - Command ['"C:\WINDOWS\System32\shutdown.exe" /a'] exited with '1116'
2018-06-01 14:59:10,248 5896 [ERROR] - android-sdk uninstall not successful.
2018-06-01 14:59:10,259 5896 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\android-sdk\tools\chocolateyUninstall.ps1'.
 See log for details.
2018-06-01 14:59:10,271 5896 [ERROR] - android-sdk not uninstalled. An error occurred during uninstall:
 android-sdk uninstall not successful.
2018-06-01 14:59:10,298 5896 [WARN ] - 
Chocolatey uninstalled 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2018-06-01 14:59:10,308 5896 [INFO ] - 
2018-06-01 14:59:10,317 5896 [ERROR] - Failures
2018-06-01 14:59:10,328 5896 [ERROR] -  - android-sdk (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\android-sdk\tools\chocolateyUninstall.ps1'.
 See log for details.
2018-06-01 14:59:10,341 5896 [WARN ] - 
If a package uninstall is failing and/or you've already uninstalled the
 software outside of Chocolatey, you can attempt to run the command
 with `-n` to skip running a chocolateyUninstall script, additionally
 adding `--skip-autouninstaller` to skip an attempt to automatically
 remove system-installed software. This will only remove the packaging
 files and not things like software installed to Programs and Features.

If a package is failing because it is a dependency of another package
 or packages, then you may first need to consider if it needs removed
 as it is typically installed as a dependency for a reason. If you
 decide that you still want to remove it, head into
 `$env:ChocolateyInstall\lib` and find the package folder you want
 removed. Then delete the folder for the package. This option should
 only be used as a last resort.
 
2018-06-01 14:59:10,374 5896 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2018-06-01 14:59:10,428 5896 [DEBUG] - Exiting with -1

Accept licences issue and fix

When installing this package into a docker container, I see that sdkmanager prompts to accept a licence, and the workaround you have added here doesn't seem to work - perhaps there is some timing issue causing the input to get missed.

What finally solved this issue for me was a slightly larger workaround:

$nl = [System.Environment]::NewLine;
$yesFileContent = "yes" + $nl + "yes" + $nl + "yes" + $nl + "yes" + $nl
Set-Content -Path ".\yes.txt" -Value $yesFileContent -Force
cmd /c '.\sdkmanager.bat tools < yes.txt'

What this does is to create a file with multiple lines where each line has yes.
I then pipe that into the sdkmanager.bat tools command when installing the tools package. I repeat this for any other packages I install. This seems enough for the yes not to get missed and the licence actually gets accepted.

JAVA_HOME not set in JDK7 v7.0.79 package

It appears that the $java_home variable does not get set after the jdk is installed and before it is used to set the environment variable on line 42. Looking through the code and previous versions, it looks like a call to get-java-home has fallen into the abyss at some point. I believe it should be called around line 41 in chocolateyInstall.ps1

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.