清除windows 系统中 任意已安装任意版本的 .NET Framework

最近在公司电脑上遇到难题,政府部分的软件和.net framework冲突,不好安装。在网上找了好久,发现这个软件,分享一下:


.NET Framework Cleanup Tool


本人实验,本人电脑windows 8.1中 装了3个版本,选中任一个要删除的版本号, 点 CLeanup 即可以。


wKioL1VzrHSDeEn3AAGjS3xJuUg839.jpg


软件下载地址: http://www.400gb.com/file/98576027  ,因本人没有空间可以存,所以用免费空间,有广告弹出,见谅,或者在百度里搜索下载也可以的。




以下为摘录自MSDN官方的介绍:


.NET Framework Cleanup Tool User's Guide

Introduction

This .NET Framework cleanup tool is designed to automatically perform a set of steps to remove selected versions of the .NET Framework from a computer.  It will remove files, directories, registry keys and values and Windows Installer product registration information for the .NET Framework.  The tool is intended primarily to return your system to a known (relatively clean) state in case you are encountering .NET Framework installation, uninstallation, repair or patching errors so that you can try to install again.

There are a couple of very important caveats that you should review before using this tool to remove any version of the .NET Framework from your system:

  • This tool is designed as a last resort for cases where install, uninstall, repair or patch installation did not succeed for unusual reasons.  It is not a substitute for the standard uninstall procedure.  You should try the .NET Framework Repair Tool and then try the steps listed in this blog post before using this cleanup tool.

  • This cleanup tool will delete shared files and registry keys used by other versions of the .NET Framework.  If you run the cleanup tool, you will need to perform a repair/re-install for all other versions of the .NET Framework that are on your computer or they will not work correctly afterwards.

  • Additional support can be obtained by visiting the .NET Framework setup forum at http://social.msdn.microsoft.com/Forums/en-US/netfxsetup/threads.


Supported products

The .NET Framework cleanup tool supports removing the following products:

  • .NET Framework - All Versions

  • .NET Framework - All Versions (Tablet PC and Media Center)

  • .NET Framework - All Versions (Windows Server 2003)

  • .NET Framework - All Versions (Windows Vista and Windows Server 2008)

  • .NET Framework - All Versions (Windows 7)

  • .NET Framework 1.0

  • .NET Framework 1.1

  • .NET Framework 2.0

  • .NET Framework 3.0

  • .NET Framework 3.5

  • .NET Framework 4

  • .NET Framework 4.5

  • .NET Framework 4.5.1

  • .NET Framework 4.5.2

Not all of the above products will appear in the UI for the .NET Framework cleanup tool on every operating system.  The cleanup tool contains logic so that if it is run on an OS version that includes the .NET Framework as an OS component, it will not offer the option to clean it up.  This means that running the cleanup tool on Windows XP Media Center Edition or Tablet PC Edition will not offer the option to clean up the .NET Framework 1.0, running it on Windows Server 2003 will not offer the option to clean up the .NET Framework 1.1 and running it on Windows Vista or Windows Server 2008 will not offer the option to clean up the .NET Framework 2.0 or the .NET Framework 3.0.

When choosing to remove any of the above versions of the .NET Framework, the cleanup tool will also remove any associated hotfixes and service packs.  You do not need to run any separate steps to remove the service pack(s) for a version of the .NET Framework.

Silent installation mode

The .NET Framework cleanup tool supports running in silent mode.  In this mode, the tool will run without showing any UI, and the user must pass in a version of the .NET Framework to remove as a command line parameter.  To run the cleanup tool in silent mode, you need to download the cleanup tool, extract the file cleanup_tool.exe from the zip file, and then run it using syntax like the following:

cleanup_tool.exe /q:a /c:"cleanup.exe /p <name of product to remove>"

The value that you pass with the /p switch to replace <name of product to remove> in this example must exactly match one of the products listed in the Supported products section above.  For example, if you would like to run the cleanup tool in silent mode and remove the .NET Framework 1.1, you would use a command line like the following:

cleanup_tool.exe /q:a /c:"cleanup.exe /p .NET Framework 1.1"

One important note – as indicated above, the cleanup tool will not allow you to remove a version of the .NET Framework that is installed as part of the OS it is running on.  That means that even if you try this example command line on Windows Server 2003, the tool will exit with a failure return code and not allow you to remove the .NET Framework 1.1 because it is a part of that OS.

Similarly, you cannot use the cleanup tool to remove the .NET Framework 1.0 from Windows XP Media Center Edition or Windows XP Tablet PC Edition or remove the .NET Framework 2.0 or 3.0 from Windows Vista or Windows Server 2008.  In addition, if you run the cleanup tool on an OS that has any edition of the .NET Framework installed as a part of the OS, it will prevent you from using the .NET Framework - All Versions option because there is at least one version that it cannot remove.

If you are planning to run the cleanup tool in silent mode, you need to make sure to detect what OS it is running on and not pass in a version of the .NET Framework with the /p switch that is a part of the OS or make sure that you know how to handle the failure exit code that you will get back from the cleanup tool in that type of scenario.

Unattended installation mode

The .NET Framework cleanup tool supports running in silent mode.  In this mode, the tool will run and only show a progress dialog during removal, but will require no user interaction.  Unattended mode requires the user to pass in a version of the .NET Framework to remove as a command line parameter.  To run the cleanup tool in unattended mode, you need to download the cleanup tool, extract the file cleanup_tool.exe from the zip file, and then run it using syntax like the following:

cleanup_tool.exe /q:a /c:"cleanup.exe /p <name of product to remove> /u"

For example, if you would like to run the cleanup tool in unattended mode and remove the .NET Framework 1.1, you would use a command line like the following:

cleanup_tool.exe /q:a /c:"cleanup.exe /p .NET Framework 1.1 /u" 

Exit codes

The cleanup tool can returns the following exit codes:

  • 0 - cleanup completed successfully for the specified product

  • 3010 - cleanup completed successfully for the specified product and a reboot is required to complete the cleanup process

  • 1 - cleanup tool requires administrative privileges on the machine

  • 2 - the required file cleanup.ini was not found in the same path as cleanup.exe

  • 3 - a product name was passed in that cannot be removed because it is a part of the OS on the system that the cleanup tool is running on

  • 4 - a product name was passed in that does not exist in cleanup.ini

  • 100 - cleanup was able to start but failed during the cleanup process

  • 1602 - cleanup was cancelled

Log files

The cleanup tool creates the following log files:

  • %temp%\cleanup_main.log - a log of all activity during each run of the cleanup tool; this is a superset of the logs listed below as well as some additional information

  • %temp%\cleanup_actions.log - a log of actions taken during removal of each product; it will list files that it finds and removes, product codes it tries to remove, registry entries it tries to remove, etc.

  • %temp%\cleanup_errors.log - a log of errors and warnings encountered during each run of the cleanup tool



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
请谨慎使用这个.NET Framework 清理工具,旨在自动执行的步骤是:从计算机删除所选的.NET Framework版本。它将删除的有文件、 目录、 注册表项及值和 Windows .NET Framework安装程序产品注册信息。该工具主要用于使您的系统返回到原有的 (相对干净) 状态,在你遇到了.NET Framework安装、 卸载、 修复或修补错误时,想要尝试重新安装的情况下使用。 有两个非常重要的注意事项,在使用此删除工具之前,你应该从系统检查是何种版本的.NET Framework: * 此工具设计旨在最后不得已的情况下,即是在安装、 卸载、 修复或修补程序安装不成功的异常原因下才使用。它不能替代为标准的卸载过程。您应在使用此清理工具之前尝试此博客文章列出的步骤. * 此清理工具将删除共享的文件和其他的.NET Framework 版本使用的注册表项。如果您运行清理工具后,您将需要在您的计算机上执行修复/重新安装所有其他的.NET Framework 版本,否则他们将无法正确工作. 这个.NET Framework 清理工具可供下载的地址: http://cid-27e6a35d1a492af7.skydrive.live.com/self.aspx/Blog_Tools/dotnetfx_cleanup_tool.zip http://blogs.msdn.com/astebner/attachment/8904493.ashx The .zip file that contains the tool also contains a file named history.txt that lists when the most recent version of the tool was published and what changes have been made to the tool over time.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值