Showing posts with label Winget. Show all posts
Showing posts with label Winget. Show all posts

Monday, November 18, 2024

Install Winget on Windows 2022 or Windows 10 LSTC

Install Winget on Windows 2022 or Windows 10 LTSC

Install Pre-reqs

Install Microsoft.UI.Xaml/2.8.6

Navigate to https://www.nuget.org/packages/Microsoft.UI.Xaml/2.8.6, on the left side look for Download Package button to download microsoft.ui.xaml.2.8.6.nupkg.

Using 7-zip, extract microsoft.ui.xaml.2.8.6.nupkg\tools\AppX\x64\Release\Microsoft.UI.Xaml.2.8.appx

Install
PS C:\>Add-AppxPackage .\Microsoft.UI.Xaml.2.8.appx

Install Microsoft.VCLibs.140.00.UWPDesktop

Download https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx

Install
PS C:\>Add-AppxPackage .\Microsoft.VCLibs.x64.14.00.Desktop.appx

Install Winget

Download Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle or any recent versions (tested using 1.8.1911) from Github

Download license file 76fba573f02545629706ab99170237bc_License1.xml (should be one of the artifacts) from Github, the same URL from above.

Install (on elevated cmd/shell)
PS C:\>cd ~/Downloads
PS C:\Users\u1\Downloads> Add-AppxProvisionedPackage -Online -PackagePath .\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -LicensePath .\76fba573f02545629706ab99170237bc_License1.xml -Verbose

If you are in a hurry, you can grab the script below and run it on a PowerShell console
And if you trust me ;), run below:
PS C:\> iex (Invoke-RestMethod -Uri "https://gist.githubusercontent.com/technoscavenger/37f06e23daa833d0c7bee1d378ff332e/raw/122d300c8a6bb711dcd70652551599818dfdb09e/InstallWinget.ps1")


Refs: https://8thstring.blogspot.com/2023/04/install-winget-on-windows-2022.html

Sunday, May 19, 2024

Failed when searching source: winget

Failed when searching source: winget

I tried to run the command below on Windows 11 23H2 (en-us_windows_11_business_editions_version_23h2_updated_april_2024_x64_dvd_349cd577) but hit a snag.
PS C:\prj> winget install Microsoft.PowerShell
Failed in attempting to update the source: winget Failed when searching source: winget An unexpected error occurred while executing the command: 0x8a15000f : Data required by the source is missing No packages were found among the working sources.
The fix is fairly simple, just do an update of Windows Store, yes update Windows Store
References:
winget

Wednesday, August 16, 2023

Doing winget install fails with a message "Failed when searching source: msstore An unexpected error occurred while executing the command: 0x8a15005e : The server certificate did not match any of the expected values."

Doing winget install fails with a message "Failed when searching source: msstore An unexpected error occurred while executing the command: 0x8a15005e : The server certificate did not match any of the expected values."

I tried to install Windows Terminal using the command below -
C:\>winget install Microsoft.WindowsTerminal
But got the following error message instead.
Failed when searching source: msstore An unexpected error occurred while executing the command: 0x8a15005e : The server certificate did not match any of the expected values.
The following packages were found among the working sources.
Please specify one of them using the --source option to proceed.
Name             Id                        Source
-------------------------------------------------
Windows Terminal Microsoft.WindowsTerminal winget
Reason:
This is normally caused by SSL inspection used in enterprise environments.
Workaround:
C:\>winget settings --enable BypassCertificatePinningForMicrosoftStore

See below for details:
https://github.com/microsoft/winget-cli/issues/2879

Friday, April 28, 2023

Install Windows Terminal using winget

Install Windows Terminal using winget

Windows Terminal is a new, modern, feature-rich, productive terminal application for command-line users. It includes many of the features most frequently requested by the Windows command-line community including support for tabs, rich text, globalization, configurability, theming & styling, and more.

To install Windows Terminal using winget, do:
PS C:\>winget install Microsoft.WindowsTerminal
Note:
To install winget on Windows 2022 follow this link.

Thursday, April 27, 2023

Install PowerShell using winget

(Formerly PowerShell Core) PowerShell is a cross-platform task automation solution made up of a command-line shell, a scripting language, and a configuration management framework. PowerShell runs on Windows, Linux, and macOS.

To install PowerShell on Windows using winget, do:
PS C:\>winget install Microsoft.PowerShell
Note:
To install winget on Windows 2022 follow this link.

Tuesday, April 25, 2023

Install Winget on Windows 2022

Install Winget on Windows 2022

This is not working anymore on Windows 10 LTSC as of 10/14/2023

Use this post for an updated instructions - https://8thstring.blogspot.com/2023/10/install-winget-on-windows-2022-or.html

Install Pre-reqs

Install Microsoft.UI.Xaml/2.7.3

Navigate to https://www.nuget.org/packages/Microsoft.UI.Xaml/2.7.3, on the left side look for Download Package button to download microsoft.ui.xaml.2.7.3.nupkg.

Using 7-zip, extract microsoft.ui.xaml.2.7.3.nupkg\microsoft.ui.xaml.2.7.3.nupkg\tools\AppX\x64\Release\Microsoft.UI.Xaml.2.7.appx

Install
PS C:\>Add-AppxPackage .\Microsoft.UI.Xaml.2.7.appx

Install Microsoft.VCLibs.140.00.UWPDesktop

Download https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx

Install
PS C:\>Add-AppxPackage .\Microsoft.VCLibs.x64.14.00.Desktop.appx

Install Winget

Download Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle or any recent versions (tested using 1.4.10173) from Github

Download license file 3463fe9ad25e44f28630526aa9ad5648_License1.xml (should be one of the artifacts) from Github, the same URL from above.

Install
PS C:\>Add-AppxProvisionedPackage -Online -PackagePath .\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -LicensePath .\3463fe9ad25e44f28630526aa9ad5648_License1.xml -Verbose


Refs: https://www.virtualizationhowto.com/2021/11/install-winget-in-windows-server-2022-no-applicable-app-licenses-error/

Formatting code in Blogger

I have been using Github gists to share code and I have no plan of abandoning it. For smaller/one liners, I sometimes use div element with ...