Jump to content

Windows Uptate temporary folder cleanup


YoKenny

Recommended Posts

This is on WinXP Home so I'm not sure how it would work on other operating systems.

 

Windows Update creates 5 sub-folders and multiple logging files in:

C:\WINDOWS\SoftwareDistribution

 

It tends to become cluttered with the downloaded update files.

 

To clean it out then do the following procedure.

 

Please click Start, click Run, type in "cmd" (without quotations) and press Enter.

Please run the following commands in the opened window to clean out the folder.

 

1. Type in "net stop WuAuServ" (without quotations) and press Enter.

You will receive a message stating the Automatic Updates service was stopped successfully.

2. Delete all the folders and files in C:\WINDOWS\softwaredistribution

3. Type in "net start WuAuServ" (without quotations) and press Enter to restart the Automatic Updates service...

 

This also has an added benefit of fixing Windows Update when it incorectly installs updates.

"Education is what remains after one has forgotten everything he learned in school." - Albert Einstein

IE7Pro user

Link to comment
Share on other sites

This is on WinXP Home so I'm not sure how it would work on other operating systems.

 

Windows Update creates 5 sub-folders and multiple logging files in:

C:\WINDOWS\SoftwareDistribution

 

It tends to become cluttered with the downloaded update files.

 

To clean it out then do the following procedure.

 

Please click Start, click Run, type in "cmd" (without quotations) and press Enter.

Please run the following commands in the opened window to clean out the folder.

 

1. Type in "net stop WuAuServ" (without quotations) and press Enter.

You will receive a message stating the Automatic Updates service was stopped successfully.

2. Delete all the folders and files in C:\WINDOWS\softwaredistribution

3. Type in "net start WuAuServ" (without quotations) and press Enter to restart the Automatic Updates service...

 

This also has an added benefit of fixing Windows Update when it incorectly installs updates.

 

 

Just wanted to point out that at least the folders inside "C:\WINDOWS\SoftwareDistribution\Download" would be easy to delete for ccleaner as it isn't necessary to do any "net stop".

 

The "C:\WINDOWS\SoftwareDistribution\Download" folders are the bigger ones so it would be great that in a future version CCleaner removes them.

Link to comment
Share on other sites

It is my professional opinion that CCleaner should not be targeting this folder at all. The downloaded files are supposed to be removed after installation, or you can do it manually as described. Be warned though that blatantly deleting SoftwareDistribution will remove your update history log. My recommendation is only to remove the SoftwareDistribution\Download folder.

Click here if CCleaner Issues are re-appearing

 

DjLizard.net

DjLizard.net wiki

Dial-a-fix

Dial-a-fix tips

DjLizard.net software support forum

 

Do you live in Bradenton, Sarasota, Tampa, or St. Petersburg, Florida? Visit Digital Doctors where I work :)

Link to comment
Share on other sites

PS: Dial-a-fix is made for fixing Windows Update problems, and does actually include a SoftwareDistribution flusher :P

Click here if CCleaner Issues are re-appearing

 

DjLizard.net

DjLizard.net wiki

Dial-a-fix

Dial-a-fix tips

DjLizard.net software support forum

 

Do you live in Bradenton, Sarasota, Tampa, or St. Petersburg, Florida? Visit Digital Doctors where I work :)

Link to comment
Share on other sites

 

Be warned though that blatantly deleting SoftwareDistribution will remove your update history log.
In my professional and personal experience whenever Windows Update is run again the Windows Update history log is recreated.

"Education is what remains after one has forgotten everything he learned in school." - Albert Einstein

IE7Pro user

Link to comment
Share on other sites

The history is stored in SoftwareDistribution\DataStore\DataStore.edb, and will not be recreated if you delete it.

Click here if CCleaner Issues are re-appearing

 

DjLizard.net

DjLizard.net wiki

Dial-a-fix

Dial-a-fix tips

DjLizard.net software support forum

 

Do you live in Bradenton, Sarasota, Tampa, or St. Petersburg, Florida? Visit Digital Doctors where I work :)

Link to comment
Share on other sites

Your Dial-a-fix even deletes C:\WINDOWS\SoftwareDistribution folder so if you are so concerned about the history log file being deleted then you should be concerned by your own application. :huh:

"Education is what remains after one has forgotten everything he learned in school." - Albert Einstein

IE7Pro user

Link to comment
Share on other sites

I know that, and 0.58 warns the user that it's going to get flushed, and prompts the user to choose whether to leave the log or not. 0.58 is not yet available, but that was the first change I made when I started development on 0.58, per a user request (which is when I learned about DataStore).

 

Anyway, CCleaner should not do this

 

thread over

 

--- cut here ---

Click here if CCleaner Issues are re-appearing

 

DjLizard.net

DjLizard.net wiki

Dial-a-fix

Dial-a-fix tips

DjLizard.net software support forum

 

Do you live in Bradenton, Sarasota, Tampa, or St. Petersburg, Florida? Visit Digital Doctors where I work :)

Link to comment
Share on other sites

  • Moderators
Let's stop deleting posts without any notification, shall we?

 

Let's stop making personal attacks on people for no reason what so ever shall we? Honestly what was the point of that post? You weren't even involved in this topic and you posted that. Yet you had the nerve to report that persons posts when they were just a discussion. If I would have removed those posts then Dj's very nice responses would look out of place. Your post had absolutely nothing to do with the topic, it was just a rude remark.

Link to comment
Share on other sites

  • 2 weeks later...

Just as a point of information:

 

Because of this thread, I happened to check my C:\WINDOWS\SoftwareDistribution\Download after the April Windows update. Although the updates were all successful I had 6 folders and 1 file left in the folder.

 

I found one article stating that the C:\WINDOWS\SoftwareDistribution\Download folder emptied itself 10 days after the update, so I checked the folder daily.

 

The folder contents were there late on day 9 and gone first thing on day 10.

Link to comment
Share on other sites

The folder contents were there late on day 9 and gone first thing on day 10.
Interesting.

Thanks for the info.

"Education is what remains after one has forgotten everything he learned in school." - Albert Einstein

IE7Pro user

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.