Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

How to Install WinGet on Windows LTSC (IoT) Without The Microsoft Store

January 5, 2024
in Blog, WinGet
0
ADVERTISEMENT

Table of Contents

Windows Package Manager

In some cases, you cannot use Microsoft Store so, you cannot install or update App Installer. And when you install an app using Windows Package Manager, you get the following error.

Bg1695

Method 1: Install WinGet without Micosoft Store manually

To fix it, we’ll install Windows Package Manager without Microsoft Store. Before you begin, you need install dependencies stuff.

1️⃣ Right click on Windows start icon then select Windows PowerShell Admin or Windows Terminal Admin in Windows 11  and keep it open throughout this guide.

Pw3

2️⃣ Download the correct VC++ v14 Desktop Framework Package for your architecture. Winget v1.2.10271 introduced a new dependency for Microsoft.UI.Xaml.2.7 and above which you have to install manually.

Add-AppxPackage "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx"

3️⃣ Download the latest version of Microsoft.UI.Xaml from Microsoft to the temp folder.

Set-Location "$env:temp"
$uri = 'https://github.com/microsoft/microsoft-ui-xaml/releases/download/v2.8.5/Microsoft.UI.Xaml.2.8.x64.appx'
Invoke-WebRequest -Uri $uri -OutFile 'Microsoft.UI.Xaml.2.8.x64.appx'

4️⃣ Install Microsoft.UI.Xaml with Add-AppxPackage cmdlet.

Add-AppxPackage Microsoft.UI.Xaml.2.8.x64.appx

5️⃣ Download the latest version of WinGet from GitHub. Then using Add-AppxProvisionedPackge command to install the Windows Package Manager.

# Download winget and license file the install it
Write-Host "Installing Windows Package Manager..." -ForegroundColor Green
function getLink($match) {
    $uri = "https://api.github.com/repos/microsoft/winget-cli/releases/latest"
    $get = Invoke-RestMethod -uri $uri -Method Get -ErrorAction stop
    $data = $get[0].assets | Where-Object name -Match $match
    return $data.browser_download_url
}

$url = getLink("msixbundle")
$licenseUrl = getLink("License1.xml")

# Finally, install winget
$fileName = 'winget.msixbundle'
$licenseName = 'license1.xml'

(New-Object Net.WebClient).DownloadFile($url, "$env:temp\$fileName")
(New-Object Net.WebClient).DownloadFile($licenseUrl, "$env:temp\$licenseName")

Add-AppxProvisionedPackage -Online -PackagePath $fileName -LicensePath $licenseName

6️⃣ You can run the below command to verify the Winget is installed successfully.

$packages = @("Microsoft.VCLibs","DesktopAppInstaller","UI.Xaml")
ForEach ($package in $packages){
    Get-AppxPackage -Name *$package* | select Name,Version,Status
}
Name                               Version        Status
----                               -------        ------
Microsoft.VCLibs.140.00.UWPDesktop 14.0.30704.0       Ok
Microsoft.DesktopAppInstaller      1.19.10173.0       Ok
Microsoft.UI.Xaml.2.7              7.2109.13004.0     Ok

7️⃣ Now, open Windows PowerShell or Windows Command Prompt then run the winget command to install an app.

PS C:\Users\admin\Downloads> winget
Windows Package Manager v1.3.2091
Copyright (c) Microsoft Corporation. All rights reserved.

The winget command line utility enables installing applications and other packages from the command line.

usage: winget [<command>] [<options>]

The following commands are available:
  install    Installs the given package
  show       Shows information about a package
  source     Manage sources of packages
  search     Find and show basic info of packages
  list       Display installed packages
  upgrade    Shows and performs available upgrades
  uninstall  Uninstalls the given package
  hash       Helper to hash installer files
  validate   Validates a manifest file
  settings   Open settings or set administrator settings
  features   Shows the status of experimental features
  export     Exports a list of the installed packages
  import     Installs all the packages in a file

For more details on a specific command, pass it the help argument. [-?]

The following options are available:
  -v,--version  Display the version of the tool
  --info        Display general info of the tool

More help can be found at: https://aka.ms/winget-command-help

Method 2: Install Windows Package Manager using script

Alternatively, if you don’t need to do it manually. You can use the below script for automatic installation.
Note Note: Please inspect https://www.powershellgallery.com/packages/winget-install prior to running any of these scripts to ensure safety. We already know it's safe, but you should verify the security and contents of any script from the internet you are not familiar with.

1️⃣ Open PowerShell as administrator.

2️⃣ Copy and paste all below code into PowerShell window then hit Enter.

irm bonguides.com/winget | iex
ADVERTISEMENT

Not a reader? Watch this related video tutorial:

5/5 - (2 votes)
Previous Post

How to Fix WinGet is Not Recognized Error in Windows 11

Next Post

How to Change or Switch Azure Subscription in PowerShell?

Related Posts

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024
Ftr19

How to Fix Windows Cannot Read the ProductKey From the Unattend Answer File in VirtualBox

July 26, 2024
Ftr25

How to Update Windows Terminal in Windows 10/11

July 26, 2024

How to Disable The Beep Sound in WSL Terminal on Windows

July 26, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory