Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vbscript to find installed office products, 32 vs 64

Status
Not open for further replies.

blpcrs

Programmer
Aug 25, 2011
19
US
hi all, got a small problem trying to determine where office is installed in my vbs.
I have a vbs that will open office products, excel.exe for example, and it will take a version as well (multple office suites are installed 03, 07, 10, 13).

On an XP machine, normally it's in
C:\Program Files\Microsoft Office\OfficeXXHowever, for a 64bit Win7, a 32bit office it's in
C:\Program Files (x86)\Microsoft Office\OfficeXX
** Is there a simple way I can determine if, excel for example, is in Program Files or Program Files (x86) ? (keeping in mind there may be 3 versions of office installed on one PC.

I've explored ideas of querying the registry, however, they are in different places depending on the OS as well, which may make it messy. Any ideas, suggestions, code would help greatly!

much thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top