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

Bug with Winget on New Installation of Windows 11 Breaks RNW Dependency Script #13336

Closed
chiaramooney opened this issue Jun 11, 2024 · 1 comment · Fixed by #13372
Closed
Assignees
Labels
Area: Dependencies bug External Issue tracked in this repo but change will need to happen in another repo
Milestone

Comments

@chiaramooney
Copy link
Contributor

There is a known issue on the winget repository that the version of winget installed with new installations of Windows 11 is a broken version. See microsoft/winget-cli#3832 (comment).

As a result, our RNW dependency script (which relies on winget for dependency installation) fails to correctly install dependencies.

We should update our dependency script to check if the version of winget installed on the computer is the broken version, and if so, we should run the following command to install a working version:

Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile winget.msixbundle
Add-AppPackage -ForceApplicationShutdown .\winget.msixbundle
del .\winget.msixbundle

Then the script can proceed as normal.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) label Jun 11, 2024
@chrisglein chrisglein added External Issue tracked in this repo but change will need to happen in another repo Area: Dependencies and removed Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) labels Jun 13, 2024
@chrisglein chrisglein added this to the Next milestone Jun 13, 2024
@chrisglein
Copy link
Member

Script should have a version check for the broken version of winget, and if so, run the workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Dependencies bug External Issue tracked in this repo but change will need to happen in another repo
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants