如何卸载"Microsoft Advertising SDK" Visual Studio扩展? [英] How to uninstall the "Microsoft Advertising SDK" Visual Studio extension?

查看:126
本文介绍了如何卸载"Microsoft Advertising SDK" Visual Studio扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio(对于我而言,2012年)中列出的扩展之一是用于Windows 8.1的Microsoft Advertising SDK".我喜欢卸载不需要的扩展程序,但是此扩展程序不允许我使用.如果我将鼠标悬停在(启用!)按钮上,它将在工具提示中显示:

One of the extensions listed in Visual Studio (2012 for me) is the "Microsoft Advertising SDK for Windows 8.1". I like to uninstall extensions I don't need, but this one won't allow me. if I hover the (enabled!) button it says in a tooltip:

无法通过扩展程序和更新来卸载此产品

This product cannot be uninstalled via extensions and updates

它看起来像这样:

第二次检查时,我在右下角看到类似的消息(更有用):

On second inspection I see a similar (more helpful) message bottom right:

您需要使用Windows控制面板中的程序和功能"窗格来删除此扩展名.

You need to use the Programs and Features pane in the Windows Control Panel to remove this extension.

很容易,不是吗?但这不在那里!

Easy enough, no? But it's not there!

或者:

除了屏幕上的说明外,我还进行了搜索.唯一有用的来源是此MSDN页面表示基本相同的内容. 链接现在已断开.

In addition to the instructions on screen I also searched. The only helpful source was this MSDN page that says basically the same thing. Link is now broken.

评论者提到扩展网页 (请参见评论"和问与答"标签)有一些类似的投诉.我也在这里交叉发布了这个问题. 链接现在已断开,但是如果您搜索其他人,仍然在MSDN论坛上抱怨.

Commenters mentioned that the extension web page (see "Reviews" and "Q AND A" tabs) has a few similar complaints. I've cross-posted this question there as well. Link is now broken, but if you search others are complaining still on the MSDN forums.

无论如何:是否有一种简便的方法来卸载此扩展程序?

In any case: is there an easy way to uninstall this extension?

推荐答案

提升 Powershell提示符运行以下命令:

Run the following from an elevated Powershell prompt:

gwmi Win32_Product -Filter "Name LIKE 'Microsoft Advertising%'"

它应该显示出罪魁祸首:

And it should show the culprits:

IdentifyingNumber : {6AB13C21-C3EC-46E1-8009-6FD5EBEE515B}
Name              : Microsoft Advertising SDK for Windows 8.1 - ENU
Vendor            : Microsoft Corporation
Version           : 8.1.30809.0
Caption           : Microsoft Advertising SDK for Windows 8.1 - ENU

IdentifyingNumber : {6AC81125-8485-463D-9352-3F35A2508C11}
Name              : Microsoft Advertising SDK for Windows Phone 8.1 XAML - ENU
Vendor            : Microsoft Corporation
Version           : 8.1.40427.0
Caption           : Microsoft Advertising SDK for Windows Phone 8.1 XAML - ENU

IdentifyingNumber : {5C87A4DB-31C7-465E-9356-71B485B69EC8}
Name              : Microsoft Advertising SDK for Windows Phone - ENU
Vendor            : Microsoft Corporation
Version           : 6.2.960.0
Caption           : Microsoft Advertising SDK for Windows Phone - ENU

IdentifyingNumber : {EBD9DB6D-180B-4C59-9622-B75CC4B32C94}
Name              : Microsoft Advertising Service Extension for Visual Studio
Vendor            : Microsoft Corporation
Version           : 12.0.40402.0
Caption           : Microsoft Advertising Service Extension for Visual Studio

然后实际卸载,将| foreach { $_.Uninstall() }添加到命令中,如下所示:

Then to actually uninstall add | foreach { $_.Uninstall() } to the command like so:

gwmi Win32_Product -Filter "Name LIKE 'Microsoft Advertising%'" | foreach { $_.Uninstall() }

应该为每一个显示:

__GENUS          : 2
__CLASS          : __PARAMETERS
__SUPERCLASS     : 
__DYNASTY        : __PARAMETERS
__RELPATH        : 
__PROPERTY_COUNT : 1
__DERIVATION     : {}
__SERVER         : 
__NAMESPACE      : 
__PATH           : 
ReturnValue      : 0
PSComputerName   : 

要寻找的重要内容是ReturnValue : 0,这意味着成功.如果得到ReturnValue : 1603,则可能意味着您的Powershell提示未提升(以admin身份运行). (此处中记录的ReturnValues完整列表)

The important thing to look for is ReturnValue : 0 which means success. If you get ReturnValue : 1603 it likely means your Powershell prompt wasn't elevated (running as admin). (Full list of ReturnValues documented here)

这篇关于如何卸载"Microsoft Advertising SDK" Visual Studio扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆