Returns whether .Net is installed. Also can return the latest installed version and directory of the .Net framework.
o.IsDotNet(@lcVersion,@lcPath)
Return Value
.T. or .F.
Parameters
@lcVersion
Pass in by reference to receive the version value.
@lcPath
Pass in by reference to receive the path of the .Net framework.
Remarks
Checks HKEY_LOCAL_MACHINE\Software\Microsoft\ASP.Net and the RootVersion key. Note that you must have admin rights to read this key. Another alternative where this is a problem is to look in the Windows dir and check directories for the latest version which is a lot more messy and slower.
Example
*** Is .NET installed? (any version)
? IsDotNet()
*** Retrieve latest version and path
lcFrameworkPath = ""
lcVersion = ""
? IsDotNet(@lcFrameworkPath,@lcVersion)
? lcFrameworkPath
? lcVersion
See also:
Library wwUtils | wwUtils::RegisterDotNetComponent© West Wind Technologies, 1996-2024 • Updated: 07/01/11
Comment or report problem with topic