#include <stdio.h>
#include <windows.h>
#include <stdlib.h>
int main(void)
{
LPSTR regeditStr = "SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v3.5";
HKEY hKey;
if(ERROR_SUCCESS == RegOpenKeyEx(HKEY_LOCAL_MACHINE,regeditStr,0,KEY_ALL_ACCESS,&hKey))
{
RegCloseKey(hKey);
printf("已经安装.net3.5\n");
}
else
{
printf("未安装.net3.5\n");
}
system("pause");
return 0;
}
C语言检测是否已安装.NET Framework v3.5
最新推荐文章于 2023-03-31 18:37:09 发布