GithubHelp home page GithubHelp logo

7-Zip about chocolatey-packages HOT 12 CLOSED

ferventcoder avatar ferventcoder commented on June 2, 2024
7-Zip

from chocolatey-packages.

Comments (12)

ferventcoder avatar ferventcoder commented on June 2, 2024

I think at the time the x64 version was not considered stable. I'm guessing that is not true anymore.

from chocolatey-packages.

 avatar commented on June 2, 2024

@ferventcoder I tried it on a virtual machine and it is working correctly. For
some reason on my 64-bit Windows 7 running chocolatey.exe launches a 32-bit
powershell.exe.

from chocolatey-packages.

ferventcoder avatar ferventcoder commented on June 2, 2024

@svnpenn if you are in PS, before you install - type [System.IntPtr]::Size - what is the result?

from chocolatey-packages.

 avatar commented on June 2, 2024

@ferventcoder it returns 8 as expected

PS > [System.IntPtr]::Size
8

Again, the problem is that even though I am using Windows 7 64-bit, and running

choco install 7zip 

from a 64-bit PowerShell window, choco.exe is spawning a 32-bit PowerShell
process which breaks the bit detection after that. A clean Windows virtual
machine is not having this problem, but I would like to avoid reinstalling
Windows if possible.

from chocolatey-packages.

ferventcoder avatar ferventcoder commented on June 2, 2024

Are you familiar with filesystem redirection? I don't know why, but it seems like something is being subjected to this.

One then you can try is where powershell / or from powershell console &where.exe powershell - see where that is pointing to, I'm guessing it may point to c:\windows\SysWOW64\yadayada\powershell.exe

from chocolatey-packages.

 avatar commented on June 2, 2024

I found the answer! It appears I deleted the Enable64Bit registry value at
some point. This caused β€œAny CPU” programs such as Chocolatey to be run as
32-bit. To fix that, I used this command

C:\Windows\Microsoft.NET\Framework64\v2.0.50727> Ldr64 set64

Any CPU 32-bit mode on 64 bit machine

from chocolatey-packages.

ferventcoder avatar ferventcoder commented on June 2, 2024

@svnpenn TIL. Interesting.

from chocolatey-packages.

ferventcoder avatar ferventcoder commented on June 2, 2024

I think this could be documented somewhere... hmm

from chocolatey-packages.

 avatar commented on June 2, 2024

I feel the registry key should be checked when installing Chocolatey

from chocolatey-packages.

ferventcoder avatar ferventcoder commented on June 2, 2024

This should ultimately become a troubleshooting thing - https://github.com/chocolatey/chocolatey/wiki/ChocolateyFAQs#im-seeing-chocolatey--application--tool-using-32-bit-to-run-instead-of-x64-what-is-going-on

Because of the stackoverflow notes, I don't think chocolatey should change it, but it should report it during install if it is set incorrectly.

from chocolatey-packages.

ferventcoder avatar ferventcoder commented on June 2, 2024

Added chocolatey-archive/chocolatey#593 to address this.

from chocolatey-packages.

 avatar commented on June 2, 2024

Thanks so much!

from chocolatey-packages.

Related Issues (20)

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.