views:

12

answers:

0

Hi,

I am creating the installer for a application which references Microsoft Office 12.0 Object Library and Microsoft.Office.Interop.Excel I added a Pre-requisite in the installer to install Visual studio office runtime if didnt exists. But even after installation, the application throws error where it uses excel libraries.The error message is

Error : Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154.

other option i tried was adding a launch condition to check the component id and if the installer didnt find the MS Excel it will stop. I dont know from where to get the component id. but i dont know if the approach is correct or not. Help Appeciated. Thanks.