Visual Studio 2010 集成 SP1 补丁 制作 Visual Studio 2010 Service Pack 1 完整版安装光盘的方法
Now that Visual Studio 2010 SP1 has been released, administrators and developers may wish to install both RTM and SP1 together for a seamless experience. With the release of VS2010 RTM we already published the Visual Studio Administrator Guide that documents a lot of the instructions I’ll utilize below. I encourage you to review that before proceeding with the following instructions, particularly how to avoid restarts during setup by pre-installing certain packages like Windows Installer 4.5 and .NET Framework 4.0.
How to: Create and run an unattended Visual Studio with SP1 setup
You’ll create a distribution point that will contain both Visual Studio 2010 RTM and SP1. This will work for existing installations of VS 2010 since setup will simply repair the product if it’s already installed. This has the added benefit that if any files are missing from the target machine, they should be reinstalled without a prompt for source during the SP1 install.
Creating a network or local image
First you’ll be creating copies of the Visual Studio 2010 RTM and SP1 installations that you can share out or install locally.
- Create a network or local image of Visual Studio setup as documented in How to: Create and Run an Unattended Visual Studio Setup.
- You do not need to pre-populate the product key, but the developer will be prompted for it when first starting Visual Studio. Pre-populating the product key is recommended for administrators deploying to multiple machines through volume licensing.
 - You do not need to create an unattend.ini file if you want to install all features. Running setup.exe /q /norestart will install all features.
 - If you do want to create an unattend.ini file, run setup\setup.exe /createunattend <drive>:\VS2010\unattend.ini and not setup.exe in the root. You should run this on the same operating system platform and architecture that you want to target.
 - Creating the network or local image for Visual Studio 2010 documentation is also optional. SP1 will upgrade the Help Viewerregardless.
 
 - Create a subdirectory under <drive>:\VS2010 or wherever you created the image from step 1 named “SP1”.
 - Download Visual Studio 2010 Service Pack 1 and save to %TEMP% or any other location you like except in the directory you just created in step 2.
 - Open a command prompt (you can open it elevated now, or confirm the elevation prompt when requested later) and change directories to where you saved the SP1 web installer in step 3.
 - Run VS10sp1-KB983509.exe /createlayout <drive>:\VS2010\SP1 to download all packages to the directory you created in step 2.
 
Creating the unattend.bat file
Next you’ll be creating a batch install that will first install Visual Studio 2010 RTM followed by SP1. You can use any batch or scripting language you like so long as it is already supported on target machines. The example below uses the Windows batch language to make use of tokens like %~dp0 which provides the parent path to the batch script. This is handy in case you change the network or local image location in the future.
- Create a batch file named unattend.bat in the directory you created in step 1 and open it in notepad.exe or your favorite vanilla text editor.
 - (Recommended) Add a simple check to determine if the batch script is processed in an elevated process. See the attached batch script for an example.
 - Add the path to setup.exe in VS2010 with the following options.
- Full install with no unattend.ini file: 
"%~dp0setup\setup.exe" /q /norestart - Custom install with unattend.ini file: 
"%~dp0setup\setup.exe" /q /norestart /unattendfile "%~dp0unattend.ini" 
 - Full install with no unattend.ini file: 
 - (Optional) If you want to install Visual Studio 2010 documentation locally as documented in the Administrator Guide, add the command to HelpLibManager.exe next, ex: 
"%ProgramFiles%\Microsoft Help Viewer\v1.0\HelpLibManager.exe" /silent /product VS /version 100 /locale en-US /content "%ProgramData%\Microsoft\HelpLibrary" /sourceMedia "%~dp0ProductDocumentation\HelpContentSetup.msha" - Add the path to setup.exe in VS2010\SP1 with the following option.
- Restart after install (recommended): 
"%~dp0SP1\setup.exe" /q - Do not restart after install (Visual Studio or .NET Framework may not work until you do, but subsequent installs may work before rebooting): 
"%~dp0SP1\setup.exe" /q /norestart 
 - Restart after install (recommended): 
 
You might consider adding some error processing for reboot return codes after each command. See the attached batch script for an example.
Running unattended setup
If you plan on deploying Visual Studio 2010 with SP1 over the network, you can share out the location you created above, ex: <drive>:\VS2010. As noted in the Administrator Guide, spaces in the share path may cause setup to fail so its best you avoid using spaces.
Since the batch file already passes the right options to the installers, the deployment scripts or developers can execute unattend.bat in an elevated command prompt directly.
How to: Deploy Visual Studio with SP1 using Microsoft System Configuration Manager (SCCM)
You’ll use the distribution point you created above to create or modify a package for SCCM to install Visual Studio 2010 RTM and SP1. You’ll follow the process documented in How to: Deploy Visual Studio Using Microsoft System Configuration Manager (SCCM) and add a program to the package after Visual Studio.
- Create the network image as documented above in the section “Creating a network or local image”.
 - Follow the instructions in How to: Deploy Visual Studio Using Microsoft System Configuration Manager (SCCM) up till and including “Create a Program That has Setup and Installation Parameters for Visual Studio”.
 - Create a program for the Visual Studio 2010 SP1 package.
- Right-click on Programs, point to New, and then click Program.
 - On the General page, type a name for the package in the Name box, which in this example is “Visual Studio 2010 SP1 silent installation” (without quotes).
 - In the Command line box, type: SP1\setup.exe /q /norestart
 - In the Run list, select Hidden.
 - In the After running list, verify that No action required is selected. Click Next, and then on the Requirements page click Nextagain.
 - On the Environment page, in the Program can run list, select whether a user must be logged on. This will enable Run with administrative rights for the Run mode. Leave Drive mode set to Runs with UNC name, and then click Next.
 - On the Advanced page, select Suppress program notifications. Also select Run another program first and then select the “Visual Studio 2010 Package” and the “Visual Studio 2010 silent installation” Program. Click Next.
 - On the Windows Installer page, click Next.
 - Click Next and then on the MOM Maintenance Mode page click Next again.
 - To view the Summary page, click Next.
 - To finish creating the new program, click Next, and then on the Wizard Completed page click Close.
 
 - Continue the instructions in How to: Deploy Visual Studio Using Microsoft System Configuration Manager (SCCM) with “Select a Distribution Point”.
 
The documentation cited above from the Administrators Guide has a number of help links to more information about Active Directory and SCCM.
PS:
不得不说现在 Visual Studio 2010 已经相当老旧,今年的 Visual Studio 2017 发布已久,早已迭代了好几个版本。
但有些情况下,还是需要用到 Visual Studio 2010 做开发,这是不得已的事情。
所以每次在新系统上安装 Visual Studio 2010 完毕后,还要再装载 SP1 ISO 镜像并且安装。
这很麻烦,网上又没有集成版的安装包,那到底能不能两次安装合并为一次,并且做到无人值守安装呢,答案是可以的。
事实上,我更 倾向/喜欢 用 Visual Studio 2017 做开发,而且是越新越好。
嗯,我有强迫症...
Now that Visual Studio 2010 SP1 has been released, administrators and developers may wish to install both RTM and SP1 together for a seamless experience. With the release of VS2010 RTM we already published the Visual Studio Administrator Guide that documents a lot of the instructions I’ll utilize below. I encourage you to review that before proceeding with the following instructions, particularly how to avoid restarts during setup by pre-installing certain packages like Windows Installer 4.5 and .NET Framework 4.0.
How to: Create and run an unattended Visual Studio with SP1 setup
You’ll create a distribution point that will contain both Visual Studio 2010 RTM and SP1. This will work for existing installations of VS 2010 since setup will simply repair the product if it’s already installed. This has the added benefit that if any files are missing from the target machine, they should be reinstalled without a prompt for source during the SP1 install.
Creating a network or local image
First you’ll be creating copies of the Visual Studio 2010 RTM and SP1 installations that you can share out or install locally.
- Create a network or local image of Visual Studio setup as documented in How to: Create and Run an Unattended Visual Studio Setup.
- You do not need to pre-populate the product key, but the developer will be prompted for it when first starting Visual Studio. Pre-populating the product key is recommended for administrators deploying to multiple machines through volume licensing.
 - You do not need to create an unattend.ini file if you want to install all features. Running setup.exe /q /norestart will install all features.
 - If you do want to create an unattend.ini file, run setup\setup.exe /createunattend <drive>:\VS2010\unattend.ini and not setup.exe in the root. You should run this on the same operating system platform and architecture that you want to target.
 - Creating the network or local image for Visual Studio 2010 documentation is also optional. SP1 will upgrade the Help Viewerregardless.
 
 - Create a subdirectory under <drive>:\VS2010 or wherever you created the image from step 1 named “SP1”.
 - Download Visual Studio 2010 Service Pack 1 and save to %TEMP% or any other location you like except in the directory you just created in step 2.
 - Open a command prompt (you can open it elevated now, or confirm the elevation prompt when requested later) and change directories to where you saved the SP1 web installer in step 3.
 - Run VS10sp1-KB983509.exe /createlayout <drive>:\VS2010\SP1 to download all packages to the directory you created in step 2.
 
Creating the unattend.bat file
Next you’ll be creating a batch install that will first install Visual Studio 2010 RTM followed by SP1. You can use any batch or scripting language you like so long as it is already supported on target machines. The example below uses the Windows batch language to make use of tokens like %~dp0 which provides the parent path to the batch script. This is handy in case you change the network or local image location in the future.
- Create a batch file named unattend.bat in the directory you created in step 1 and open it in notepad.exe or your favorite vanilla text editor.
 - (Recommended) Add a simple check to determine if the batch script is processed in an elevated process. See the attached batch script for an example.
 - Add the path to setup.exe in VS2010 with the following options.
- Full install with no unattend.ini file: 
"%~dp0setup\setup.exe" /q /norestart - Custom install with unattend.ini file: 
"%~dp0setup\setup.exe" /q /norestart /unattendfile "%~dp0unattend.ini" 
 - Full install with no unattend.ini file: 
 - (Optional) If you want to install Visual Studio 2010 documentation locally as documented in the Administrator Guide, add the command to HelpLibManager.exe next, ex: 
"%ProgramFiles%\Microsoft Help Viewer\v1.0\HelpLibManager.exe" /silent /product VS /version 100 /locale en-US /content "%ProgramData%\Microsoft\HelpLibrary" /sourceMedia "%~dp0ProductDocumentation\HelpContentSetup.msha" - Add the path to setup.exe in VS2010\SP1 with the following option.
- Restart after install (recommended): 
"%~dp0SP1\setup.exe" /q - Do not restart after install (Visual Studio or .NET Framework may not work until you do, but subsequent installs may work before rebooting): 
"%~dp0SP1\setup.exe" /q /norestart 
 - Restart after install (recommended): 
 
You might consider adding some error processing for reboot return codes after each command. See the attached batch script for an example.
Running unattended setup
If you plan on deploying Visual Studio 2010 with SP1 over the network, you can share out the location you created above, ex: <drive>:\VS2010. As noted in the Administrator Guide, spaces in the share path may cause setup to fail so its best you avoid using spaces.
Since the batch file already passes the right options to the installers, the deployment scripts or developers can execute unattend.bat in an elevated command prompt directly.
How to: Deploy Visual Studio with SP1 using Microsoft System Configuration Manager (SCCM)
You’ll use the distribution point you created above to create or modify a package for SCCM to install Visual Studio 2010 RTM and SP1. You’ll follow the process documented in How to: Deploy Visual Studio Using Microsoft System Configuration Manager (SCCM) and add a program to the package after Visual Studio.
- Create the network image as documented above in the section “Creating a network or local image”.
 - Follow the instructions in How to: Deploy Visual Studio Using Microsoft System Configuration Manager (SCCM) up till and including “Create a Program That has Setup and Installation Parameters for Visual Studio”.
 - Create a program for the Visual Studio 2010 SP1 package.
- Right-click on Programs, point to New, and then click Program.
 - On the General page, type a name for the package in the Name box, which in this example is “Visual Studio 2010 SP1 silent installation” (without quotes).
 - In the Command line box, type: SP1\setup.exe /q /norestart
 - In the Run list, select Hidden.
 - In the After running list, verify that No action required is selected. Click Next, and then on the Requirements page click Nextagain.
 - On the Environment page, in the Program can run list, select whether a user must be logged on. This will enable Run with administrative rights for the Run mode. Leave Drive mode set to Runs with UNC name, and then click Next.
 - On the Advanced page, select Suppress program notifications. Also select Run another program first and then select the “Visual Studio 2010 Package” and the “Visual Studio 2010 silent installation” Program. Click Next.
 - On the Windows Installer page, click Next.
 - Click Next and then on the MOM Maintenance Mode page click Next again.
 - To view the Summary page, click Next.
 - To finish creating the new program, click Next, and then on the Wizard Completed page click Close.
 
 - Continue the instructions in How to: Deploy Visual Studio Using Microsoft System Configuration Manager (SCCM) with “Select a Distribution Point”.
 
The documentation cited above from the Administrators Guide has a number of help links to more information about Active Directory and SCCM.
Visual Studio 2010 集成 SP1 补丁 制作 Visual Studio 2010 Service Pack 1 完整版安装光盘的方法的更多相关文章
- 【福利】FL Studio 20 汉化补丁包 _FL Studio 20 汉化包下载
		
我这两天在网上搜索FL Studio 20汉化包,找了半天也没有找到真正的汉化包,不过好在功夫不负有心人,让我找到了一个不错的FL Studio 20汉化网站,里面提供了FL Studio 20汉化包 ...
 - Visual Studio 2010 SP1 中文升级补丁ISO完整版下载 (含多国语言)
		
最近事情比较多,差点忘记了这个VS2010 SP1的升级补丁更新了,程序员们赶快更新吧!这次发布的SP1包含了下列语言:英文,简体中文,繁体中文,法语,德语,印度语,日语,韩语,俄语以及西班牙语. V ...
 - DotNetBar for Windows Forms 12.9.0.0_冰河之刃重打包版及制作Visual Studio C#项目模板文件详解
		
关于 DotNetBar for Windows Forms 12.9.0.0_冰河之刃重打包版 --------------------11.8.0.8_冰河之刃重打包版-------------- ...
 - 解决 “无法安装 Visual Studio 2010 Service Pack 1,因为此计算机的状态不支持”
		
http://blog.csdn.net/davidhsing/article/details/8762621 无法安装Microsoft visual studio 2010 service pac ...
 - 制作Visual Studio 2019 (VS 2019) 离线安装包
		
与制作Visual Studio 2017的离线安装包(https://www.cnblogs.com/danzhang/p/6534341.html)类似,可以使用--layout的参数在安装前先下 ...
 - VS2010 MFC中制作Visual Studio风格的停靠侧栏窗口(CDockablePane里嵌套FormView表单视图)
		
VS2010 MFC中制作Visual Studio风格的停靠侧栏窗口(CDockablePane里嵌套FormView表单视图) 1. 在资源窗口里新建一个FormView的Dialog,修改ID为 ...
 - Visual Basic 2012 借助DataGridView控件将Excel 2010数据导入到SQL server 2012
		
(注:注释的颜色原本为绿色,在这里变为黑色,有点不便,但不会造成阅读影响.放入Visual Basic2012代码编辑器后会还原成绿色.) 摘 要:DataGridView控件作为数据传输的中介,只 ...
 - Microsoft Visual Studio 2008 未能正确加载包“Visual Web Developer HTML Source Editor Package” | “Visual Studio HTM Editor Package”
		
在安装Microsoft Visual Studio 2008 后,如果Visual Studio 2008的语言版本与系统不一致时,比如:在Windows 7 English System 安装Vi ...
 - Visual Studio 2015和.Net 2015 预览版在线安装和ISO镜像安装光盘下载
		
微软刚刚宣布了 Visual Studio 2015和.Net 2015 预览版,并同时提供了下载. 微软在纽约正进行中的#Connect# 全球开发者在线大会上宣布了Visual Studio 20 ...
 
随机推荐
- __x__(12)0906第三天__<meta>标签
			
<meta name=" " content=" " />标签常用功能: 指定浏览器对当前页面的字符集: <!doctype html> ...
 - CSS3_文本样式
			
1. 文字阴影 text-shadow 使用: text-shadow: 水平方向偏移量 垂直方向偏移量 模糊程度 颜色; #box { text-shadow: 10px 1 ...
 - Gym 101606 - A/B/C/D/E/F/G/H/I/J/K/L - (Undone)
			
链接:https://codeforces.com/gym/101606 A - Alien Sunset 暴力枚举小时即可. #include<bits/stdc++.h> using ...
 - 【Python基础】lpthw - Exercise 43 基本的面向对象分析和设计
			
1. A game from sys import exit from random import randint from textwrap import dedent # 使可以使用三引号型的字符 ...
 - 编写一篇博文介绍COOKIE和Session的原理及异同
			
一.什么是cookie 1.概念 Cookie是存储在客户机的文本文件,它们保存了大量轨迹信息.在servlet技术基础上,JSP显然能够提供对HTTP cookie的支持. Cookie 是在 HT ...
 - webToImage (网页转图片)模块试用分享
			
模块介绍: 本模块封装了把 webview 转换成图片的功能.调用本模块的transImage接口,可把当前 webview显示的内容转换成一张图片.注意,本模块只能把当前的webview页面转换为图 ...
 - 匹配字符串中的s开头的单词,并替换
			
String s="now it's sping,but today is so cold!"; String a=s.replaceAll("s\\w+",& ...
 - Timestamp “时间戳” - 术语
			
A timestamp is a sequence of characters or encoded information identifying when a certain event occu ...
 - tensorflow 基本内容
			
tensorflow的结构 1.使用图(graphs)来表示计算任务 2.在被称之为会话(Session)的上下文(context)中执行图 3.使用tensor表示数据 4.通过变量(Variabl ...
 - 冒泡排序(JAVA实现)
			
基本思想:在要排序的一组数中,对当前还未排好序的范围内的全部数,自上而下对相邻的两个数依次进行比较和调整,让较大的数往下沉,较小的往上冒. 即:每当两相邻的数比较后发现它们的排序与排序要求相反时,就将 ...