Skip to content

Add bootstrap script#2474

Closed
cdhunt wants to merge 1 commit intomicrosoft:masterfrom
cdhunt:main
Closed

Add bootstrap script#2474
cdhunt wants to merge 1 commit intomicrosoft:masterfrom
cdhunt:main

Conversation

@cdhunt
Copy link
Copy Markdown

@cdhunt cdhunt commented Aug 26, 2022

Signed-off-by: Chris Hunt github@automatedops.com


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

Signed-off-by: Chris Hunt <github@automatedops.com>
@cdhunt cdhunt requested a review from a team as a code owner August 26, 2022 12:49
Copy link
Copy Markdown
Contributor

@vedantmgoyal9 vedantmgoyal9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/microsoft/winget-pkgs/blob/master/Tools/WingetVersionManager.ps1

I think the above script does the same work, and also allows choosing versions.

@cdhunt
Copy link
Copy Markdown
Author

cdhunt commented Aug 26, 2022

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.

@denelon
Copy link
Copy Markdown
Collaborator

denelon commented Aug 26, 2022

@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
Copy link
Copy Markdown
Collaborator

denelon commented Jan 26, 2023

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

@Trenly
Copy link
Copy Markdown
Contributor

Trenly commented Mar 7, 2024

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants