Hi! How can I check what language version of MS Office is installed on the
machine (with vbscript)?

Re: Version of Office by mr_unreliable

mr_unreliable
Tue Nov 07 11:28:17 CST 2006

hi Senad,

I am assuming that you are asking which VERSION of msOfc,
rather than which "language version"...

If that assumption is correct, then the answer is in the
registry.

Use vbs regread to read the subkeys for the following
hive (may be slightly different in winxp):

HKCU/Software/Microsoft/Office

On my system, among other things you see decimal numbers,
like: 8.0, 9.0, 10.0. Those are various versions of msOfc,
with the largest number indicating that msOfc version 10.0
(a.k.a. ofc2k) was the last version installed.

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)



Senad Isanovic wrote:
> Hi! How can I check what language version of MS Office is installed on the
> machine (with vbscript)?
>
>

Re: Version of Office by Senad

Senad
Thu Nov 09 02:53:47 CST 2006

Actually I was talking about different languages... I need to detect if
there is Swedish or English version of Office installed on the machine. (and
depending on that I need to copy different versions of global .dot on the
right place)


"mr_unreliable" <kindlyReplyToNewsgroup@notmail.com> skrev i meddelandet
news:O6%23TIJpAHHA.3604@TK2MSFTNGP04.phx.gbl...
> hi Senad,
>
> I am assuming that you are asking which VERSION of msOfc,
> rather than which "language version"...
>
> If that assumption is correct, then the answer is in the
> registry.
>
> Use vbs regread to read the subkeys for the following
> hive (may be slightly different in winxp):
>
> HKCU/Software/Microsoft/Office
>
> On my system, among other things you see decimal numbers,
> like: 8.0, 9.0, 10.0. Those are various versions of msOfc,
> with the largest number indicating that msOfc version 10.0
> (a.k.a. ofc2k) was the last version installed.
>
> cheers, jw
> ____________________________________________________________
>
> You got questions? WE GOT ANSWERS!!! ..(but,
> no guarantee the answers will be applicable to the questions)
>
>
>
> Senad Isanovic wrote:
>> Hi! How can I check what language version of MS Office is installed on
>> the machine (with vbscript)?



Re: Version of Office by mr_unreliable

mr_unreliable
Thu Nov 09 11:31:29 CST 2006

Senad Isanovic wrote:
> Actually I was talking about different languages...

O.K., this gets more tricky. I don't think there is
a way to get the installed _office_ package language
from script. However, if you just want the system
language (LCID), that can be done.

The only way with office that I can think of is to
look in the "resource" area of the binary. Generally
speaking, microsoft uses the resource area for text
messages, because in that way they can separate the code
from the text, and generate their apps for different
languages by just adding in the appropriate resource.

You can look (manually) at the resource area by using
a "resource hacker", to see what language is there.

To do this programmatically would probably involve
using the system api.

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)