PC Review


Reply
Thread Tools Rate Thread

How to check word, excel are installed in the machine

 
 
santel
Guest
Posts: n/a
 
      22nd Nov 2007
Hi,

How to check whether the MSOffice files like word, excel, powerpoint
are installed in the machine or not? Anyone please help!

 
Reply With Quote
 
 
 
 
DeveloperX
Guest
Posts: n/a
 
      22nd Nov 2007
On 22 Nov, 13:43, santel <santel_hel...@sify.com> wrote:
> Hi,
>
> How to check whether the MSOffice files like word, excel, powerpoint
> are installed in the machine or not? Anyone please help!


There are a few ways. You could try the following:

try
{
Type officeType = Type.GetTypeFromProgID("Excel.Application");
if (officeType == null)
{
Console.WriteLine("Excel is missing");
}
else
{
Console.WriteLine("Excel is present");
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}

Or you could have a look in the registry for things like:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Excel\InstallRoot
and then check in that path for excel.exe.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Machine With Two Versions of Excel Installed Mike McCollister Microsoft Excel Misc 4 1st Apr 2007 11:16 AM
Installed SP1; random Machine Check Exceptions result Adam Stemp Windows XP General 9 7th Mar 2004 05:43 AM
Installed SP1; random Machine Check Exceptions result Adam Stemp Windows XP Help 9 7th Mar 2004 05:43 AM
Word reboots machine after SP4 installed Fester Microsoft Windows 2000 Windows Updates 1 16th Aug 2003 03:12 PM
Re: w2k SP4 installed and now word 97 causes my machine to reboot Doodles Microsoft Windows 2000 Windows Updates 0 27th Jul 2003 10:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:48 AM.