日期:2014-05-18  浏览次数:20837 次

C#怎么判断系统是否安装了WinRaR?
C#怎么判断系统是否安装了WinRaR?我是新手啊~很急在线等!!!

------解决方案--------------------
注册表:
HKEY_CLASSES_ROOT/SHELLEX/CONTEXTMENUHANDLERS/WINRAR
------解决方案--------------------
static public bool Exists()
{
RegistryKey the_Reg = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WinRAR.exe");
return !string.IsNullOrEmpty(the_Reg.GetValue("").ToString());
}