• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • Last Modified:

How to detect Microsoft Office 2010 by program

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
gplana
Asked:
gplana
1 Solution
 
EYRajeshTVCommented:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Word

check this registry path u will get to know which all version are installed
0
 
gplanaAuthor Commented:
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
 
speshalystCommented:
"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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
speshalystCommented:
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
 
gplanaAuthor Commented:
Sorry, there is no winword.exe on AppPaths
0
 
Don ThomsonCommented:
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
 
gplanaAuthor Commented:
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
 
gplanaAuthor Commented:
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now