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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.