制作集成SP1的Visual Studio 2005

转载 2011年01月18日 22:11:00

http://blog.csdn.net/JefferyLee/archive/2007/01/16/1484589.aspx

 

http://blogs.msdn.com/heaths/archive/2006/12/16/slipstreaming-visual-studio-2005-service-pack-1.aspx 看到整合方法如下

Slipstreaming Visual Studio 2005 Service Pack 1

Now that Visual Studio 2005 Service Pack 1 is released, some are wondering how to slipstream the patch so they can install Visual Studio 2005 with SP1 already applied. Much of this process is standard practice for Windows Installer packages.

Please note this will require a lot of disk space, as you’re unpacking around 3 GB – and more, if you add the MSDN installation, though that is not patched in this service pack – just for the product installation.

1. Install the Product

You must create an administrative image of Visual Studio 2005 in order to slipstream the service pack in that way. Installing the patch while installing the product – though a supported scenario with Windows Installer – is not supported in our patches currently because of how actions are conditioned, a more general problem I’ll discuss in a future post.

Assume D: is your CD or DVD drive letter, and //server/share is a path with space available all licensed users can access.

msiexec.exe /a D:/vs_setup.msi TARGETDIR=//server/share /L*vx install.log

2. Unpack the Patch

The patch you download for service pack 1 is a wrapper around the .msp file, so you must unpack the .msp file using the patch-standard /extract switch. Assuming you made an administrative installation of Team Suite, the main Visual Studio 2005 SP1 is used below:

VS80sp1-KB926601-X86-ENU.exe /extract “%TMP%”

3. Apply the Patch

Now that you have the .msp file extracted, you must apply it to the administrative installation from step 1.

msiexec.exe /a //server/share/vs_setup.msi /p “%TMP%/VS80sp1-KB926601-X86-ENU.msp” /L*vx patch.log

4. Installing the Patched Product

The official deployment strategy for Visual Studio 2005 network installations can be found in KB907759. Copy the contents of the CD or DVD to the same directory – like //server/share in the example above – but do not replace any files. You really don’t need to copy the CAB files in the root directory, either. All those files have been expanded into source directories. This step is to copy the bootstrap files and other required components to the installation directory. After copying is complete, run setup.exe as normal.

Notes

Because when Windows Installer installs a patch to an administrative image, the identity of the patch is essentially lost (the #transform is not persisted, which contains information about how to apply the patch) the service pack is not uninstallable when you install the slipstreamed installation you just created. The entry in Add/Remove Programs (ARP) was written in lieu of having ARP discover the patch, but without an UninstallString registry value for the patch because the patch doesn’t actually exist and can’t be uninstalled.

This is also an expanded form of the installation, with all files loose in their source directory structure. If someone were to write a tool to repackage this, such a tool would have to – based on the Media table, attributes in the File table, and Word Count summary property as described in File Sequencing and How Files are Located – re-CAB some files and embed some of those CAB files back into the .msi file, then reset the administrative image bit (bit 2) in the Word Count summary property.

首先,需要大于3G的硬盘空间(解压VS2005用,实际感觉大概需要4~5G,因为后面应用补丁的时候还会占用空间),这个补丁只会应用到VS2005上,和我们的MSND是没有什么关系的.

1.解压VS2005.

首先需要把我们VS2005安装光盘内的安装文件解压在我们的硬盘上.使用如下命令:

msiexec.exe /a G:/VS/vs_setup.msi TARGETDIR=D:/VSSETUP /L*vx install.log

其中G:/VS/vs_setup.msi  G:是我的光驱盘符,这个目录是我光盘的VS2005安装文件的路径.

TARGETDIR=D:/VSSETUP 这个是指定你要解压到的位置,我指定了D:/VSSETUP 这个目录,大概5分钟左右,解压出了3.11G的文件.

2.释放补丁包.

把我们下载到的补丁文件解压出来.使用如下命令:

VS80sp1-KB926604-X86-CHS.exe /extract "E:/vspatch/"

E:/vspatch/ 是我解压到的目录.解压出一个VS80sp1-KB926604-X86-CHS.msp的文件,注意,是以msp为后缀名.

3.应用补丁.

把我们解压出来的两个文件进行整合,使用如下命令:

msiexec.exe /a D:/VSSETUP/vs_setup.msi /p "E:/vspatch/VS80sp1-KB926604-X86-CHS.msp" /L*vx patch.log

剩下的就是漫长的等待了,花费的时间大概和你安装好VS2005应用补丁的时间差不多吧.

打完补丁以后,把你VS安装目录(安装目录是指光盘的安装文件的目录,比如我的是G:/VS/)里的其他文件拷到D:/VSSSETUP里来了,但是,不要覆盖任何文件,还有.cab的压缩包也不用再拷了,刚才其实已经把cab里的东西在第一步的时候解压出来并应用补丁了.

现在,可以把这个应用补丁的版本重新做成一张你的VS2005(SP1)安装光盘了,下次进行VS2005的安装可省事了. 

快速安装visual studio 2005 sp1补丁(转载)

安装注意事项:1.安装时间会非常长,如果机器配置不是很高的话需要2个小时,一般的话也需要1个小时左右所以请耐心等待。2.安装前检查你的c盘是否有大于3G的空余空间,因为安装的时候会释放很多临时文件在c...

Visual Studio 2005 SP1 和 ASP.NET AJAX 1.0 RC发布

====================================================== 注:本文源代码点此下载 =============================...

win7 32位下安装visual studio 2005 sp1卡住在正在提取界面以及安装SQl server 2005 express失败

win7 32位下安装visual studio 2005 sp1卡住在正在提取界面以及安装SQl server 2005 express失败 本文记录了win7 32位下安装vs2005的...
  • shile
  • shile
  • 2016年03月08日 16:18
  • 1451

Visual studio 2005 sp1

  • 2015年01月04日 13:43
  • 431.67MB
  • 下载

用Visual Studio 2005 集成环境开发QT程序

用Visual Studio 2005 集成环境开发QT程序(Opensource qt4.5.1版)前言:Qt是一个跨平台的C++图形用户界面应用程序框架。Qt能在一下系统上运行。 →MS/Wind...
  • Augusdi
  • Augusdi
  • 2012年11月11日 16:19
  • 1736

Visual Studio 2005集成开发环境图解

  • 2009年10月04日 16:52
  • 1.62MB
  • 下载

c++学习笔记(1)——环境搭建、经典教程推荐及 Visual Studio 2005/2008中如何编译和运行C++程序

之前一直用C编程可是对C++并不了解,决定学习C++,今天是入门第一天:搭建了编译环境和写了第一个helloworld的程序 (1)使用的软件:Visual Studio 2008(中文版)。    ...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章: 制作集成SP1的Visual Studio 2005
举报原因:
原因补充:

(最多只允许输入30个字)