Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zip packages on 32-bit windows fail, GH-775 introduced 64-bit 7z.exe binary #868

Closed
Apteryx0 opened this issue Jul 18, 2016 · 3 comments
Closed

Comments

@Apteryx0
Copy link

What You Are Seeing?

Installing chocolatey on 32-bit Win7 installs 64-bit 7z.exe in the chocolatey/tools directory, hence cannot install packages that use zip files like procexp

What is Expected?

Chocolately doesn't say it only supports 64-bit windows so it should work.... (right?)

How Did You Get This To Happen? (Steps to Reproduce)

Fresh 32-bit Win7 install (via vagrant)
Install chocolatey
'choco install procexp' and watch it fail....
Examine \ProgramData\chocolatey\tools\7z.exe and notice it will not run because it is 64-bit
See that https://github.com/chocolatey/choco/blob/master/src/chocolatey.resources/tools/7z.exe is also 64-bit

Output Log

2016-07-18 12:55:23,888 [DEBUG] - Running 'Get-ChocolateyUnzip' with fileFullPath:'C:\Users\IEUser\AppData\Local\Temp\chocolatey\procexp\16.12\ProcessExplorer.zip'', destination: 'C:\ProgramData\chocolatey\lib\procexp\tools', specificFolder: '`, packageName: 'procexp'
2016-07-18 12:55:23,897 [INFO ] - Extracting C:\Users\IEUser\AppData\Local\Temp\chocolatey\procexp\16.12\ProcessExplorer.zip to C:\ProgramData\chocolatey\lib\procexp\tools...
2016-07-18 12:55:23,897 [INFO ] -
2016-07-18 12:55:23,906 [DEBUG] - 7zip found at 'C:\ProgramData\chocolatey\tools\7z.exe'
2016-07-18 12:55:23,906 [DEBUG] - Executing command ['C:\ProgramData\chocolatey\tools\7z.exe' x -aoa -bd -bb1 -o"C:\ProgramData\chocolatey\lib\procexp\tools" -y "C:\Users\IEUser\AppData\Local\Temp\chocolatey\procexp\16.12\ProcessExplorer.zip"]
2016-07-18 12:55:23,951 [ERROR] - ERROR: Exception calling "Start" with "0" argument(s): "The specified executable is not a valid application for this OS platform."
2016-07-18 12:55:23,968 [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\procexp\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '''] exited with '-1'.
2016-07-18 12:55:23,968 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2016-07-18 12:55:23,995 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2016-07-18 12:55:24,004 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\procexp'

@Apteryx0
Copy link
Author

For the record, I installed 7zip (choco install 7zip) and then copied 7z.exe and 7z.dll from Program Files to ProgramData\chocolatey\tools, and now procexp installs just fine :-)

@Apteryx0
Copy link
Author

Oops, looks like this was already reported and fixed via 836....

@ferventcoder
Copy link
Member

Thanks for noticing that. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants