配置为自动在VS 2010中安装项目安装.NET 4框架 [英] Configuration to Automatically Install .NET 4 Framework in VS 2010 Setup Project
问题描述
<一个href="http://stackoverflow.com/questions/6090913/make-an-installation-program-for-c-sharp-applications-and-include-net-framework">I知道如何包括.NET Framework 4中作为一个依赖在Visual Studio 2010年。不过我的安装程序安装项目,有没有配置设置,使安装程序检查,如果依赖可用,然后安装.NET 4机器上时,它不是?
目前,它是所有包含在一个单独的文件夹.NET Framework 4的安装程序中的释放输出文件夹。
更新:
- 在我有.NET Framework 4的设置为启动条件。
- 在我有.NET Framework 4的设置为precondition。
- 有一件事我注意到,在启动条件窗口,我不能删除当前的.NET Framework启动条件,并选择添加.NET框架启动条件是灰色的。
您需要另外添加一个启动条件,以使一个pre-必要的(如你的链接描述):
http://msdn.microsoft.com/en-us/library/ xxyh2e6a.aspx
I know how to include the .NET Framework 4 as a dependency to my installer Setup Project in Visual Studio 2010. However, is there a configuration to set to make the installer check if the dependency is available, and then install .NET 4 on the machine when it isn't?
At the moment all it does is include the .NET Framework 4 installer in a separate folder in the "Release" output folder.
UPDATE:
- I do have the .NET Framework 4 set as a launch condition.
- I do have the .NET Framework 4 set as a precondition.
- One thing I notice, in the launch conditions window, I cannot delete the current .NET Framework launch condition, and the option "Add .NET Framework Launch Condition" is greyed out.
You need to add an launch condition in addition to making a pre-requisite (as described in your link):
http://msdn.microsoft.com/en-us/library/xxyh2e6a.aspx
这篇关于配置为自动在VS 2010中安装项目安装.NET 4框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!