Dim WSHShell, RegKey, rKeyWord, Result
Set WSHShell = CreateObject("WScript.Shell")
RegKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\MOC"
On Error Resume Next 'The registry key does not exist
rKeyWord = WSHShell.RegRead(RegKey & "ProductName") ' but if it does read it
If rKeyWord = "Compatibility Pack for the 2007 Office system" Then
MsgBox "Compatibility Pack for the 2007 Office system - installed"
Else
MsgBox "Compatibility Pack for the 2007 Office system - NOT installed"
End If
|