Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I determine if MS Office 2007 SP2 is installed?

Tags:

ms-office

In am using MS Word via OLE to produce documents from my application. I want to give the users that have MS Office 2007 SP2 installed the ability to save the documents as PDF. This is only available in SP2, and the option should be hidden if the service pack is not installed (and of course also for users of previous versions of MS Office).

Is this information available anywhere, like in the registry or any configuration file?

like image 265
alfjorgen Avatar asked Mar 25 '10 10:03

alfjorgen


2 Answers

For the actual version infos that apply to the individual service packs have a look at this well hidden kb entry:

http://support.microsoft.com/kb/928116

like image 45
mklein Avatar answered Sep 30 '22 12:09

mklein


Couldn't find anything helpful for you but here is something which you might find useful.

Office version is stored in registry

HKEY_LOCAL_MACHINE \Software\Microsoft\Office\12.0\Common\productVersion

the value 12.0 changes for office 2003 and 2007. This key has a number. I think checking this number for different version (with/without SP1/SP2) and see if there sia difference.

like image 190
Shoban Avatar answered Sep 30 '22 13:09

Shoban