File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
hub/package-manager/winget Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,13 @@ To install the stable release of winget on Windows Sandbox, follow these steps f
37
37
38
38
``` powershell
39
39
$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
44
42
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
45
44
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
47
47
```
48
48
49
49
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.
You can’t perform that action at this time.
0 commit comments