Как проверить, установлен Adobe Acrobat x pro или нет? - PullRequest
0 голосов
/ 27 января 2012

Как проверить Adobe Acrobat x pro установлен или нет.Следующий код работает нормально в Adobe Reader 10 и более ранних версиях , но не работает в Adobe Acrobat x pro . Как с этим справиться?

    public static bool IsAcrobatReaderInstalled(ref string ErrorMsg)
    {

        try
        {
            RegistryKey _mainKey = Registry.CurrentUser;
            _mainKey = _mainKey.OpenSubKey(@"Software\Adobe\Acrobat Reader");
            if (_mainKey == null)
            {
                _mainKey = Registry.LocalMachine;
                _mainKey = _mainKey.OpenSubKey(@"Software\Adobe\Acrobat Reader");
                if (_mainKey == null)
                {
                    ErrorMsg = "Please Install Adobe Reader And Continue !!";

                }
                else
                {
                    return true;
                }
                return false;
            }               
            return true;
        }
        catch
        {                
            return false;
        }
    }

Regard

Anbu

...