“Get-Package * notepad * |卸载 - 包 - 强制“无法正常工作

问题描述 投票:0回答:1

我以管理员身份打开PowerShell

我跑:

Get-Package *notepad*

PowerShell向我展示了Notepad ++(32位x86)

然后我跑:

Get-Package *notepad* | Uninstall-Package -Force

而PowerShell并没有卸载Notepad ++

我试过几个程序,它们仍然全部安装完毕。为什么?

编辑:你可以看到@ m0lochwalker PowerShell就像程序被卸载一样。

enter image description here

试试你的环境,没有任何东西被卸载。

@Ranadip Dutta:Get-WmiObject -class Win32_Product仅适用于32位,如果它是64位,则不会返回Notepad ++;基本上它根本不会返回任何64位:

enter image description here

我需要更全面的东西,可以兼容32位和64位

powershell nuget-package uninstall
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.