private void button
{
if (checkAdobeReader() == true)
{
MessageBox
}
else
{
MessageBox
}
}
/// <summary>
/// 確認是否有安裝 Adobe Reader
/// </summary>
/// <returns>true: 有安裝
private bool checkAdobeReader()
{
Microsoft
foreach (string subKeyName in uninstallNode
{
Microsoft
object displayName = subKey
if (displayName != null)
{
if (displayName
{
return true;
// MessageBox
}
}
}
return false;
}
From:http://tw.wingwit.com/Article/program/net/201311/13109.html