制作集成SP1的Visual Studio 2005

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



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.


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.




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的文件.



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

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



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




Visual Studio 2005 SP1集成(整理前辈版本)

相信安装过Visual Studio 2005的人都知道,本来安装它就是一个漫长的过程,可是微软推出其SP1补丁更是不输于它。我曾经为了安装这两个玩意,一个下午就这样浪费掉了,简直就是时间杀手。好在H...
  • liu_thunders
  • liu_thunders
  • 2007年08月19日 10:55
  • 8277

安装Visual Studio 2005 SP1--极其惨烈的人生体验

今天在微软的网站上面看到了Microsoft® Visual Studio® 2005 Team Suite Service Pack 1 在花了好几个小时极其痛苦的安装经验后,将需要注意的地方写下来...
  • downmoon
  • downmoon
  • 2007年03月01日 13:40
  • 23920

Visual Studio 2005 SP1 Update for Windows Vista发布了

  • ATField
  • ATField
  • 2007年03月11日 21:23
  • 5378

正式版的 Visual Studio 2005 Service Pack 1 Update for Windows Vista 终于发布!

等了很久,Visual Studio 2005 Service Pack 1 Update for Windows Vista 终于发布了,加上前段时间发布的 SQL Server 2005 Serv...
  • y97523szb
  • y97523szb
  • 2007年03月08日 19:02
  • 2437

在windows 7 下安装vs2005.打开vs2005的时候老提示要“运行vs2005sp1 建议使用管理员权限”

解决办法:        进入到VS2005的安装目录,找到devenv.exe文件,右击属性,选择“兼容性”,在“兼容模式”中勾上“用兼容模式运行这个程序:”,同时在下拉框里选择“Windows ...
  • ybhjx
  • ybhjx
  • 2016年02月19日 10:44
  • 769

loadRunner:microsoft visual c++ 2005 sp1运行时组件安装不成功,这是什么情况

安装loadRunner时,提示缺少microsoft visual c++ 2005 sp1运行时组件, 然后下载之后,还是提示: microsoft visual c++ 2005 sp1运行时组...
  • yuxiangaaaaa
  • yuxiangaaaaa
  • 2016年12月09日 12:11
  • 4480

解决“要运行Visual Studio 2005 sp1,建议使用管理员权限”的问题

找到该应用程序C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe 在该文件上右击, 选择"兼容性疑难解答" ...
  • jearmy
  • jearmy
  • 2015年04月04日 14:39
  • 418

制作集成SP1的Visual Studio 2005

  • JefferyLee
  • JefferyLee
  • 2007年01月16日 15:22
  • 3278

Microsoft Visual Studio 2005 Tools for the 2007 Microsoft Office System 正式版本下载

 [推荐]Microsoft Visual Studio 2005 Tools for the 2007 Microsoft Office System 正式版本下载这就是VSTO,我找了很久,好多V...
  • fan_jinyong
  • fan_jinyong
  • 2006年12月10日 20:41
  • 1946

在Visual Studio 2005下编写DLL程序

  • wangjingfei
  • wangjingfei
  • 2009年10月16日 16:43
  • 4890
您举报文章: 制作集成SP1的Visual Studio 2005