Install Winget Using Powershell <GENUINE ⇒>

Microsoft maintains the aka.ms/getwinget redirect to always point to the latest stable version of the App Installer. Method 2: Manual Check & Install (No Download Guessing) If the one-liner fails (e.g., due to network restrictions), you can force-install the exact version from the official GitHub repository.

But here’s the catch: It comes bundled with the App Installer package.

So, how do we get it via PowerShell? Let’s walk through the two methods that actually work. Microsoft makes winget available through the Microsoft Store or via the official GitHub releases. This PowerShell script checks for the latest version and installs it silently. install winget using powershell

# Download the latest App Installer package (which contains winget) $url = "https://aka.ms/getwinget" $output = "$env:TEMP\Microsoft.DesktopAppInstaller.msixbundle" Invoke-WebRequest -Uri $url -OutFile $output Add-AppxPackage -Path $output

Run this in :

If you’ve just installed a fresh copy of Windows, or you’re working on a system where winget is mysteriously missing, you might feel stuck. After all, the Windows Package Manager has become an essential tool for anyone who wants to install software without hunting for .exe files.

Open and run:

# Fetch the latest release info from GitHub $github = "https://api.github.com/repos/microsoft/winget-cli/releases/latest" $release = Invoke-RestMethod -Uri $github $asset = $release.assets | Where-Object $_.name -like "*.msixbundle" Download and install Invoke-WebRequest -Uri $asset.browser_download_url -OutFile "$env:TEMP\winget.msixbundle" Add-AppxPackage -Path "$env:TEMP\winget.msixbundle"

الاعلانات
شروط التعليق:
التزام زوار "راي اليوم" بلياقات التفاعل مع المواد المنشورة ومواضيعها المطروحة، وعدم تناول الشخصيات والمقامات الدينية والدنيوية والكتّاب، بكلام جارح ونابِ ومشين، وعدم المساس بالشعوب والأعراق والإثنيات والأوطان بالسوء، وعلى ان يكون التعليق مختصرا بقدر الامكان. وان لا يزيد التعليق عن 100 كلمة، والا سنعتذر عن عدم النشر.

اضافة تعليق

Please enter your comment!
Please enter your name here