Check whether MSCOREE is contained in/% windir %/System32. if the DLL file exists, the system has installed the FM HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft /. under NETFramework/policy, you can check the specific FM functions installed on the machine: Public Function DoesDotNETFrameworkExist (ByVal udeVersion As DotNETFrameworkVersions) As Boolean
Dim o_blnRet As Boolean
Dim o_strRet As String
With New cRegistry
. HKey = HKEY_LOCAL_MACHINE
. KeyPath = "Software/Microsoft/. NETFramework"
If. DoesKeyExist () Then
. KeyPath = "Software/Microsoft/. NETFramework"
O_strRet = GetRegValue (. GetRegistryValue ("InstallRoot ",""))
O_blnRet = (o_strRet <> "")
If o_blnRet Then
With New cFileFuncs
Select Case udeVersion
Case dnfvV1
O_blnRet =. DoesFileExistEx (o_strRet & "v1.0.3705/mscorlib. dll ")
Case dnfvV1_1
O_blnret =. doesfileexistex (o_strret & "v1.1.4322/mscorlib. dll ")
Case dnfvvany
O_blnret =. doesfileexistex (o_strret & "v1.0.3705/mscorlib. dll ")
If o_blnret then
Else
O_blnret =. doesfileexistex (o_strret & "v1.1.4322/mscorlib. dll ")
End if
End select
End
Else
End if
Else
O_blnret = false
End if
End
Doesdotnetframeworkexist = o_blnret
End Function