Which office version is installed (O2K or OXP)

Hi,

I have to push out the updates to Excel and PPT for O2K and OXP from Microsoft Security Bulletin MS01-050. I will be doing so on an NT domain and using login scripts. I need to determine what version of Office is installed on the target PC so I can push the correct update to it.

Does anyone know a registry key that I can check, or any other way to check this, which will give me an error code so I can branch the batch file to install the correct update?