我关注了指导通过 OneGet 安装 VLC。但是成功安装后,VLC 不会显示在开始菜单或“添加或删除程序”中。
我究竟做错了什么?
命令
PS C:\Users\Snebjorn> get-packageprovider -name chocolatey
The provider 'chocolatey v2.8.5.130' is not installed.
chocolatey may be manually downloaded from https://oneget.org/ChocolateyPrototype-2.8.5.130.exe and installed.
Would you like PackageManagement to automatically download and install 'chocolatey' now?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"):
Name Version DynamicOptions
---- ------- --------------
Chocolatey 2.8.5.130 {SkipDependencies, ContinueOnFailure, ExcludeVersion, ForceX86...}
PS C:\Users\Snebjorn> install-package vlc
The provider 'nuget v2.8.5.127' is not installed.
nuget may be manually downloaded from https://oneget.org/nuget-anycpu-2.8.5.127.exe and installed.
Would you like PackageManagement to automatically download and install 'nuget' now?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"):
The package(s) come from a package source that is not marked as trusted.
Are you sure you want to install software from 'chocolatey'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): y
Name Version Source Summary
---- ------- ------ -------
vlc 2.2.1.20150630 chocolatey VLC Media Player
PS C:\Users\Snebjorn>
答案1
我找到了答案作为对这篇文章的评论如何使用 Windows 10 内置程序包管理器?
哦,PackageManagement 中有一个非常令人困惑的错误,除非在安装包之前将执行策略设置为允许脚本(我使用 RemoteSigned),否则就会发生这种确切的行为。我会更新我的答案。
Set-ExecutionPolicy RemoteSigned
因此,运行并重新安装 VLC后,它就可以按预期工作了。耶!