GithubHelp home page GithubHelp logo

hartl3y94 / winget-installer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from asheroto/winget-install

0.0 0.0 0.0 59 KB

Install winget tool using PowerShell! Prerequisites automatically installed. Works on Windows 10/11 and Server 2019/2022.

Home Page: https://github.com/asheroto/winget-installer

PowerShell 100.00%

winget-installer's Introduction

image

Install winget-cli from PowerShell

  • Install winget-cli straight from PowerShell
  • Works on Windows 10, Windows 11, Server 2019/2022
  • Always gets the latest version of winget

How to use

Method 1 - no need to download the file because it connects to PSGallery to fetch it

  • In PowerShell, type Install-Script -Name winget-install and answer yes to any prompts

  • Then type winget-install

Tip - how to trust PSGallery

If you want to trust PSGallery so you aren't prompted each time you run this command, you can type...

Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted

Method 2 - download file locally and run

  • Download winget-install.ps1 or winget-install-signed.zip (and extract the inner PS1 script)

  • Run the script with .\winget-install.ps1

Available Scripts

  • winget-install.ps1

    • Unsigned script
  • winget-install-signed.zip

    • Signed script

    • Compressed for transport and to retain signature

    • Uncompress to use

    • For use if you do not want to enable unsigned script execution in PowerShell

Script Functionality

  • VCLibs and Xaml are installed first

  • Processor architecture is determined for prerequisites

  • VCLibs is installed straight from the appx package

  • Xaml is installed by downloading the nupkg, extracting it, and installing the appx package

  • winget-cli is then installed

  • User PATH variable is adjusted to include WindowsApps folder

  • Grabs the latest version of winget on each run

Note

  • If you receive an error message about the Appx module not being loaded, try using a different version of PowerShell (version 6 and 7 seem to be buggy still, but the native PowerShell version in Windows works)

winget-installer's People

Contributors

asheroto avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.