
The code is adapted from Simon Timms blog post. Remove-Item $cascadiaCodeFolder -Recurse -Force If (!$hasPackageManager -or $hasPackageManager.Version -lt "1.10.0.0")

Winget will be integrated with Windows 11 but it is not yet a reality, so to be sure to have the right version installed I use this: $hasPackageManager = Get-AppPackage -name 'Microsoft.DesktopAppInstaller' To avoid loosing to much time, I use Boxstarter and Chocolatey to automate as much as possible all settings and softwares installations.īut since I use Chocolatey only on that occasion, I wanted to replace it by Winget: is is (almost) native to windows, the v1.0 is out and the number of packages available in the community repository is good enough.īoth are package managers and are invoked from the command line, so the switch was not hard but there was some differences and deficiencies to come by. Around every 2-3 years I reinstall my computer with a fresh Windows.
