关于Vista中的WinSXS文件夹

    之前发现Vista下的WinSXS文件夹已经超过8GB,严重后果是导致系统盘空间降至1GB,对于像我这样喜欢尝试新软件的人来说,简直就是噩梦。但在经过一番研究之后,还是决定原封不动的保留她。

    写这篇文件还有一个目的就是提醒想使用Vista的朋友,系统分区一定要大。不装游戏,只装Office以及一些其他的常用软件在系统盘,建议30GB以上。

#1 WinSXS文件夹的作用
下面的文章对WinSXS文件夹做了分析:
The Secret Of Vista's Winsxs Folder
http://www.winvistaclub.com/f16.html
==========
The Winsxs folder, stores multiple copies of dll's in order to let multiple applications run in Windows without any compatibility problem. If you browse inside, you will see what look like a lot of duplicate dlls, each having the same name. These are actually, different versions of the same files which are being stored; as different programs may require different versions. In short, Winsxs, which stands for 'Windows Side By Side', is Vista's native assembly cache. Libraries which are being by multiple applications are stored there. This feature was first introduced, in Windows ME and was considered as Microsoft's solution to the so-called 'dll hell' issues that plagued Windows 9x.

In Vista, there isn't a 'dllcache' folder and nor can you find the 'i386' folder, where the system caches (like in XP) all it's source modules. It is this WinSxS folder which stores the shared components of side-by-side applications. These files can be multiple versions of the same assembly or application. Every side-by-side assembly has a unique identity. One of the attributes of the assembly identity is its version. " Side-by-side assemblies are used by the operating system as fundamental units of naming, binding, versioning, deployment, and configuration. The Winsxs folder includes all manifests, optional components and 3rd party Win32 files".
==========
简单的说,为了兼容性考虑,WinSXS文件夹存储了许多不同老版本以及不同语言版本的DLL文件以及其他必要文件。相当于是说Vista办含了Windows XP/me/98/95/...

#2 关于WinSXS文件夹的讨论
综合一下,有以下几点:
1.全新安装的Vista,WinSXS文件夹会有3-5GB不等,取决于Vista的版本
2.该文件夹会随着应用程序/更新的安装和卸载而随之增大和减小
3.主要是为了解决兼容性问题
4.该文件夹也包含了一些系统文件的备份,当我们使用SFC /scannow命令时会用此文件夹里的备份副本替换损坏的系统文件
5.该文件夹有“自动清理”机制,能够删除旧版本的文件(前提是已经可以完全替代该旧版本文件的新文件版本)

#3 是否可以删除WinSXS文件夹下的文件
看完了#1和#2,就已经可以做出决定了。我选择:
1.不会手动删除里面的文件
2.会用官方提供的工具(如果有)

#4 如果你装了Vista SP1,可以使用一个官方的“瘦身”工具--Vsp1cln.exe
==========
You can use the Vsp1cln.exe tool to uninstall the files that are archived after you apply Windows Vista SP1. When you install Windows Vista SP1, the disk space that is used by the operating system increases. This extra disk space is used to archive files so that Windows Vista SP1 can be uninstalled if this is ever necessary. Typically, you should run the Vsp1cln.exe tool if you want to reclaim this disk space after you apply Windows Vista SP1, but only after you have decided that you do not intend to uninstall this service pack.
==========
该工具可以删除被SP1替换掉的不用的文件,可以节省几个GB的空间!
需要注意的是:
1.使用该工具后,将无法卸载SP1,所以要确保目前SP1下所有的应用程序都能够正常使用
2.该工具是个一次性的工具,只能使用一次

使用方法:
1.进入%windir%/system32,双击运行Vsp1cln.exe即可
2.一个命令提示符打开以确认该操作,输入Y后回车
3.重启计算机
4.打开一个命令提示符cmd.exe
5.依次执行下面的3组命令:
cd /d %windir%/system32/config/txr
attrib -r -s -h *
del *

更多信息:
http://support.microsoft.com/kb/949472/en-us
原文出处:
http://hi.baidu.com/robertzhao/blog/item/ea446e235ef24948925807d9.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值