.NET Framework 4.0
result = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\.NETFramework\\policy\\v4.0"); if (result == false) then Dialog.Message("提示", "请先安装.net4.0\r\n.net4.0下载地址"); Application.Exit();
SQL Server
result = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "software\\microsoft\\microsoft SQL Server"); if (result == false) then Dialog.Message("提示", "请先安装.SQL Server下载地址"); Application.Exit();
转载请注明原文地址: https://ju.6miu.com/read-1294071.html