VS2008安装项目会更新Net 3.5 SP1吗?

时间:2020-03-05 19:00:11  来源:igfitidea点击:

我刚刚开始使用Net 3.5 SP1中包含的WPF WebBrowser。我建立了我的安装项目(在移至3.5 SP1之前一直在使用),并将其安装在测试计算机上,但WebBrowser不可用。

我必须怎么做才能确保setup.exe / msi组合检查并安装SP1?

解决方案

回答

在回答自己的问题的途中。双击"检测到的依赖项"中的Microsoft .net Framework,可以选择版本。

现在问题是哪个合适,3.5.30729还是3.5 SP1客户端?

编辑:3.5.30729的作品。关于两者之间的区别有什么想法吗?

编辑:双击上面的.net Framework,将.NET Framework显示为启动条件。这是我更改版本的地方。 (我要添加一个屏幕截图,但是在URL上没有一个,仅在桌面上。

回答

打开安装项目的属性,然后单击"准备工作"按钮。然后检查安装的准备工作。

许可http://img504.imageshack.us/img504/8255/prereqzs4.png

然后,我们可以定义用户如何获取准备工作。

这是框架版本信息的链接,以及Scott Hanselman博客的摘录:

Online/Download Experience
  The best way to get a user with reasonable Internet connectivity up on the 3.5 SP1 .NET Framework is with the 2.7 Meg "bootstrapper."  This will detect what they need and only download what they need. The worst-case scenario for a x86 machine is around 60 megs, as seen in the table above. 
  
  What's the "Client Profile?"
  The Client Profile is an even smaller install option for .NET 3.5 SP1 on XP. It's small 277k bootstrapper. When it's run on a Windows XP SP2 machines with no .NET Framework installed, it will download a 28 meg payload and give you a client-specific subset of .NET 3.5.  If the Client Profile bootstrapper is run on a machine with any version of .NET on it, it'll act the same as the 3.5 SP1 web installer and detect what it needs to download, then go get it.  There's more details in the Client Profile Deployment Guide.

http://www.hanselman.com/blog/CommentView.aspx?guid=af453d70-64b3-417e-9492-d115f929195d

回答

在安装项目中,添加一些启动条件。该页面向我们展示了如何:
http://jelle.druyts.net/2005/04/09/CheckingForNET11ServicePack1InAnMSI.aspx