Hello,

Okay, 4.0.30319.34209 is .NET 4.5.2 and so you expect a return value of "0" for your $NET_FRAMEWORK_40$ check, correct?

But .NET 4.5 "replaces" .NET 4.0 so a return value of "1" makes sense here (IMO). When you install .NET 4.5 your .NET 4.0 assemblies in the \Windows\.NET Framework\V4.0.30319 are overwritten with a new set of assemblies (from the 4.5.51209 Framework).

Friedrich