Solved

How to detect Microsoft Office 2010 by program

Posted on 2011-03-10
8
245 Views
Last Modified: 2012-05-11
Dear Expert:

I have an installer which detects the installed version of Microsoft Office by looking at the registry entry HKEY_CLASSES_ROOT\Word.Application\CurVer.

It works well for Office 2000, XP, 2003 and 2007, and it works well even on Office 2010 over Windows Vista/7. But after installing Office 2010 Home and Small Business (the free trial version) over Windows XP SP3, this registry entry doesn't exists.

So my question is: How can I detect if Office 2010 (any version of it) is installed ?

Thank you in advance.
0
Comment
Question by:gplana
8 Comments
 

Expert Comment

by:EYRajeshTV
ID: 35097691
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Word

check this registry path u will get to know which all version are installed
0
 
LVL 15

Author Comment

by:gplana
ID: 35097806
This entry doesn't exists on my clean Windows XP SP3 + Office 2010 Home and Small Business.

Ihav an entry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0 but Word key is not inside.

I want to detect if Word Excel and Access ar installed and its version.
0
 
LVL 16

Expert Comment

by:speshalyst
ID: 35098411
"I want to detect if Word Excel and Access ar installed and its version. "

What happens if you go to START>RUN
and type ... Winword , Excel , Msaccess ?

0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 16

Expert Comment

by:speshalyst
ID: 35098566
Guess i missed the point :) Sorry ..

what does this reg entry on ur machine read ?

Registry key name: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Winword.exe

Example value: C:\Program Files (x86)\Microsoft Office\Office12\

0
 
LVL 15

Author Comment

by:gplana
ID: 35098854
Sorry, there is no winword.exe on AppPaths
0
 
LVL 14

Expert Comment

by:Don Thomson
ID: 35109477
Did you search for winword.exe in your registry - If you don't find it somewhere - then Microsoft must be using some new method of installing their own software
0
 
LVL 15

Accepted Solution

by:
gplana earned 0 total points
ID: 35115403
I have solved this for my own. Some Microsoft Office versions, such as Microsoft Office Home and Small Business 2010 trial version, installs it as a "click and run" by default. This click and run creates a virtual application, which is isolated from the rest of the system, so automation doesn't work, and also some registry entries doesn't appear.

The solution is to Uninstall "click and run" and install Microsoft Office again as an MSI. More details on this article:

http://office.microsoft.com/en-us/excel-help/click-to-run-switch-to-using-an-msi-based-office-edition-HA101850538.aspx
0
 
LVL 15

Author Closing Comment

by:gplana
ID: 35154443
I found the solution for my own. After uninstalling "click and run" and installing Office as an MSI you can detect version just by you do on any office system:

Set obj = CreateObject ("Word.Application")
MsgBox("Version: " + obj.version)
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question