Technisches‎ > ‎

How to check if .net Framework 3.5 is installed

public static bool IsDotNetFramework3_5Installed()

{

    RegistryKey rkBase = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, string.Empty);

    if (rkBase != null)

    {

        RegistryKey rkSub = rkBase.OpenSubKey("Software\\Microsoft\\NET Framework Setup\\NDP\\v3.5");

        if (rkSub != null)

            return true;

    }

    return false;

}

Comments