I am trying to detect whether or not the .Net framework is installed on the client's computer before I install my application. If it isn't I include the installation file for it execute it.
I have the following code in my chain:
<ExePackage Id="Net45" Name="Microsoft .NET Framework 4.5.1 Setup" Cache="no" Compressed="yes" PerMachine="yes" Permanent="yes" Vital="yes"
SourceFile="F:\Net Framework Install.exe"
InstallCondition="NOT(Installed OR NETFRAMEWORK45)" />
And I also declare the following fragment:
<Fragment Id="InstallConditionChecks">
<PropertyRef Id="NETFRAMEWORK45"/>
</Fragment>
Finally, I believe I am referencing all of the right wix libraries needed to detect the .net installtion:
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
The issue is thet even though I have a test machine that definitely has the .Net framework 4.5 installed, the installer still tries to install it (which leads to the .net installer trying to repair the installtion).
Am I doing something wrong here?