using namespage 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(path + database.Name + ".pdf");
}
}
else
{
System.Windows.MessageBox.Show("Please install acrobat reader for viewing PDF", "Information Message", MessageBoxButton.OK, MessageBoxImage.Information);
}