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

64bit 7z.exe on 32bit system in chocolatey\tools #836

Closed
mattia72 opened this issue Jun 28, 2016 · 3 comments
Closed

64bit 7z.exe on 32bit system in chocolatey\tools #836

mattia72 opened this issue Jun 28, 2016 · 3 comments

Comments

@mattia72
Copy link

mattia72 commented Jun 28, 2016

I'm working on a 32bit system. If I want to install a zip package, choco install fails with the following message:
ERROR: Exception calling "Start" with "0" argument(s): "The specified executable is not a valid application for this OS platform."

I checked the C:\ProgramData\chocolatey\tools\7z.exe and it is really a 64bit version.
If I change it to a 32bit build, the install works well.

Output Log

2016-06-28 09:07:36,817 [INFO ] - ============================================================
2016-06-28 09:07:36,818 [INFO ] - Chocolatey v0.9.10.3
2016-06-28 09:07:36,822 [DEBUG] - Chocolatey is running on Windows v 6.1.7601.65536
2016-06-28 09:07:36,824 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2016-06-28 09:07:36,827 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2016-06-28 09:07:36,836 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install vim-tux.portable -fdv -s C:\ProgramData\chocolatey\lib-bad\vim-tux.portable
2016-06-28 09:07:36,838 [DEBUG] - Received arguments: install vim-tux.portable -fdv -s C:\ProgramData\chocolatey\lib-bad\vim-tux.portable
2016-06-28 09:07:36,875 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2016-06-28 09:07:36,879 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2016-06-28 09:07:36,883 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2016-06-28 09:07:36,936 [DEBUG] - The source 'C:\ProgramData\chocolatey\lib-bad\vim-tux.portable' evaluated to a 'normal' source type
2016-06-28 09:07:36,939 [DEBUG] - 
NOTE: Hiding sensitive configuration data! Please double and triple 
 check to be sure no sensitive data is shown, especially if copying 
 output to a gist for review.
2016-06-28 09:07:36,945 [DEBUG] - Configuration: CommandName='install'|
CacheLocation='C:\Users\xxxxx\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='C:\ProgramData\chocolatey\lib-bad\vim-tux.portable'|
SourceType='normal'|Debug='True'|Verbose='True'|Force='True'|
Noop='False'|HelpRequested='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='False'|
AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='vim-tux.portable'|
AllVersions='False'|SkipPackageInstallProvider='False'|
PackageNames='vim-tux.portable'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='6.1.7601.65536'|
Information.PlatformName='Windows 7'|
Information.ChocolateyVersion='0.9.10.3'|
Information.ChocolateyProductVersion='0.9.10.3'|
Information.FullName='choco, Version=0.9.10.3, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64Bit='False'|Information.IsInteractive='True'|
Information.IsUserAdministrator='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Features.AutoUninstaller='True'|
Features.CheckSumFiles='True'|Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseFipsCompliantChecksums='False'|
ListCommand.LocalOnly='False'|
ListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'|
ListCommand.Exact='False'|ListCommand.ByIdOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|FeatureCommand.Command='unknown'|
ConfigCommand.Command='unknown'|PinCommand.Command='unknown'|
...
Executing command ['C:\ProgramData\chocolatey\tools\7z.exe' x -aoa -bd -bb1 -o"C:\ProgramData\chocolatey\lib\vim-tux.portable\tools\vim74" -y "C:\Users\xxxxx\AppData\Local\Temp\chocolatey\vim-tux.portable\7.4.1949\complete-x86.7z"]
ERROR: Exception calling "Start" with "0" argument(s): "The specified executable is not a valid application for this OS platform."
 at Get-ChocolateyUnzip, C:\ProgramData\chocolatey\helpers\functions\Get-ChocolateyUnzip.ps1: line 159
@ferventcoder ferventcoder added this to the 0.9.10.4 milestone Jun 28, 2016
@ferventcoder
Copy link
Member

@mattia72 Thanks. I thought I had set the 32 bit version of the file but with everything else going on this must have been missed.

@ferventcoder ferventcoder self-assigned this Jun 29, 2016
ferventcoder added a commit that referenced this issue Jul 24, 2016
For built-in ops, use the 32bit version of 7zip instead of the 64bit.
This allows maximum compatibility.
ferventcoder added a commit that referenced this issue Jul 24, 2016
* stable:
  (maint) Skip log PowerShell resource assembly failures
  (GH-871) Fix - Uninstall zip: Path is empty string
  (maint) remove unused import
  (GH-854) Reset Exit Code between package runs
  (GH-852) Bump up the default log sizes
  (GH-867) NuGet.Core Errors Exit Code 1
  (GH-853) Handle null values better
  (GH-836) Fix - Use 32 bit 7zip
  (GH-847) Tab Completion Enhancements
  (GH-857) Fix - Sometimes paths contain null chars
@dsudduth
Copy link

dsudduth commented Aug 5, 2016

@ferventcoder -- is there an estimated release date for 0.10.0? This issue is breaking a few of our packages as well.

@ferventcoder
Copy link
Member

In the next few days. You can follow along on the milestone to see what issues are left.

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

4 participants