Exact Duplicate:
C#: How to know whether certain Office 2003 or 2007 application is installed?
How to check if MSWord 2003 0r 2007 is installed in the system using C# code?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This code shows that a simple registry check will do the job.
Here is the code converted to C# (and slightly improved to use a
usingstatement).Note that it’s not good enough to check
C:\Program Files\Microsoft Office\for themswordEXE file, as the user might have installed it somewhere else.