For .NET 3.5 in Wix, I was able to use this [NETFRAMEWORK35INSTALLROOTDIR] to get the path to the 3.5 root directory, so I could do something like the following…
[NETFRAMEWORK35INSTALLROOTDIR]\aspnet_iapi.dll
I am trying to do something similar in but pointing to the .NET 4.0 directory. I am trying to do wildcard mapping. Here is the WIX Web Application Extension element.
<iis:WebApplicationExtension CheckPath="no"
Script="yes"
Executable="[NETFRAMEWORK40INSTALLROOTDIR]aspnet_isapi.dll"
Verbs="GET,HEAD,POST DELETE PUT"/>
The problem is that in IIS 6 the wildcard path is always simply “aspnet_isapi.dll”, so obviously the framework root variable isn’t working.
Is there something I am doing wrong or is there another way to reliably get the .net 4.0 root directory? If it matters, I am using WIX 3.5.
The answer lies in the documentation for the WixNetFxExtension:
There are also separate properties for the client profile: