473,408 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Checking if a Program is installed

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

Apr 4 '06 #1
1 1651
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.
Apr 6 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: GujuBoy | last post by:
i want to check to see if a certain program is installed on my windows box using python. how can i do that...(ie, i want to see if "word" is installed) please help
6
by: Juggler | last post by:
Hi all I've written a program in VB.NET that allows the user to build quotes for installing shower enclosures. As part of the program, I've included a blank Access database. I've provided them...
3
by: Mark Rae | last post by:
Hi, I've been asked to write a WinForms app which will create reports as PDF documents. The client has agreed that all desktops (WinXP Pro, 32-bit Vista Business) *will* have Adobe Acrobat...
5
by: Brian Stoop | last post by:
If .NET is not installed my console application pops up "the application failed to initialize properly" dialog. Can I programatically tell if .NET is installed, and pre-emp this message with my...
4
by: conics | last post by:
can i create a program where as, the program will check if the .net framework is installed? if it is installed it will do nothing, but if not it will install the framework. and the installation of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.