VB.NET and Microsoft Compability Pack

Asuming that a PC have Microsoft Office 97 - 2003 installed.

Is it then possible for a VB.NET program to detect if the Microsoft Compability Pack for Word, Excel and PowerPoint also is installed?
daghoffAsked:
Who is Participating?
 
wobbledCommented:
The only way I can think of to do this is to look for the registry key

I found this vbscript that will look for the installation of the compatability pack.  Just tweak it to fit in with your code

Dim WSHShell, RegKey, rKeyWord, Result
Set WSHShell = CreateObject("WScript.Shell")
RegKey =
"HKEY_CLASSES_ROOT\Installer\Products\00002109020090400000000000F01FEC\"
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

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.