Aaron Stebner's WebLog

Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio

Automated cleanup tool to remove the .NET Framework 1.0, 1.1, 2.0, 3.0 and 3.5

Automated cleanup tool to remove the .NET Framework 1.0, 1.1, 2.0, 3.0 and 3.5

Rate This

I have posted an updated version of the .NET Framework cleanup tool that now contains support for automatically cleaning up the .NET Framework 1.0, the .NET Framework 1.1, the .NET Framework 2.0, the .NET Framework 3.0 and the .NET Framework 3.5.

This tool automates the manual cleanup steps for the .NET Framework 2.0 that I posted a while ago.  These steps have helped solve most of the known .NET Framework 2.0 beta uninstall issues that I know of.  In addition, the tool can be useful to return your system to a known (relatively clean) state in case you run into any .NET Framework 2.0 installation failures so that you can try to install again.

The updated version of the cleanup tool contains options to clean up the .NET Framework 1.0, 1.1, 2.0, 3.0 and 3.5 separately and all versions simultaneously in a single step.  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 will not offer the option to clean up the .NET Framework 2.0 or the .NET Framework 3.0.

There are a couple of very important caveats that you should read before using this tool to cleanup .NET Framework bits on your machine:

  1. This tool is designed as a last resort for cases where install, uninstall or repair did not succeed for unusual reasons.  It is not intended as a substitute for the standard uninstall procedure.  You should try to perform an uninstall from Add/Remove Programs before using this cleanup tool.
  2. 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 or reinstall for all other versions of the .NET Framework that are on your computer to get them to work correctly afterwards.

I have been using this tool for a while, and it has proven reliable, but there may still be bugs in it in certain scenarios.  Please contact me if you run into any issues while using the cleanup tool or if you are still unable to install the .NET Framework (or any service packs or hotfixes) after running it.

The tool has a command line switch that allows it to be run in silent mode if needed.  There is more information about how to run it in silent mode in the .NET Framework Cleanup Tool User's Guide.

<update date="8/22/2007"> Added information about removing the .NET Framework 3.0 because the tool now supports this version of the .NET Framework in addition to 1.0, 1.1 and 2.0. </update>

<update date="9/13/2007"> Added information about removing the .NET Framework 3.5 because the tool now supports this version of the .NET Framework in addition to 1.0, 1.1, 2.0 and 3.0. </update>

<update date="12/3/2007"> Added a link to the silent install instructions for the cleanup tool </update>

<update date="2/28/2009"> Added links to the .NET Framework Cleanup Tool User's Guide, which contains download locations and detailed information about how to use the cleanup tool. </update>

 

  • I have spent all day trying to fix a Framework.net 3.5 KB982526 that refuses to install on Win7 x64. MS Framework.net did not show up in add remove so I used the cleanup tool to apparently remove Framework versions yet the update is still showing up even after reboot. As well dotnetfc35.exe refuses to install. At my wits end.

  • Hi Frustrated - The .NET Framework 3.5 SP1 is installed as a part of the OS on Windows 7, so the standalone dotnetfx35.exe will not allow you to install on that version of Windows.  Instead, you can run optionalfeatures.exe and enable/disable the item named Microsoft .NET Framework 3.5.1.  Also, the cleanup tool will not allow you to remove the .NET Framework 3.5 on Windows 7 because it is an OS component.  Do you see any specific error messages when you try to install KB982526?  Could you please try to use the tool described at blogs.msdn.com/.../6458047.aspx to gather all of your .NET Framework setup log files, post them to a file server such as http://skydrive.live.com, and then reply here with a link I could use to download the log files and see if I can figure out what is causing the installation failure on your computer?

  • The installation of Microsoft.NET Framework 3.0 KB967328(x86) has failed. Setup will exist now exit

    Hi,

    Can anyone help. When installing Nero 10 I get cannot install past Microsoft VS PIA Redist and Reboot Validator.

    Says the installation of Microsoft.NET Framework 3.0 KB 967328 (x86) has failed. Set up will now exit. Then it exits the installation.

    However if I try to reinstall Microsoft.NET Framework 3.0 KB 967328 (x86)that I cant because I have a more current version.

    I have XP SP3.

    Thanks

  • Hi Rayquest - I'm not sure why you're seeing this type of error.  I'd suggest trying to use the steps listed at blogs.msdn.com/.../8108332.aspx to remove and then re-install the .NET Framework 3.5 SP1 (which will also install the .NET Framework 2.0 SP2 and 3.0 SP2 behind the scenes).

  • Thanks! It worked great!

  • Thanks for a great tool! this has just saved my bacon!

  • this Is great except one thing I get another error when i try installing, though because of the tool it has made progress. it says something about no file in the error report. Any help?

  • Hi Anthony - I'm not sure I understand your scenario.  What exact version of the .NET Framework are you trying to install, and what error message do you see?  Can you please use the tool described at blogs.msdn.com/.../6458047.aspx to gather your .NET Framework setup log files, post the file %temp%\vslogs.cab that is created by that tool to a file server such as http://skydrive.live.com and reply here with a link I can use to download the logs and take a further look?

  • Your tool worked great, a quick look, it appears you have a huge amount of time and effort in this app. Nice job.

  • It works! Thanks a lot.

  • It's magic....just magic

  • Thanks a lot, finally I got rid of my problems with .net! I too had to run the cleanup twice. First, it removed 3.5 sp1 and second time it removed 2.0.

  • Hi, after searching for several days I finally found this site.  I downloaded the tool, ran it, and 15 minutes later - presto!  No more 1603 or 1618 errors.  I don't really know what this .netframework stuff is, but both my Garmin and Blackberry software insisted on having it installed in order to install the most current software.

    THANK YOU!

    Will D

  • Used the tool this am, and it worked! Thanks immensely. Based on my PC installed history, Microsoft should not have offered my 3.5 Family Package for dot net support. The MS programmers are out to lunch on the MS Update site. I am fed up with the mistakes these people are making!!

  • Hi Aaron,  I got scared by your software warning and just want to confirm that even the pre-clean log says nothing wrong, it might still be something worng and OK to proceed with the cleaning.  I previously used TurboTax's tool (which should be the same as yours.)  Here is the log:

    [02/06/11,12:55:25] Beginning of new cleanup utility session

    [02/06/11,12:55:25] Build created on January 17, 2011

    [02/06/11,12:55:25] Detected operating system: Windows 7 (x64)

    [02/06/11,12:55:25] Install state for .NET Framework 1.0: not installed.

    [02/06/11,12:55:25] Install state for .NET Framework 1.1: not installed.

    [02/06/11,12:55:25] Install state for .NET Framework 2.0: installed with service pack 2.

    [02/06/11,12:55:25] Install state for .NET Framework 3.0: installed with service pack 2.

    [02/06/11,12:55:25] Install state for .NET Framework 3.5: installed with service pack 1.

    [02/06/11,12:55:25] Install state for .NET Framework 4 Client: installed with no service packs.

    [02/06/11,12:55:25] Install state for .NET Framework 4 Full: installed with no service packs.

    [02/06/11,12:55:25] Not adding product '.NET Framework - All Versions' because the OS condition does not match

    [02/06/11,12:55:25] Not adding product '.NET Framework - All Versions (Tablet PC and Media Center)' because the OS condition does not match

    [02/06/11,12:55:25] Not adding product '.NET Framework - All Versions (Windows Server 2003)' because the OS condition does not match

    [02/06/11,12:55:25] Not adding product '.NET Framework - All Versions (Windows Vista and Windows Server 2008)' because the OS condition does not match

    [02/06/11,12:55:25] Not adding product '.NET Framework 2.0' because the OS condition does not match

    [02/06/11,12:55:25] Not adding product '.NET Framework 3.0' because the OS condition does not match

    [02/06/11,12:55:25] Not adding product '.NET Framework 3.5' because the OS condition does not match

Page 12 of 16 (235 items) «1011121314»
Leave a Comment
  • Please add 5 and 4 and type the answer here:
  • Post