ScoopInstaller / Scoop

A command-line installer for Windows.
https://scoop.sh
Other
20.45k stars 1.38k forks source link

[Bug] 32bit apps were installed on ~/scoop/shims #5796

Closed homoioi closed 3 months ago

homoioi commented 5 months ago

Bug Report

32bit apps were installed on ~/scoop/shims

$ cd ~/scoop/shims $ file 7z.exe 7z.shim 7z.exe: PE32 executable (console) Intel 80386, for MS Windows, 4 sections 7z.shim: ASCII text, with CRLF line terminators $ cat 7z.shim path = "C:\Users\zhang\scoop\apps\7zip\current\7z.exe"

$ file ../apps/7zip/current/7z.exe ../apps/7zip/current/7z.exe: PE32+ executable (console) x86-64, for MS Windows, 6 sections

Current Behavior

32bit 7z is called.

Expected Behavior

64bit one is called.

Additional context/output

Possible Solution

System details

Windows version: [e.g. 7, 8, 10, 11] 11 OS architecture: [e.g. 32bit, 64bit, arm64] 64bit PowerShell version: [output of "$($PSVersionTable.PSVersion)"] Major Minor Build Revision


5 1 22621 2506

Additional software: [(optional) e.g. ConEmu, Git]

Scoop Configuration

//# Your configuration here
rashil2000 commented 3 months ago

The shim helper file is 32bit, since it works on all architectures - we provide only one shim file.

The actual program (7z here) is 64bit - 7z runs as a 64bit process only.