I tried to construct a working example of a WiX 3.6 installation script. We currently use WiX 3.5 and now we would like to begin installing the .NET 4 Client Profile framewo
You need to create a separate WiX bootstrapper project. See Building Installation Package Bundles in the WiX 3.6 documentation.
Heath Stewart's Introducing Managed Bootstrapper Applications provides a basic example in his blog.
Once you have your bootstrapper, all you need to do is:
Add a reference to the file WixNetFxExtension.dll
into your bootstrapper / managed bootstrapper application project.
Add the following as the first item in your chain.
<PackageGroupRef Id="NetFx40Web"/>
That's it. Further information and options are in the WixNetfxExtension documentation.