EnumerateInstalledRuntimes is not giving all runtimes RRS feed

  • Question

  • I am using EnumerateInstalledRuntimes to enumerate installed .NET Frameworks on win8 x64 platform.

    I am getting v2.0.50727 and v4.0.30319 but nothing for 3.0, 3.5, or 4.5 etc.   I have VS2010, VS2012 installed and expecting to have all the frameworks. Any help?

    CComPtr<ICLRMetaHost> pICLRMetaHost;

    HRESULT hr = ::CLRCreateInstance(CLSID_CLRMetaHost, IID_ICLRMetaHost, (LPVOID*)&pICLRMetaHost);

    if(FAILED(hr)) throw_com_error(hr);

    CComPtr<IEnumUnknown> pIEnumUnknown;

    hr = pICLRMetaHost->EnumerateInstalledRuntimes(&pIEnumUnknown);

    Friday, August 30, 2013 9:33 PM