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

[Package Issue]: Microsoft.PowerShell installing x64 version on arm64 system. #169329

Closed
2 tasks done
agowa opened this issue Aug 25, 2024 · 3 comments · Fixed by #169497
Closed
2 tasks done

[Package Issue]: Microsoft.PowerShell installing x64 version on arm64 system. #169329

agowa opened this issue Aug 25, 2024 · 3 comments · Fixed by #169497
Labels
Area-External In-PR Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@agowa
Copy link
Contributor

agowa commented Aug 25, 2024

Please confirm these before moving forward

  • I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue

Installation issue.

Brief description of your issue

On a windows for arm system (vmware fusion vm on a macbook) winget is installing the x64 version instead of the native arm64 one.

Steps to reproduce

winget install --id Microsoft.PowerShell

Actual behavior

PS C:\Users\user> winget install --id Microsoft.PowerShell
The `msstore` source requires that you view the following agreements before using.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "US").

Do you agree to all the source agreements terms?
[Y] Yes  [N] No: Y
Found PowerShell [Microsoft.PowerShell] Version 7.4.5.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/PowerShell/PowerShell/releases/download/v7.4.5/PowerShell-7.4.5-win-x64.msi
  ██████████████████████████████   103 MB /  103 MB
Successfully verified installer hash
Starting package install...
Successfully installed

Expected behavior

Installing PowerShell-7.4.5-win-arm64.msi instead of PowerShell-7.4.5-win-x64.msi one.

Environment

PS C:\Users\user> winget --info
Windows Package Manager v1.8.1911
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.4037
System Architecture: Arm64
Package: Microsoft.DesktopAppInstaller v1.23.1911.0

Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled

Screenshots and Logs

No response

@agowa agowa added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Aug 25, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage This work item needs to be triaged by a member of the core team. label Aug 25, 2024
@MagicAndre1981
Copy link

you should change the title as x64 is amd64, but you mean arm64

the last PR #168424 missed the msixbundle file for arm as it is not released yet.

@anamnavi when will we get the msix?

@stephengillie stephengillie added Area-External and removed Needs-Triage This work item needs to be triaged by a member of the core team. labels Aug 26, 2024
@stephengillie stephengillie changed the title [Package Issue]: Microsoft.PowerShell installing x64 version on amd64 system. [Package Issue]: Microsoft.PowerShell installing x64 version on arm64 system. Aug 26, 2024
@anamnavi
Copy link
Contributor

thanks for catching this and my apologies, I just created a PR for the msix for 7.4.5: #169497

@agowa this will make the msix available for arm, not the msi for arm. We are not including the arm msi in the winget manifest for 7.4.x releases (but will when 7.5 goes stable) but the arm msi is available on Github here: https://github.com/PowerShell/PowerShell/releases/tag/v7.4.5

@agowa
Copy link
Contributor Author

agowa commented Aug 27, 2024

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-External In-PR Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants