View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
VanS[_2_] VanS[_2_] is offline
external usenet poster
 
Posts: 60
Default How to determine Office version

Hi Cherian,
Thanks for your input.
I tried those entries but I found a problem. I previously had Office XP
installed, then uninstalled, and now have Office 2003. But the registry
entries you gave show both of them installed, even though only the later
version is. Don't know if you came across this issue, or found a workaround.
However, I found that I could access a given Application entry under the
HKCR section of the registry. EG:
HKCR\Excel.Application\CurVer
I found this worked even for an older Office 97 version. Same for Word, etc.
Thanks again, God bless
Van

"Cherian D via OfficeKB.com" wrote:

There are registry entries to determine the Office version. I use it in my
Installshield script. The entries are dependent on Office version 9, 10,
11, etc.

The key a
Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\10.0\ Common\ProductVersion
Sub-Key: LastProduct

Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\ Common\ProductVersion
Sub-Key: LastProduct

For versions earlier than 10, MS does not put the ProductVersion key, in
such case, I check for the Excel key\InstallRoot and if I find it, I know
that Excel is installed. (In my case, I know that the user have to install
Excel, so my checking for Excel is valid)

--
Message posted via http://www.officekb.com