封装系统用Windows程序包管理器来精简组件Windows Package Manager

迅恒数据中心
下载页面:
https://github.com/microsoft/winget-cli/releases
各个版本中按Assets就可以出来下载文件包Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
然后命令行powershell add-appxpackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
上面要指定文件的实际路径
一般下载稳定版下载安装 不用装版本号高的预览版
简单使用教程:
1、
winget list  //可显示计算机上已安装的应用程序的列表
winget list 命令不仅显示当前已安装的版本,还会显示可用的更新版本和来源。
如果没有可用更新,list 将只显示当前已安装的版本,而不会显示更新列
2、
winget search //显示可供安装的所有应用程序
winget search --query ""  //显示所有可用的winget包
在 PowerShell 中,需要转义引号,因此该命令将变为:winget search -q `"`"
3、
winget install  //安装指定的应用程序
winget install powertoys --version 0.15.2  //安装特定版本的应用程序
winget install --id Microsoft.PowerToys  //根据应用程序 ID 安装
winget install --id Microsoft.PowerToys --version 0.15.2  //按版本和 ID 安装应用程序
msstore 源使用唯一标识符作为程序包的“Id”:
winget install XP9KHM4BK9FZ7Q -s msstore
 4、
winget uninstall  \\卸载指定的应用程序
 

分类:IDC资讯 百度收录 必应收录