Chocolatey package for easy install on Windows

Dear Windows user,

I know your pain... No need to add more to it :D
Here is how to install the bleeding edge AlethZero for Windows with a single command as with homebrew or apt-get using chocolatey (based on NuGet, more at http://chocolatey.org)

cinst -pre alethzero

And the next day, if you need the even more bleedy bleeding edge version, it goes like this to reinstall:

cinst -pre -force alethzero

More and especially about security/trust concerns at https://github.com/chevdor/ethereum-chocolatey

Enjoy!

Comments

  • MarioFortierMarioFortier Boston, MAMember Posts: 30
    Using chocolatey + your approach for first time.

    Did not handle 7z dependency in my case.

    Regards.

    ====

    C:\Windows\system32>cinst -pre alethzero
    !!ATTENTION!!
    The next version of Chocolatey (v0.9.9) will require -y to perform
    behaviors that change state without prompting for confirmation. Start
    using it now in your automated scripts.

    For details on the all new Chocolatey, visit http://bit.ly/new_choco
    Chocolatey (v0.9.8.33) is installing 'alethzero' and dependencies. By installing
    you accept the license for 'alethzero' and each dependency you are installing.

    AlethZero v0.8.2.3-POC8
    Let me get the latest version for you. I am copying it in your temp folder:
    C:\Users\Mario\AppData\Local\Temp\AlethZero-Win32-latest.7z
    Write-Error : Package 'AlethZero v0.8.2.3-POC8' did not install successfully: T
    he term '7z' is not recognized as the name of a cmdlet, function, script file,
    or operable program. Check the spelling of the name, or if a path was included,
    verify that the path is correct and try again.
    At C:\ProgramData\chocolatey\chocolateyinstall\functions\Chocolatey-NuGet.ps1:9
    0 char:17
    + Write-Error "Package `'$installedPackageName v$installedPacka
    geV ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~
    + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorExcep
    tion
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio
    n,Write-Error

    Finished installing 'alethzero' and dependencies - if errors not shown in consol
    e, none detected. Check log for errors if unsure.

    C:\Windows\system32>7za

    7-Zip (A) 4.42 Copyright (c) 1999-2006 Igor Pavlov 2006-05-14
    ...
  • chevdorchevdor Member Posts: 6
    Hello Mario,

    Thanks for taking the time to report the issue. Let me ask you a few questions to understand.

    Did you start your command prompt as admin ?

    Regarding 7z, can you try installing it "manually" using chocolatey and telling whether that solves the issue? Ideally, I would ask you to report this issue on github and we can keep investigating there. I would help also users who may have the same issue.
  • chevdorchevdor Member Posts: 6
    You will now find 2 versions: stable and latest
  • knobsonkookknobsonkook Member Posts: 14
    Can u make video about installation?
  • DaveHDaveH Member Posts: 42
    I've hit the same error as Mario. Did anyone find a solution?

    I did run an administrator command prompt.

    Thanks!
  • rslrsl Member Posts: 6
    edited May 2015
    I'm also having the same issue.May be the author look into this problem.
  • georgegeorge Member Posts: 2
    same issue, cinst 7z choco install seems to work... however does not seem to unpack at aleth0 cinst. it cant find 7z to unpack aleth0...wtf.
  • carloscarlsoncarloscarlson Member Posts: 10
    same issue here
  • Maren85Maren85 Member Posts: 41
    The reason your all coming up with the 7z error is because you have to install the 7z tool addon in choc from here

    Enjoy
  • carloscarlsoncarloscarlson Member Posts: 10
    Nope, still having the same issue
  • NehemiahNehemiah Member Posts: 1
    @Chevdor I am having a different error during choclatey install. Any help would be greatly appreciated. Please see cmd line output below:
    C:\>choco install alethzero-stable -pre
    Chocolatey v0.9.9.6
    Installing the following packages:
    alethzero-stable
    By installing you accept licenses for the packages.
    
    AlethZero-Stable v0.8.2.3-POC8
    The package AlethZero-Stable wants to run 'chocolateyInstall.ps1'.
    Note: If you don't run this script, the installation will fail.
    Note: To confirm automatically next time, use '-y' or consider setting
     'allowGlobalConfirmation'. Run 'choco feature -h' for more details.
    Do you want to run the script?
     1) yes
     2) no
     3) print
    1
     <b class="Bold">Bad numeric constant: 7.
     At C:\ProgramData\chocolatey\lib\AlethZero-Stable\tools\chocolateyInstall.ps1:1
    
     3 char:2
     + 7 <<<< z x -aoa -y -o"$env:ProgramFiles\$packageName\" "$destination"
         + CategoryInfo          : ParserError: (7:String) [], ParseException
         + FullyQualifiedErrorId : BadNumericConstant
    The install of alethzero-stable was NOT successful.
    Error while running 'C:\ProgramData\chocolatey\lib\AlethZero-Stable\tools\chocol
    ateyInstall.ps1'.</b>
     See log for details.
    
    Chocolatey installed 0/1 package(s). 1 package(s) failed.
     See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
    Failures:
     - alethzero-stable
    
    C:\>
  • o0ragman0oo0ragman0o Member, Moderator Posts: 1,285 mod
    Having the same 'Bad numeric constant: 7.' error as above.
  • en3r0en3r0 Member Posts: 1
    Same 'Bad numeric constant: 7.' error as above. Windows 7 x64
  • o0ragman0oo0ragman0o Member, Moderator Posts: 1,285 mod
    I think I got that one sorted by putting 7-Zip in the path. But I still haven't been able to download it through choco... Seems the package is not being maintained. What's listed in choco is only geth 0.9.28.
    C:\Windows\system32>choco install geth-stable
    Chocolatey v0.9.9.5
    Installing the following packages:
    geth-stable
    By installing you accept licenses for the packages.
    geth-stable not installed. The package was not found with the source(s) listed.
    If you specified a particular version and are receiving this message, it is possible that the package name exists but t
    he version does not.
    Version: ""
    Source(s): "https://chocolatey.org/api/v2/"

    Chocolatey installed 0/1 package(s). 1 package(s) failed.
    See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
    Failures:
    - geth-stable
  • jkriegerjkrieger Member Posts: 1
    Are there 32 bit version of AlethZero?
Sign In or Register to comment.