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>

 

  • THANKS for this great tool.

    It solved my problems after I 'accidentally' cleaned out my Windows\Installer, dllcache and ServicePackFiles folders a bit too thoroughly, leaving me unable to update, repair, uninstall or reinstall.

  • Hi Aaron

    I'm wondering if you can help please. I'm trying to repair my dot net on W7 SP1 64 and have followed the steps above but still can't reinstall as per the following:

    OS Version = 6.1.7601, Platform 2, Service Pack 1

    OS Description = Windows 7 - x64 Enterprise Edition Service Pack 1

    CommandLine = C:\3038e4deb60807de76\\Setup.exe /x86 /x64

    TimeZone = New Zealand Daylight Time

    Initial LCID = 5129

    Using Simultaneous Download and Install mechanism

    Operation: Installing

    Package Name = Microsoft .NET Framework 4 Setup

    Package Version = 4.0.30319

    User Experience Data Collection Policy: Disabled

    Number of applicable items: 11

    Exe (C:\3038e4deb60807de76\SetupUtility.exe) succeeded.

    Exe Log File: dd_SetupUtility.txt

    ServiceControl operation succeeded!

    ServiceControl operation succeeded!

    Exe (C:\3038e4deb60807de76\Windows6.1-KB958488-v6001-x64.msu) failed with 0xbc9 - The requested operation failed. A system reboot is required to roll back changes made. .

    Final Result: Installation failed with error code: (0x00000BC9), "The requested operation failed. A system reboot is required to roll back changes made. " (Elapsed time: 0 00:00:09).

    Also, when I run the dot net exe file it keeps trying to install to my G: drive and subsequently I have to disable it so that it defaults to C: for the install. Reason for that?

    My C: is a RAID0 using two SSDS?

    Any help or thoughts would be appreciated.

  • Hi Chris McKay - I don't think setup is trying to install to your G drive.  I think it is just trying to unpack temporary files used during setup to the G drive because it is the drive with the largest amount of free space.  The 0xbc9 error doesn't indicate much other than that setup failed - it isn't too helpful for trying to figure out the root cause of the failure.  Can you please use the tool described at blogs.msdn.com/.../6458047.aspx to collect all of your setup log files, upload the file named %temp%\vslogs.cab that this tool will create to a file server (such as http://skydrive.live.com), and then reply back here and post a link that I can use to download your log files and take a closer look?

  • I used your program after add/uninstall programs was unsucessful.  all was sucesssful according to the ending note.

    I tried to install, clean install, all went well until the end when it failed due to the following part of message:

    Exe (C:\Users\Owner\AppData\Local\Temp\Microsoft .NET Framework 4 Setup_4.0.30319\Windows6.0-KB956250-v6001-

    x64.msu) failed with 0x1 - Incorrect function. .

    PerformOperation on exe returned exit code 1 (translates to HRESULT = 0x1)

    Action complete

    Error 0x1 is mapped to Custom Error: Success

    Overwrite the current error to S_OK.

    Wait for Item (Windows6.1-KB958488-v6001-x64.msu) to be available

    Windows6.1-KB958488-v6001-x64.msu is now available to install

    Created new DoNothingPerformer for File item

    No CustomError defined for this item.

    Wait for Item (SetupUtility.exe) to be available

    SetupUtility.exe is now available to install

    Creating new Performer for Exe item

    Created new ExePerformer for Exe item

    Action: Performing Action on Exe at C:\19a69e9d3f10647c2edc\SetupUtility.exe

    Launching CreateProcess with command line = SetupUtility.exe /screboot

    Exe log file(s) :

    C:\Users\Owner\AppData\Local\Temp\dd_SetupUtility.txt

    Log File C:\Users\Owner\AppData\Local\Temp\dd_SetupUtility.txt exists and will be added to the Watson upload list

    Exe (C:\19a69e9d3f10647c2edc\SetupUtility.exe) succeeded.

    Exe Log File: dd_SetupUtility.txt

    Action complete

    Error 0 is mapped to Custom Error:

    Wait for Item (netfx_Core.mzz) to be available

    netfx_Core.mzz is now available to install

    Created new DoNothingPerformer for File item

    No CustomError defined for this item.

    Wait for Item (netfx_Core_x64.msi) to be available

    netfx_Core_x64.msi is now available to install

    Creating new Performer for MSI item

    Action: Performing Action on MSI at C:\Users\Owner\AppData\Local\Temp\Microsoft .NET Framework 4 Setup_4.0.30319

    \netfx_Core_x64.msi

    Log File C:\Users\Owner\AppData\Local\Temp\Microsoft .NET Framework 4 Setup_20111217_150653301-

    MSI_netfx_Core_x64.msi.txt does not yet exist but may do at Watson upload time

    Calling MsiInstallProduct(C:\Users\Owner\AppData\Local\Temp\Microsoft .NET Framework 4 Setup_4.0.30319

    \netfx_Core_x64.msi, EXTUI=1

    Returning IDOK. INSTALLMESSAGE_ERROR [Service '@C:\Windows\Microsoft.NET\Framework64\v4.0.30319

    \WPF\WPFFontCache_v0400.exe,-100' (WPFFontCache_v0400) could not be installed. Verify that you have sufficient

    privileges to install system services.]

    MSI (C:\Users\Owner\AppData\Local\Temp\Microsoft .NET Framework 4 Setup_4.0.30319\netfx_Core_x64.msi) Installation

    failed. Msi Log: Microsoft .NET Framework 4 Setup_20111217_150653301-MSI_netfx_Core_x64.msi.txt

    PerformOperation returned 1603 (translates to HRESULT = 0x80070643)

    Action complete

    Error 1603:1923 is mapped to Custom Error: Retry

    C:\19a69e9d3f10647c2edc\SetupUtility.exe: Verifying signature for SetupUtility.exe

    C:\19a69e9d3f10647c2edc\SetupUtility.exe - Signature verified successfully for SetupUtility.exe

    C:\19a69e9d3f10647c2edc\SetupUtility.exe Signature verified successfully for SetupUtility.exe

    Signature verification succeeded for SetupUtility.exe

    File C:\19a69e9d3f10647c2edc\SetupUtility.exe, is verified successfully.

    Created new ExePerformer for Exe item

    Action: Performing Action on Exe at C:\19a69e9d3f10647c2edc\SetupUtility.exe

    Launching CreateProcess with command line = SetupUtility.exe /wireregister

    Exe log file(s) :

    C:\Users\Owner\AppData\Local\Temp\dd_SetupUtility.txt

    Log File C:\Users\Owner\AppData\Local\Temp\dd_SetupUtility.txt exists and will be added to the Watson upload list

    Exe (C:\19a69e9d3f10647c2edc\SetupUtility.exe) succeeded.

    Exe Log File: dd_SetupUtility.txt

    Action complete

    Helper item execution succeed.

    Delaying for Starting to delay

    Action: Performing Action on MSI at C:\Users\Owner\AppData\Local\Temp\Microsoft .NET Framework 4 Setup_4.0.30319

    \netfx_Core_x64.msi

    Log File C:\Users\Owner\AppData\Local\Temp\Microsoft .NET Framework 4 Setup_20111217_150653301-

    MSI_netfx_Core_x64.msi.txt exists and will be added to the Watson upload list

    Calling MsiInstallProduct(C:\Users\Owner\AppData\Local\Temp\Microsoft .NET Framework 4 Setup_4.0.30319

    \netfx_Core_x64.msi, EXTUI=1

    Returning IDOK. INSTALLMESSAGE_ERROR [Service '@C:\Windows\Microsoft.NET\Framework64\v4.0.30319

    \WPF\WPFFontCache_v0400.exe,-100' (WPFFontCache_v0400) could not be installed. Verify that you have sufficient

    privileges to install system services.]

    MSI (C:\Users\Owner\AppData\Local\Temp\Microsoft .NET Framework 4 Setup_4.0.30319\netfx_Core_x64.msi) Installation

    failed. Msi Log: Microsoft .NET Framework 4 Setup_20111217_150653301-MSI_netfx_Core_x64.msi.txt

    PerformOperation returned 1603 (translates to HRESULT = 0x80070643)

    Action complete

    Error 1603:1923 is mapped to Custom Error: Retry

    Retry 1 of 1 of custom error handling

    Retry count over existing limit, not going to retry again.

    OnFailureBehavior for this item is to Rollback.

    Action: Performing actions on all Items

    Action complete

    Action complete

    Final Result: Installation failed with error code: (0x80070643), "Fatal error during installation. " (Elapsed time:

    0 00:07:38).

    WM_ACTIVATEAPP: Focus stealer's windows WAS visible, NOT taking back focus

  • Hi Lou - Can you please use the tool described at blogs.msdn.com/.../6458047.aspx to collect all of your setup log files, upload the file named %temp%\vslogs.cab that this tool will create to a file server (such as http://skydrive.live.com), and then reply back here and post a link that I can use to download your log files and take a closer look?

    Also, do you see similar problems when trying to install other updates from Windows Update, or is this problem specific to .msu file that is being installed by the .NET Framework 4?

  • i have tried to upload to skyline but when i click on vslogs.cab it states that items do not match my search, nothing shows up when i click on the folder.  i have been able to access the folder through the computer and there are 17 items in the folder, looks to be 25mbs or more. i found that i can copy the notepad files to the desktop. the rest seem to be ie docs.

    i imagine i could load the notepad docs if that is acceptable. but do not know which ones you would require.

    fyi, after i posted above request, microsoft updater reloaded all of .net.  still have same problems

    btw, the resolution of these issues are not work critical but i am interested in resolving them, if possible

    thanks for you assistance

  • Hi Lou - I'm not sure I understand what is going on here.  Did you run the log collection tool and it created %temp%\vslogs.cab, but then you can't upload that file to SkyDrive?  Where exactly are you clicking on vslogs.cab when nothing shows up?

  • Hi,

    When I run your tool. It stucks at removing registry for over 3 hours.

    What could be the cause?

  • Hi Malmsteen - I've run into a couple of cases where the tool gets stuck in an infinite loop if it doesn't have permissions to delete one of the registry keys that it is trying to delete.  Can you check and see what the last line in your log file says?  You might have to try to manually take ownership of and delete the registry key that is causing the tool to get stuck.  You can use steps like the ones at www.howtogeek.com/.../take-ownership-of-or-assign-full-permission-for-a-registry-key-in-windows-7 to take ownership of registry keys.

  • skydrive.live.com/redir.aspx

    finally figured out how to get to files but am unclear and unsure about how to share. have read skydrive info but it is still unclear.  hope this works

  • Hi Lou - This is the error I see in your log file:

    Error 1923. Service '@C:\Windows\Microsoft.NET\Framework64\v4.0.30319\WPF\WPFFontCache_v0400.exe,-100' (WPFFontCache_v0400) could not be installed.  Verify that you have sufficient privileges to install system services.

    There might be an old version of that service stuck on your computer that is preventing this installation from working correctly.  I'd suggest using the tool and the steps listed at blogs.msdn.com/.../8108332.aspx to fully remove the .NET Framework 4 from your computer and then try to re-install it from www.microsoft.com/.../details.aspx.

  • i have acquired full admin rights however, when i log in as admin and windows opens i find that internet explorer does not work and i cannot access the internet to continue with the process.  is this a problem or can i work from the owner

    position?

  • did the uninstall and then the reinstall in the owner position, install failed.  i have now downloaded the programs i have used and i feel sure i can use them in the admin position as long as i do not need an internet connection. at this point then i am ready to proceed just wondering if you have any other advice before i begin..

    also is "rollback progress" common to see during the install?

  • just discovered the downloads are not on admin side. suggestions on how and where to move them

  • did the uninstall and the reinstall on the admin side. it failed. i ran the log collection but cannot find it in the system on either side.  also noted a warning note that the system needs 3.5 to run. is it possible i am installing the wrong one?

    it's thursday afternoon and you may be gone for the holidays so wishing everyone well. enjoy it all.

Page 14 of 16 (235 items) «1213141516
Leave a Comment
  • Please add 7 and 6 and type the answer here:
  • Post