.NET FRAMEWORK CLEANUP TOOL USER'S GUIDE
The latest version of this user's guide can be found at http://blogs.msdn.com/astebner/pages/8904493.aspx.
-----------------------------------
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
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.
-----------------------------------
DOWNLOAD LOCATIONS
-----------------------------------
The .NET Framework cleanup tool is available for download at the following locations:
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.
-----------------------------------
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 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
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 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 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

longm龙哥
- 粉丝: 67
最新资源
- 用友软件在日常核算中常见问题【会计实务操作教程】.pptx
- 专题讲座资料(2021-2022年)关于近年来信息化工作情况的汇报.docx
- 加强网络信息安全的建议书.docx
- 网络购物项目可行性报告.doc
- 计算机组装与维护(第二版)-项目1-任务6声音系统.pptx
- 数据挖掘项目Python——银行对中小微企业信贷策略的关键技术应用
- 中国网络零售现状调研报告.pptx
- 综合布线系统布线系统测试与工.pptx
- 如何撰写项目管理专业论文.ppt
- 人工神经网络-专题知识专家讲座.pptx
- 通信技术在生活中的作用.doc
- 电子商务脱贫奔康自查报告.docx
- 微软(中国)有限公司的简历挑选方法.pdf
- 网络服务协议标准版.doc
- (源码)基于Node.js的多平台自动签到系统.zip
- 基于PLC的自动洗车控制系统(DOC).doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


