Checking if a Program is installed

  • Thread starter Thread starter Ferdinand Zaubzer
  • Start date Start date
F

Ferdinand Zaubzer

I have the following Problem:
I am writing a C# Software that should access Microsoft Outlook and
Adobe Indesign through interop.
Now those two applications are not installed on every computer in the
company so, on those computers without those applications the features
using Outlook and Indesign should be disabled.
How can I check if the applications are installed before instanciating
application objects?
I tried to simply instanciate an Outlook Application Object on a
computer without Outlook but no Exception was thrown. It simply was an
indefinitely blocking method call.
Any suggestions?

Thanks Ferdinand
 
Ferdinand Zaubzer napisał(a):
I have the following Problem:
I am writing a C# Software that should access Microsoft Outlook and
Adobe Indesign through interop.
Now those two applications are not installed on every computer in the
company so, on those computers without those applications the features
using Outlook and Indesign should be disabled.
How can I check if the applications are installed before instanciating
application objects?
I tried to simply instanciate an Outlook Application Object on a
computer without Outlook but no Exception was thrown. It simply was an
indefinitely blocking method call.
Any suggestions?

Thanks Ferdinand


check if files/dirs/reg entries exists. in future always use windows
installer - build your setup projects in visual studio.

fpl.
 
Back
Top