Updates regarding review of Microsoft winget
This is a short update to my review of Winget from the 17th April.
The upgrade feature is not experimental anymore, so it is not necessary anymore to edit the winget settings json using winget settings
.
If you use winget upgrade
it is better to start it in an elevated shell (otherwise some updates seem to fail without notice). Example cmd.exe script to start an elevated script (can also be used as autostart script):
:: Check privileges
net file 1>NUL 2>NUL
if not '%errorlevel%' == '0' (
powershell Start-Process -FilePath '%0' -verb runas
exit /b
)
:: Actual work
winget source update
winget upgrade
winget upgrade --all --silent
pause
Links:
- Github Repository: https://github.com/microsoft/winget-cli
- Tested version: Windows Package Manager v0.4.11391 Preview
Reminder: Please be aware that winget is still in Preview / not stable yet.