You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Upon the first "install" item, the script detects that winget is out of date and tries to install an updated version. The problem is that the downloading of the new Winget util takes on average of an hour or more. Initially I thought this was a winget issue (can't download winget with winget though, am I right?) so I tweaked the winget settings.json file to use a different downloader, but that didn't fix the issue.
The problem is not bandwidth as I have a 200mb down/200mb up connection, and the util is only 155mb (per the Microsoft App Store).
To Reproduce
Steps to reproduce the behavior:
Run winutil
Click on 'Install'
Select item to install
Script detects that winget is out of date and tries to install the latest winget util.
Expected behavior
I honestly expect this to take a minute or two at best.
**Additional context:
I assume this is an issue with limitations aroundInvoke-WebRequest found in the Get-WinUtilWingetLatest function (located in winutil.ps1), but unfortunately don't have any suggestions on how to speed this up besides possibly incorporating the -OutFile parameter to download the files directly to the desired location without storing them in memory first.
The text was updated successfully, but these errors were encountered:
Your right. The Invoke-WebRequest is reducing the speed here quite a bit.
I created a PR that got merged to the test branch a few weeks ago that should optimize this but the last Test->Main merge is already quite old so that the changes are not yet reflected on the main branch #1931
Describe the bug
Upon the first "install" item, the script detects that winget is out of date and tries to install an updated version. The problem is that the downloading of the new Winget util takes on average of an hour or more. Initially I thought this was a winget issue (can't download winget with winget though, am I right?) so I tweaked the winget
settings.json
file to use a different downloader, but that didn't fix the issue.The problem is not bandwidth as I have a 200mb down/200mb up connection, and the util is only 155mb (per the Microsoft App Store).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I honestly expect this to take a minute or two at best.
**Additional context:
I assume this is an issue with limitations around
Invoke-WebRequest
found in theGet-WinUtilWingetLatest
function (located inwinutil.ps1
), but unfortunately don't have any suggestions on how to speed this up besides possibly incorporating the-OutFile
parameter to download the files directly to the desired location without storing them in memory first.The text was updated successfully, but these errors were encountered: