winget🔗
Windows Package Manager CLI (aka winget
) can be used to install/upgrade
software on Windows via the command line.
- microsoft/winget-cli
- Microsoft Store - App-Installer
- Use the
winget
tool to install and manage applications - winget @ SS64
Install🔗
Download latest version from GitHub release page.
Info
The download a package with all dependencies you can use https://store.rg-adguard.net/.
- Go to Microsoft store
- Select the application
- Copy the URL
- Go to https://store.rg-adguard.net/
- Paste the URL
- Select on the right side 'Slow'
Now you will see all packages inside this application.
Install winget
as a provisioned package:
PS> Add-AppxProvisionedPackage
-PackagePath 'Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle'
-LicensePath '7bcb1a0ab33340daa57fa5b81faec616_License1.xml'
-DependencyPackagePath
'Microsoft.VCLibs.x64.14.00.Desktop.appx',
'Microsoft.UI.Xaml.2.7_7.2208.15002.0_x64__8wekyb3d8bbwe.appx'
-Online
Enable provisioned package for the current user:
(Get-AppxProvisionedPackage -Online |
Where-Object -Property DisplayName -EQ Microsoft.DesktopAppInstaller
).InstallLocation | Add-AppxPackage -Register -DisableDevelopmentMode
The executable winget.exe
is than found in
$env:USERPROFILE\AppData\Local\Microsoft\WindowsApps\
.
Warning
If there are policies that does not allow Microsoft applications, the
application Microsoft.DesktopAppInstaller
must be whitelisted.
Searching for Packages🔗
List all available packages:
Can also be seen at microsoft/winget-pkgs.
List all packages that contains note
:
Display information about a package:
Installing a Package🔗
Try to install all packages in machine scope (for all users):
Therefore, the default scope should be machine
. Change the default scope in
the settings
Some package can not be installed in machine scope:
Listing Package Repositories🔗
Upgrading Packages🔗
To get a list of upgradeable packages:
To upgrade a package:
Configuration Settings🔗
To open the settings in an editor:
The settings (documentation on these settings):
{
"$schema": "https://aka.ms/winget-settings.schema.json",
"visual": {
"progressBar": "rainbow"
},
"installBehavior": {
"preferences": {
"scope": "machine"
}
},
"source": {
"autoUpdateIntervalInMinutes": 5
}
}
progressBar
:accent
orrainbow
scope
:user
ormachine