vs express 单独离线包下载,离线安装 Visual Studio Express 而不下载整个镜像文件的方法...

离线安装 Visual Studio Express 而不下载整个镜像文件的方法

       *原文地址: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.

 

posted on 2011-11-03 17:30 he69 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/he69/archive/2011/11/03/2234806.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值