WangQiFei

蒸 馏 器


思想提纯
  • 首页
  • 归档
  • 标签
  • 关于
  •     

© 2024  by  Wangqifei

不使用MicrosoftStore安装Winget

发布于 2023-06-08 13:06 windows 

winget

winget 是优秀的 windows 端的软件管理工具,可以通过 MicrosoftStore 很便捷的安装,只是我在安装 win 的时候使用 Tiny10 安装了个 Windows 10 IoT 企业版 LTSC,没有 MicrosoftStore。以下是解决方案:
运行 powershell 执行以下命令

1
2
3
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
Install-Script -Name winget-install -Force
winget-install.ps1

异常处理

如果你的 powershell 运行提示:because running scripts is disabled on this system’需要先解决这个报错。
报错原因是:powershell 中默认的 execution policy 是 restricted。可以使用 Get-ExecutionPolicy 查看其状态。
解决方案:设置 execution policy 为 remotesigned
PowerShell 执行以下命令:

1
Set-ExecutionPolicy RemoteSigned

 上一篇: windows系统安装推荐 

下一篇: SpotifyPremium实现 

© 2024  by  Wangqifei