using namespage using Microsoft.Win32;

you can check  adobe reader installed or not in your system 

RegistryKey adobe = Registry.LocalMachine.OpenSubKey(“Software”).OpenSubKey(“Adobe”);
if (adobe != null)
{
RegistryKey acroRead = adobe.OpenSubKey(“Acrobat Reader”);
if (acroRead != null)
{
Process.Start(“Enter your application name here”);
}
}
else
{
System.Windows.MessageBox.Show(“Please install acrobat reader for viewing PDF”, “Information Message”, MessageBoxButton.OK, MessageBoxImage.Information);
}

Advertisements