Look at HKLMSOFTWAREMicrosoftNET Framework SetupNDPv3.5
. One of these must be true:
- The
Version
value in that key should be 3.5.30729.01
- Or the
SP
value in the same key should be 1
In C# (taken from the first comment), you could do something along these lines:
const string name = @"SOFTWAREMicrosoftNET Framework SetupNDPv3.5";
RegistryKey subKey = Registry.LocalMachine.OpenSubKey(name);
var version = subKey.GetValue("Version").ToString();
var servicePack = subKey.GetValue("SP").ToString();
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…