Following code checks if Microsoft Excel is installed into your computer.
Dim officeType1 As Type = Type.GetTypeFromProgID("Excel.Application")
If officeType1 Is Nothing Then
MessageBox.Show("Microsoft Excel is not installed!")
End If
Question: I need a code which checks if "Microsoft .Net Framework 4" is installed or not?