Why does my .NET 4 application know .NET 4 is not installed

This is a pretty well kept secret. It will happen when you target .NET 4 and the user runs the app when .NET 4 isn’t installed. Or when you target an earlier version and run the app on Windows 8. The user will see this dialog:

enter image description here

A bit too gobbledegooky maybe but nice nonetheless. It is described well in this blog post.

Do keep in mind that .NET 4 has a minimum Windows version and service pack requirement. Minimums are XP SP3, Vista SP1, Win7 RTM. So this is not a magic solution to getting the right service pack installed.

Leave a Comment