怎样用C#提取本机防火墙本号和安装的杀毒软件的版本号? 谢谢

怎样用C#提取本机防火墙本号和安装的杀毒软件的版本号?
谢谢

从注册表localmachine\\software\\microsoft\\windows\\currentversion\\uninstall获得杀毒软件和安装路径
用 GetFileVersionInfo 得到版本,这个API的用法:
https://msdn.microsoft.com/zh-cn/library/aa288474(VS.71).aspx

通过WMI方式获取杀毒软件等信息
http://stackoverflow.com/questions/9939648/wmi-wql-queries-to-fetch-antivirus-information

参考:
http://blogs.msdn.com/b/alejacma/archive/2008/05/12/how-to-get-antivirus-information-with-wmi-vbscript.aspx
VBS的稍微修改下就可以了。