配置为自动在VS 2010中安装项目安装.NET 4框架框架、项目、VS、NET

2023-09-06 18:53:30 作者:不装逼我们还是好朋友

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

VS2010安装过程中NET4.0安装报错

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