Visual Studio Developer Center > Visual Studio Forums > Visual Studio Tools for Office > how to detect programmatically whethe Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint 2007 File Formats is installed?
Ask a questionAsk a question
 

Answerhow to detect programmatically whethe Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint 2007 File Formats is installed?

Answers

  • Thursday, November 05, 2009 8:45 PMBeth MassiMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Velislav,

    I've moved this thread out of the VS2010 Beta forum into the VSTO forum for current release versions as you'll probably get a much quicker response here.

    I think what you can do is check the registry for installed programs in HKLM\Software\Microsoft\Windows\CurrentVersion to figure out what is installed on a machine, but you'll need to run the app as full-trust to access the registry. Maybe someone else here has a better suggestion.

    Cheers,
    -Beth
    Program Manager, Visual Studio Community http://msdn.com/vbasic http://msdn.com/vsto http://blogs.msdn.com/bethmassi

All Replies

  • Thursday, November 05, 2009 8:45 PMBeth MassiMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Velislav,

    I've moved this thread out of the VS2010 Beta forum into the VSTO forum for current release versions as you'll probably get a much quicker response here.

    I think what you can do is check the registry for installed programs in HKLM\Software\Microsoft\Windows\CurrentVersion to figure out what is installed on a machine, but you'll need to run the app as full-trust to access the registry. Maybe someone else here has a better suggestion.

    Cheers,
    -Beth
    Program Manager, Visual Studio Community http://msdn.com/vbasic http://msdn.com/vsto http://blogs.msdn.com/bethmassi
  • Saturday, November 07, 2009 10:15 AMBessie ZhaoMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hello,

    Thanks for contacting VSTO forum. I think you could open Programs and Features dialog, and check if Compatibility Pack for the 2007 Office System is in the list.

    I am afraid that this issue is off-topic in VSTO forum. VSTO is a technology for extending the UI of Office 2003 and 2007 applications in the forum of Add-ins and document-level customizations. As you mentioned, it seems to be little related to VSTO technology. The forum's PLEASE READ FIRST explains what VSTO forum is for. You will find the appropriate entry link in PLEASE READ FIRST.

    Best regards,
    Bessie


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
  • Sunday, November 08, 2009 8:26 PMVelislav Nikolov Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    10x Bessies,

    you answer is so helpful and I appreciate it!!!