Skip to content

Commit 7bc7f70

Browse files
Merge pull request #3701 from MicrosoftDocs/main638264198183135150sync_temp
For protected CLA branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents 8dbedcc + 3c5861c commit 7bc7f70

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

hub/package-manager/winget/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ To install the stable release of winget on Windows Sandbox, follow these steps f
3737

3838
```powershell
3939
$progressPreference = 'silentlyContinue'
40-
$latestWingetMsixBundleUri = $(Invoke-RestMethod https://api.github.com/repos/microsoft/winget-cli/releases/latest).assets.browser_download_url | Where-Object {$_.EndsWith(".msixbundle")}
41-
$latestWingetMsixBundle = $latestWingetMsixBundleUri.Split("/")[-1]
42-
Write-Information "Downloading winget to artifacts directory..."
43-
Invoke-WebRequest -Uri $latestWingetMsixBundleUri -OutFile "./$latestWingetMsixBundle"
40+
Write-Information "Downloading WinGet and its dependencies..."
41+
Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
4442
Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile Microsoft.VCLibs.x64.14.00.Desktop.appx
43+
Invoke-WebRequest -Uri https://github.com/microsoft/microsoft-ui-xaml/releases/download/v2.7.3/Microsoft.UI.Xaml.2.7.x64.appx -OutFile Microsoft.UI.Xaml.2.7.x64.appx
4544
Add-AppxPackage Microsoft.VCLibs.x64.14.00.Desktop.appx
46-
Add-AppxPackage $latestWingetMsixBundle
45+
Add-AppxPackage Microsoft.UI.Xaml.2.7.x64.appx
46+
Add-AppxPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
4747
```
4848

4949
If you would like a preview or different version of the Package Manager, go to https://github.com/microsoft/winget-cli/releases. Copy the URL of the version you would prefer and update the above Uri.

0 commit comments

Comments
 (0)