winget-cli
winget-cli copied to clipboard
Add bootstrap script
Signed-off-by: Chris Hunt [email protected]
- [x] Have you signed the Contributor License Agreement?
- [x] Are you working against an Issue? yes #2434
I'm proposing a simple install script that can be run to bootstrap a new system with winget. Ideally, it would be aliased to aka.ms/install-winget
.
eg:
iex ((iwr 'https://raw.githubusercontent.com/cdhunt/winget-cli/main/tools/install-winget.ps1' -UseBasicParsing).Content)
Microsoft Reviewers: Open in CodeFlow
It does appear to do the same thing (and more), but it crashes/terminates PowerShell when I try to IEX
it.
I'll poke around and see if I can figure out why it's exiting for me.
@cdhunt we're working on something similar internally to help with "ensuring" the latest stable release is installed. I'm mentioning @lechacon who is looking at this.
@cdhunt have you had a chance to look at the DSC Resources for WinGet?
There are still a couple of gaps related to the App Execution Alias and UI.Xaml dependency, but it's getting very close.
With the latest release of the 1.7 client, the dependencies for WinGet have been updated to be Microsoft.UI.Xaml 2.8 instead of 2.7. @denelon and the team have been working hard putting together documentation around how to install WinGet on Windows Sandbox which requires a bootstrap script like this. Additionally, the Microsoft.WinGet.Client PowerShell Module has the Repair-WinGetPackageManager
cmdlet which will bootstrap WinGet automatically.
I believe these satisfy the request of the original issue for documenting how to install / bootstrap WinGet