简体   繁体   English

卸载Visual F#

[英]Uninstall Visual F#

I use Visual Studio 2013, and it have a pretty feature to notify and install all extension updates. 我使用Visual Studio 2013,它有一个很好的功能来通知和安装所有扩展更新。

So, this is very good, but I receive sometimes the request to install the updates for the features I never use. 所以,这非常好,但我有时会收到安装我从未使用的功能的更新的请求。

By example, it proposes me to install the update for the Visual F# 3.1 例如,它建议我安装Visual F#3.1的更新

Is there a way to completely remove this F#? 有没有办法彻底删除这个F#? I tried to uninstall from the extensions manager, it sends me to the "Add & Remove Programs", but there is any program containing "F#". 我尝试从扩展管理器卸载,它将我发送到“添加和删除程序”,但是有任何程序包含“F#”。

How to proceed? 如何进行?

There is an awesome package which will do the searching of packages for you called TotalUninstaller by Codeplex user konste . 有一个很棒的软件包,可以通过Codeplex用户konste为你搜索名为TotalUninstaller的软件包。

Download the package and unpack it to eg C:\\TotalUninstaller. 下载软件包并将其解压缩到例如C:\\ TotalUninstaller。

It is a commandline program, you need a cmd.exe with administator privileges (click start -> enter "cmd" -> right click on the entry -> select "start as administrator"). 这是一个命令行程序,你需要一个具有管理员权限的cmd.exe(单击开始 - >输入“cmd” - >右键单击条目 - >选择“以管理员身份启动”)。 Navigate to the directory via 导航到目录

c: && cd \\ && cd TotalUninstaller c:&& cd \\ && cd TotalUninstaller

In order to list all installed packages you would enter 要列出您要输入的所有已安装软件包

TotalUninstaller.exe /ListAll > list.txt TotalUninstaller.exe / ListAll> list.txt

This can be an overwhelming list, so i used a pipe so the content can be viewed with an editor (just open list.txt). 这可能是一个压倒性的列表,所以我使用了一个管道,因此可以使用编辑器查看内容(只需打开list.txt)。

But this is actually not really needed, as there is a file called "TotalUninstaller.exe.config" which features a section where one can define keywords to filter the installed packages by. 但这实际上并不是真的需要,因为有一个名为“TotalUninstaller.exe.config”的文件,其中包含一个部分,可以定义关键字来过滤已安装的软件包。 It comes with a quite handy default set. 它配备了一个非常方便的默认设置。

In order to view the selection after the filter was applied, enter 要在应用过滤器后查看选择,请输入

TotalUninstaller.exe /Filter TotalUninstaller.exe / Filter

Those are the packages that the program currently would remove. 这些是程序目前要删除的包。 If you are happy with the selection, enter the following, THERE WILL BE NO FURTHER CHECK OR QUESTION 如果您对选择感到满意,请输入以下内容, 不再进一步检查或问题

TotalUninstaller.exe /Uninstall TotalUninstaller.exe /卸载

and watch the packages disappear. 看着包裹消失了。 Id close all other applications prior to the last call. Id在最后一次通话之前关闭所有其他应用程序。

您可以从具有管理员权限的PowerShell提示符中使用以下命令将其卸载:

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

NOTE: This does not uninstall all F# functionality and templates, just two F# packages. 注意:这不会卸载所有F#功能和模板,只卸载两个F#软件包。

I did a search in the registry for “F#”. 我在注册表中搜索了“F#”。 I found the location of the installer package for F# v3.1. 我找到了F#v3.1的安装程序包的位置。 The MSI installer supports manual uninstallation of such a package. MSI安装程序支持手动卸载此类程序包。 So, using the paths in the registry, I uninstalled them. 因此,使用注册表中的路径,我卸载了它们。 There are actually two packages: Visual F# 3.1 SDK and Visual F# 3.1 VS . 实际上有两个包: Visual F#3.1 SDKVisual F#3.1 VS. To uninstall these two packages, an Administrator command prompt needs to be opened. 要卸载这两个软件包,需要打开管理员命令提示符。

  1. Open a powershell (or command) prompt as an Administrator 以管理员身份打开powershell(或命令)提示符
  2. Run the following to uninstall the Visual F# 3.1 SDK package: 运行以下命令以卸载Visual F#3.1 SDK包:

    PS C:\\> msiexec /x "C:\\ProgramData\\Package Cache\\{06EEE072-B561-38E5-85D9-485ABCBE8342}v12.0.21005\\packages\\fsharp\\FSharpSDK.msi"

    There is a prompt to perform the uninstallation, and then it's gone. 有提示执行卸载,然后它就消失了。

    F#v3.1 SDK卸载提示

  3. Run the following to uninstall the Visual F# 3.1 VS package: 运行以下命令以卸载Visual F#3.1 VS软件包:

    PS C:\\> msiexec /x "C:\\ProgramData\\Package Cache\\{6321F2D4-366B-3AE4-877A-8E539EC3331A}v12.0.21005\\packages\\fsharp\\FSharpVS.msi"

Unfortunately, this does not make the Visual F# installation go away in the Extensions and Updates list, nor does it remove all F# templates. 不幸的是,这并没有使Visual F#安装在Extensions and Updates列表中消失,也不会删除所有F#模板。 I didn't experiment with manually removing that from Visual Studio (perhaps another day). 我没有尝试从Visual Studio中手动删除它(可能是另一天)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM