In your Bundle.wxs file (or where ever you have the <Bundle>
defined), add this:
<bal:Condition Message="Add your message here">NETFRAMEWORK40FULL</bal:Condition>
For example, I use the following message to provide a clickable link the user can use to download the needed installer:
<?define NetFx40WebLink = http://go.microsoft.com/fwlink/?linkid=182805 ?>
<bal:Condition Message="Microsoft .NET 4 Full Framework is required. Please download and install it from <a href="$(var.NetFx40WebLink)">$(var.NetFx40WebLink)</a> then re-run this installer.">NETFRAMEWORK40FULL</bal:Condition>
And the result looks like this: