Solved

How to detect Microsoft Office 2010 by program

Posted on 2011-03-10
8
238 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
Comment Utility
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
Comment Utility
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
Comment Utility
"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
 
LVL 16

Expert Comment

by:speshalyst
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 15

Author Comment

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

Expert Comment

by:Don Thomson
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Word - Access 3 28
Excel list clean up 6 42
Excel VB Help 4 36
SUM 2 INTEGER ARRAYS INTO 1 10 55
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now