Winword.Exe version and file sizes

U

UnderCoverGuy

Can anyone help me? I am trying to find a list of MS Office (Word
specifically) versions, builds and "primary" file sizes. Some of our
workstations have Office 2000, XP, 2003, 2007, etc. and I need to determine
who has what installed - programatically. I need the file sizes so that I
can query the WINWORD.EXE file size and that will tell me what version is
installed. I tried using a vbScript to drop a simple text file based on
Word.Application and objWord.Version but I keep getting errors and have given
up on that method.

Thanks in advance for any help,
UCG
 
S

Shauna Kelly

Hi

I wouldn't count on the file sizes indicating anything in particular. Each
person may have a slightly different set of service packs and patches which
may change the .exe's file size.

In theory, you can check the registry entries to see what versions of Word
are installed. Look for (eg)
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word. However, this isn't
entirely reliable. On this machine, there is a
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0 key, but no version of
Office 12 has been installed on this machine.

The following may help:
http://www.jsifaq.com/SF/Tips/Tip.aspx?id=10980

A sure-fire way to check is to open a (hidden) instance of Word and then
query Word's Application.Version property. It will return 9.0 for Word 2000,
10.0 for Word 2002, 11.0 for Word 2003.

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
 
T

Tony Jollans

A sure-fire way to check is to open a (hidden) instance of Word and then
query Word's Application.Version property. It will return 9.0 for Word
2000, 10.0 for Word 2002, 11.0 for Word 2003.

I hate to say it but this isn't a sure fire way of telling what is
*installed* - it only tells what is the (current) default version.

There will be a way through the registry but I don't know what it is -
perhaps through HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall -
but working out exactly what to look for might be tricky and it might be
possible for programs not to be in that list (although maybe not in a
corporate environment).
 
U

UnderCoverGuy

Thanks for the quick reply. I tried scripting it to query for
Application.Version but get the error "The object invoked has disconnected
from its client". The batch file on JSI is good but isn't returning accurate
info (I have Office 2003 installed and it reported v10 - which is Office XP).
Maybe I am approaching this wrong. We have a number of workstations with
different flavors of Office installed. I have a code-signing certificate
that I need to import into Word from the command-line. I tried using the ORK
Maintenance Wizard (Office 2003 RK) and it imports fine for 2003 systems but
fails on Office 2000 (haven't tried XP yet).

Is there a method that we can use to "globally" import a code-signing
certificate into Word's "Trusted Publisher" list across different versions of
Office / Word without user intervention? This will untimately be deployed
using SMS to over 1,000 workstations.


Thanks for any and all help,
UCG
 
U

UnderCoverGuy

I found the registry key:

Check HKEY_CLASSES_ROOT/Word.Application/CurVer/

Itt will tell you what version is installed for each Office app
(Excel.Application, etc.). Now it is each to script and query the registry
so I have my solution.


Thanks for all the help,
UCG
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top