您的位置:首页 > 其它

Windows Installer 的一些问题

2007-11-02 15:10 155 查看
When a Windows Installer Patch is installed, it is cached on the local system. As a result, when we add some new feature of the product (e.g. Visual Studio 2005), the content of the cached patch (e.g. the Service Pack 1) will be available and installed.

The Patch Cache and Freeing Space
http://blogs.msdn.com/heaths/archive/2007/01/17/the-patch-cache-and-freeing-space.aspx

我们来看看Visual Studio 2005 SP1安装的时候到底做了什么。

解压到%temp%\临时目录(对于我的Visual Studio 2005 Team Suite,这需要C:\Documents and Settings\Administrator\Local Settings\Temp下面1个多GB的空间)
把自己复制到%temp%下(400多MB)
把自己复制到%windows%\Installer下(C:\Windows Installer下400多MB)
解压到%windows%\Installer\PatchCache(1个多GB)

安装过程中还会生成临时文件(C:\Config.msi和%temp%下面的日志文件)。也就是说,要成功安装Visual Studio 2005 SP1的话,所需空闲空间大大超出成功安装Visual Studio 2005所需的空间。在SP1的下载页面,列出的空间要求是6.2GB(这还是在没有安装多个Visual Studio 产品的情况下)。
为了节约系统盘空间,我以前采取的措施包括

安装应用程序时不安装到系统盘
将用户的“我的文档”目录,%temp%目录和IE的缓存移动到非系统盘
运行磁盘清理,压缩旧文件
将Windows的磁盘交换文件移动到非系统盘

但是这一次我不得不压缩%windows%\Installer目录才可以正常安装Visual Studio 2005 SP1。
考虑到Windows Installer会在%windows%\Installer目录缓存安装文件,安装一些很大的应用程序也会同样占用系统盘的空间。所以在给计算机分区的时候,尽量给系统盘较大的空间。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: