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.