码迷,mamicode.com
首页 > Windows程序 > 详细

根据注册表判断是否已经安装了WINRAR

时间:2015-02-05 15:01:09      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:注册表   winform   winrar   

staticpublic bool ExistsWINRAR()
{
    try
    {
        RegistryKey the_Reg = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Win11RAR.exe");
        return!string.IsNullOrEmpty(the_Reg.GetValue("").ToString());
    }
    catch
    {
        returnfalse;
    }
}


根据注册表判断是否已经安装了WINRAR

标签:注册表   winform   winrar   

原文地址:http://blog.csdn.net/chao88552828/article/details/43527655

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!