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

Enable Microsoft.WinGet.Client arm64 support #4392

Merged
merged 3 commits into from Apr 20, 2024

Conversation

msftrubengu
Copy link
Contributor

@msftrubengu msftrubengu commented Apr 19, 2024

This PR enables arm64 for the Microsoft.WinGet.Client module.

There's an OS bug that causes an AV (see #4251 (comment)) in arm64 devices that was fixed in a newer Windows build. The AV message is just shown for PowerShell Core. In Windows PowerShell no error message is displayed but it won't display progress either. Regardless, the winget install/uninstall operation still happens as the progress is shown after we asked winget to install the app. The configuration module doesn't get affected by the OS bug, so there's no need to disable progress.

To keep showing progress the module now looks at the OS version. If the processor architecture is arm64 and the OS version is lower than 10.0.26068.0 progress is disabled in the module.

I verified manually on arm64 builds with and without the fix.

Fixes #4169

Microsoft Reviewers: Open in CodeFlow

@denelon
Copy link
Contributor

denelon commented Apr 19, 2024

@microsoft-github-policy-service microsoft-github-policy-service bot added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Apr 19, 2024
@msftrubengu msftrubengu merged commit 1d99a66 into microsoft:master Apr 20, 2024
8 checks passed
msftrubengu added a commit to msftrubengu/winget-cli that referenced this pull request Apr 23, 2024
This PR enables arm64 for the Microsoft.WinGet.Client module.

There's an OS bug that causes an AV (see
microsoft#4251 (comment))
in arm64 devices that was fixed in a newer Windows build. The AV message
is just shown for PowerShell Core. In Windows PowerShell no error
message is displayed but it won't display progress either. Regardless,
the winget install/uninstall operation still happens as the progress is
shown after we asked winget to install the app. The configuration module
doesn't get affected by the OS bug, so there's no need to disable
progress.

To keep showing progress the module now looks at the OS version. If the
processor architecture is arm64 and the OS version is lower than
10.0.26068.0 progress is disabled in the module.

I verified manually on arm64 builds with and without the fix. 

Fixes microsoft#4169

###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/winget-cli/pull/4392)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Microsoft.WinGet.Client PowerShell Module failing to load on Arm64 in PowerShell 7.x
4 participants