winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Add bootstrap script

Open cdhunt opened this issue 1 year ago • 3 comments

Signed-off-by: Chris Hunt [email protected]


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

cdhunt avatar Aug 26 '22 12:08 cdhunt

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 avatar Aug 26 '22 13:08 cdhunt

@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.

denelon avatar Aug 26 '22 15:08 denelon

@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.

denelon avatar Jan 26 '23 18:01 denelon

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


Close with reason: PR is outdated by more than a year;

Trenly avatar Mar 07 '24 02:03 Trenly