Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bootstrap script #2474

Closed
wants to merge 1 commit into from
Closed

Add bootstrap script #2474

wants to merge 1 commit into from

Conversation

cdhunt
Copy link

@cdhunt cdhunt commented Aug 26, 2022

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

Signed-off-by: Chris Hunt <[email protected]>
@cdhunt cdhunt requested a review from a team as a code owner August 26, 2022 12:49
Copy link
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
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
Contributor

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
Contributor

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