I\'d like to validate both .NET framework 4.0 and 4.5 should be installed at server before proceeding a installation. Hence I used the following snippet, but I don\'t know a
The NETFRAMEWORK45
property can be used the same as the NETFRAMEWORK40FULL
. Note there is no "client" or "full" framework for The .NET Framework v4.5. There is just one. So the following code should do what you want:
Note that .NET Framework v4.5 is an in place upgrade of .NET Framework 4.0 so checking for both could get you into a situation where you'll never satisfy both conditions. You might want to just check that .NET Framework v4.0 or .NET Framework v4.5 is installed. That condition would look more like: