I wanted to make sure and blog this before I lost the link.

I frequently get asked how to detect whether the .NET Framework is installed and chain it into a setup as a prequisite.  The Setup.exe Bootstrapper Sample includes sample codes that shows exactly how to do this.