How do I deloy an Excel-AddIn ?

T

Telefisch

Hi Forum,
since more than 3 days I try to deploy an excel2007 AddIn, created with VSTO.
My first question:
what do I have to deliver with my dll?

Second question:
what do I have to do next?
which registry-keys do I have to create and which policies do I have to
create?
Is there anything else to do?

I read so many howtos and watched videos about this but had no success.
If I try to add the AddIn manually to Excel, I got the message that this dll
isn't a valid AddIn. In Debug and Release-Mode, everything worked fine.

Could someone please give me a hint? Every hint is welcome.

Thanks Tele
 
P

Philip Chan

You have to deliver with your dll in no question. But take attention, you
developed your addin via VSTO, so .NET Framework and VSTO libaray are needed
to run the addin.

You have to register you addin in two steps?

First, register you addin since your addin is a COM library.
Second, register you addin's ProgID to the registry of Office.

You can refer this :
http://msdn.microsoft.com/en-us/library/aa155640(loband).aspx
 
T

Telefisch

Hello Philip,
In my Release-Folder I found these two files
- Microsoft.Office.Interop.Excel.dll
- Office.dll
are these Files enough?
Of course I ensure that .Net FW3.5 is installed on the Client Machine.

You wrote taht I have to register my dll but when I try with regsvr32 I got
the message that this file could not be regesterd.

Is there any setting wrong in my solution?
 
P

Philip Chan

Sorry, I haven't use VSTO. So I have no idea which dll is necessory. I
develop office addin via ATL.

I guess the your dll is a COM library, try regsvr32 /u to unregister and
then regsvr32 to register again.

the regsvr32 will give you a error message even the dll is already
registered.
 
T

Telefisch

I tried to create a new AddIn by create new Project and selecting the Excel
2007-Add-In Template.
In Debug or Release-Modus, everythig works fine (only Messagebox at Startup
and Shutdown).
If I try to select this Add-In in Excel manually, I got the same Message:
dll is not a valid Office AddIn.
Register is also not possible.

What the hell is wrong here?
 
T

Telefisch

I tried to create a new AddIn by create new Project and selecting the Excel
2007-Add-In Template.
In Debug or Release-Modus, everythig works fine (only Messagebox at Startup
and Shutdown).
If I try to select this Add-In in Excel manually, I got the same Message:
dll is not a valid Office AddIn.
Register is also not possible.

What the hell is wrong here?
 
T

Telefisch

I tried to create a new AddIn by create new Project and selecting the Excel
2007-Add-In Template.
In Debug or Release-Modus, everythig works fine (only Messagebox at Startup
and Shutdown).
If I try to select this Add-In in Excel manually, I got the same Message:
dll is not a valid Office AddIn.
Register is also not possible.

What the hell is wrong here?
 
T

Telefisch

I tried to create a new AddIn by create new Project and selecting the Excel
2007-Add-In Template.
In Debug or Release-Modus, everythig works fine (only Messagebox at Startup
and Shutdown).
If I try to select this Add-In in Excel manually, I got the same Message:
dll is not a valid Office AddIn.
Register is also not possible.

What the hell is wrong here?
 
T

Telefisch

I tried to create a new AddIn by create new Project and selecting the Excel
2007-Add-In Template.
In Debug or Release-Modus, everythig works fine (only Messagebox at Startup
and Shutdown).
If I try to select this Add-In in Excel manually, I got the same Message:
dll is not a valid Office AddIn.
Register is also not possible.

What the hell is wrong here?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top