离线安装 Visual Studio Express 而不下载整个镜像文件的方法(转载)
visual studio 2010 express 全序列号
YDK44-2WW9W-QV7PM-8P8G8-FTYDF
VC# 2010 Express: PQT8W-68YB2-MPY6C-9JV9X-42WJV
VC++ 2010 Express: 6VPJ7-H3CXH-HBTPT-X4T74-3YVY7
VWD 2010 Express: CY8XP-83P66-WCF9D-G3P42-K2VG3
VB.NET 2010 Express: 2KQT8-HV27P-GTTV9-2WBVV-M7X96
步骤 1从上面复制 14 个字符的注册密钥。
步骤 2从 Visual C++ 2010 Express Edition 的“帮助”菜单中选择“注册产品...”。
步骤 3将注册密钥粘贴到“产品注册”对话框中,然后单击“完成注册”按钮。
离线安装
*原文地址:http://vicker313.wordpress.com/2008/11/26/
*转载本文请注明出处: http://blog.renren.com/blog/bp/QmN_0yuznf。
先上翻译,原文在最后上。翻译不是一字一句来的,稍作改进,这可是纯人工劳动哦。
“Microsoft Visual Studio Experss ”(VSE速成版)是Visual studio 的免费版本,保存了几乎全部的编程功能,而体积却远远小于正式版。现在微软的官方网站上提供2008与2010版的在线安装程序,而网络上可以搜索到2005、2008与2010版本的安装程序。我们有两种方法来安装它。
第一种方法是在线安装。我们需要选择一种EXPRESS产品(如VB、C#、WEB DEVELOP)的安装启动程序,然后运行它。启动程序会自动下载所需的安装文件,然后将其安装到电脑上。当我们在另一台电脑上安装VSE的时候,启动程序将再次下载全部的安装文件。
另一种方法是离线安装。我们必须下载一个包含全部EXPRESS产品和SQL数据库的镜像文件,但是包含全部产品的镜像文件大于700MB(不能放入一张CD之中)。
如果我没有因特网,而且只想安装C#而不需要VB及其他东东。而我从来没想过下载那个1GB的庞然大物,因为我只用到它体积的10%的文件。但是现在 除了个别的产品(如VC#2005)之外,微软没有提供单个产品的离线安装文件。天无绝人之路,我们可以研究研究那个在线安装启动程序,来获得一个可以使用的离线安装包。
1.下载我们需要的EXPRESS产品的在线安装启动程序,然后用winrar来将其解压到一个文件夹中。
2.在这个文件夹中,我们找到文件“baseline.dat”,用记事本程序打开它。在记事本中,用查找功能,搜索“ [vs_setup.dll] ”。在 [vs_setup.dll] 开头下的文字块中,查找关键字“fwlink/?LinkId=”。然后复制 fwlink/?LinkId=xxxxx (xxxxx是一串数字),这其实是一个URL地址的后缀。
3.打开浏览器,在地址栏输入 go.microsoft.com/ ,接着将刚才复制的字符串粘贴到后面,使地址成为“ go.microsoft.com/fwlink/?LinkId=xxxxx ”。按下回车,浏览器将自动下载一个程序,大概在60MB左右。这其实就是我们需要的EXPRESS产品离线安装包。
4.下载了这个程序之后,我们再用winrar将其解压到另一个目录中。其中会有一个名为“vs_setup.msi ” 的文件,但我们并不能直接运行它。怎么办?先在此目录中建立一个文本文档,输入 msiexec /i vs_setup.msi vsextui=1 addlocal=all reboot=reallysuppress ,保存退出,再将这个文本文档重命名为“setup.bat”(系统隐藏扩展名的同志们可要注意了啊)。然后运行setup.bat,程序就开始安装了。
为什么不能直接运行“vs_setup.msi ”呢?正如错误提示所说,必须由安装启动程序中的“setup.exe”引导运行才可以。而命令行中的“ vsextui=1 ”,就是运行“vs_setup.msi ”的关键,这让其误以为是由“setup.exe”启动的。
然而对于VSE 2005的产品来说,步骤稍有不同。我们可以让安装启动程序和离线安装包解压到同一目录,这样直接运行“setup.exe”,就可以完成安装。
这就是离线安装 VSE 的方法,我们可以用它安装VSE中的任何产品,像Web Developer 2005, Web Developer 2008 和 C# 2008 等等。
译者注:经验证,VSE 2010版不能使用此方法。首次使用 .net 的XP系统、使用C++编程以及需要使用数据库的同志们可要注意了啊,此离线安装包只能安装 Visual Studio Experss 主程序,没有.net framework 、 Windows SDK 和 SQL 数据库 等组件。需要你多留个心眼。
好了,原文如下:
November 26, 2008
How to offline install Visual Studio Express without download the whole image file — vicker313 @ 1:46 am
Visual Studio Express (VSE) is the free version of Visual Studio, released together with Visual Studio 2005 and 2008. User can get VSE from MSDN website without any genuine checking. There are two ways in getting VSE.
The first method is web install, which the user needs download a bootstrap of a selected VSE product, run it and the bootstrap will automatically download setup files from internet and install the product into the computer. The next time user wants to install the software in another computer, the bootstrap will download the whole things again from the internet in order to perform the installation.
The other method is of course offline install, which user needs to download the whole image file from the internet, and either burn it or virtual it in order to perform the installation. However the image file consists of everything (Visual Studio Web Developer, C#, Visual Basic, SQL Server, framework and other stuffs), and making it more than 700MB (which a normal CD cannot hold).
In my scenario, I want to download Visual Studio Web Developer Express only, and will install the software in another computer without any internet connection. I don’t want to download the whole image file that I might just be using 10% of the files. There isn’t any official way to download a single product of VSE, so we need to play around with the bootstrap in order to download a workable offline installation file.
First, download your selected product bootstrap. And then we need to extract the bootstrap into a directory using some compression tool like WinRAR.
Second, we search for a file called baseline.dat inside the directory and open it with notepad or other editor. Then we search for a section called [vs_setup.dll] (it is square bracket). Under that section, you can find a URL parameter with the value of fwlink…
Third, open a browser and type in go.microsoft.com/ followed by the URL value that found in baseline.dat at the address bar (as a result your address will look like go.microsoft.com/fwlink…). It will automatically download the installation file of that product. It is usually about 50MB.
Forth, after we download the installation file, we extract the file into another directory. There will be a file called vs_setup.msi. Then we need to run a command prompt, go to that directory, and use the command below to execute the installation file.
msiexec /i vs_setup.msi vsextui=1 addlocal=all reboot=reallysuppress
If we run the file vs_setup.msi directly, there will be an error to request you to run the setup.exe file. So at the command, vsextui=1 make the installation think it is executed through a setup.exe file.
However when I try out the trick for VSE 2005 product, there is a little difference in the forth step. Instead of extract the installation file into another directory, I extract it to the same directory as I extract the bootstrap. Then I can install the product by using the setup.exe from the bootstrap.
And that’s about it in how to offline install VSE without download the image file. I have used this trick to install VSE Web Developer 2005, Web Developer 2008 and C# 2008.
To install SQL Server Express 2008, you might refer here.
离线安装 Visual Studio Express 而不下载整个镜像文件的方法(转载)的更多相关文章
- 如何离线安装Visual Studio 2017
1. 官方下载在线安装文件 vs_community.exe https://www.visualstudio.com/zh-hans/thank-you-downloading-visual-stu ...
- Visual Studio "无法查找或打开PDB文件"解决方法
1.问题: 使用C#语言时遇到的问题(C/C++类似,方法一致),我用qt和VS2013也遇到这种问题 编译链接都没问题,调试时出现以下错误提示: 2.解决方法 第一步: 第二步:[调 ...
- 如何正确并完全安装Visual Studio 2015企业版本?
http://blog.csdn.net/code_godfather/article/details/47381631 [简介] 常用网名: 猪头三 出生日期: 1981.XX.XX 个人网站: ...
- 如何正确并完全安装Visual Studio 2015企业版本[转]
http://blog.csdn.net/code_godfather/article/details/47381631 [注意事项]1> 本文描述的是: Visual Studio 2015企 ...
- Xamarin.Forms教程下载安装Visual Studio 2015
Xamarin.Forms教程下载安装Visual Studio 2015 下载安装Visual Studio 2015 Visual Studio 2015是微软提供的IDE,其中集成了Window ...
- 微软发布VSBT,无需安装Visual Studio即可实现项目编译
安装了Visual Studio的那些使用微软平台的开发者通常能够非常容易地操作自己的项目:打开解决方案,修改内容,设置好所有必须的文件以及配置后编译项目.但是在构建服务器或者持续交付系统等没有安装V ...
- Windows 7 上安装Visual Studio 2015 失败解决方案
安装之前先要看看自己的系统支不支持,具体的可以看:https://www.visualstudio.com/en-us/visual-studio-2015-system-requirements-v ...
- win10 安装visual studio 2015遇到的坑
最近win7系统不知啥原因无法访问域中的网络文件,打算升级到win10体验一下.结果发现这一路有太多的坑.首先安装win10基本上算顺利,但是当进入系统后,菜单模式对于PC的鼠标来说,用起来感觉不顺手 ...
- 安装Visual Studio的插件AnkhSvn
安装Visual Studio的插件AnkhSvn 安装AnkhSvn(VS插件).下载地址:http://download.csdn.net/detail/luqingfei/4538807 Ank ...
随机推荐
- 自定义HashMap的键
用自定义的类型作为HashMap的key,必须同时重载hashCode()和equals(),才可以实现在HashMap中的查找自定义键. 例如自定义Point类: public class Poin ...
- 淘宝H5移动端解决方案
详细:http://www.w3cplus.com/mobile/lib-flexible-for-html5-layout.html ; (function(win, lib) { var doc ...
- path的join和resolve
连接路径:path.join([path1][, path2][, ...]) path.join()方法可以连接任意多个路径字符串.要连接的多个路径可做为参数传入. path.join()方法在接边 ...
- Python自学之路——自定义简单装饰器
看了微信公众号推送的一道面试题,发现了闭包的问题,学习时间短,从来没有遇到过这种问题,研究一下. Python函数作用域 global:全局作用域 local:函数内部作用域 enclosing:函数 ...
- PHP:php遍历数组 foreach echo() list()总结
php中可以用来遍历数组的方法有很多,如有:foreach语句.list().each(),这几个也是主要的方法,现总结如下: foreach语句遍历数组 foreach语句用于循环遍历数组,每进行一 ...
- Aizu 2304 Reverse Roads(无向流)
把有向图修改成无向图,并保证每条边的流量守恒并满足有向容量(即abs(flow(u,v) - flow(v,u)) <= 1)满足限制. 得到最大流,根据残流输出答案. 因为最后少了'\n'而W ...
- 【BZOJ1064】[NOI2008] 假面舞会(图上DFS)
点此看题面 大致题意:有\(k\)种面具(\(k\)是一个未知数且\(k≥3\),每种面具可能有多个),已知戴第\(i\)种面具的人能看到第\(i+1\)种面具上的编号,特殊的,戴第\(k\)种面具的 ...
- Object.prototype.toString的应用
使用Object.prototype上的原生toString()方法判断数据类型,使用方法如下: Object.prototype.toString.call(value)1.判断基本类型: Obje ...
- 2018.5.29 Oracle连接到空闲例程
解决方法如下: 1.通过cmd命令窗启动Oracle:(最好是以管理员身份启动) C:\Users\Administrator>sqlplus /nolog SQL>conn /as sy ...
- 解决Win10桌面右键卡顿一直转圈圈的
把系统重置之后,发现在桌面点击右键时一直转圈,但是在文件夹等非桌面位置都正常.可能是我之前修改注册表添加右键选项造成的,也可能不是,因为将修改的地方删除还是没有解决问题,555. 上网搜素一波,发现大 ...