Knowledgebase

Service Pack Files (Move)


http://ask-leo.com/can_i_remove_the_servicepackfiles_folder_from_my_windows_folder.html

Summary: ServicePackFiles contains the files updated by the Service Packs issues since your install. It can be deleted if you have the files elsewhere.

I just installed service pack 2 for my Windows XP Home Edition. Can I remove the service pack files folder in my windows folder?


Yes, but you probably don't really want to.

Let me explain why.



The short answer is that if you remove it, you may at some future date be asked to insert the Windows installation CD if Windows believes it needs to install or repair an operating system
file. The problem is that your CD probably only has SP1 on it, if that. Windows will insist on your inserting the SP2 disk - which you likely don't have.

If you leave the folder, usually C:\WINDOWS\ServicePackFiles, and its contents in place, then Windows can simply pick up what it needs, when it needs it from there without ever bothering you.

It's very much like the I386 folder that I've discussed before. In fact, on my machine at least, there's an I386 folder within C:\WINDOWS\ServicePackFiles that actually contains all the files updated by service pack 2. So the best way to think of that ServicePackFiles is as an SP2 update to the I386 folder that may be elsewhere on your machine.

"You can delete it, just be prepared to need to insert your original installation CD if Windows ever needs it, as well as an SP2 CD if you have one."•

In a sense the I386 folder (and the ServicePackFiles\I386 folder) are conveniences. They're really just there because the disk space to hold them is small these days compare to drive sizes, and they allow Windows to silently and quickly grab files it needs. The best example is when you install a new device. Normally Windows would ask you for the installation CD in order to get the drivers needed for that device. With the I386 folders already on your machine, Windows can simply get what it needs from there. Presumably it first checks the ServicePackFiles\I386 folder for updated files and if none are found it looks in the original I386 folder.

You can delete it, just be prepared to need to insert your original installation CD if Windows ever needs it, as well as an SP2 CD if you have one.

The good news is that like the I386 folder, you can move your ServicePackFiles instead of deleting it. You just need to change a registry setting to do so.

Using Registry Editor, locate the key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\SourcePath. Here's mine right now:



Here you can see that I've altered the SourcePath setting to control where my I386 folder lives (I've placed it on a server named "freenas" on my network in a shared "notenmax", and in a folder "\machine_specific\leo\i386" - note that the i386 portion isn't specified in the registry).

We can make a similar change for the ServicePackFiles by changing the ServicePackCachePath and ServicePackSourcePath entries. Here's mine after making that change:



Here you can see that I've told Windows to find the service pack files out on that other server on my network. After copying the contents of the folder to that location on that server, I can now safely delete ServicePackFiles on my machine.