Installing / Registering Power Point Add-In

Mar 1, 2013 at 5:14 PM
Hi, I was wondering how one goes about installing an add-in created with NetOffice? My add-in adds a Ribbon UI element, and needs to be loaded each time Office starts up.

What about installing the same add-in for multiple installed versions of Office?

Im trying to avoid any Visual Studio Installer magic, and would like to know what is actually required for this process, so I could do it e.g. from an InnoSetup installer.

Mar 1, 2013 at 6:55 PM
If you created addin with NetOffice Project Wizard you have to do a little work:
  1. Copy your addin with NetOffice assemblies
  2. Register addin assembly with regasm utility
Here is an example of Inno Setup script for installing Outlook addin for .NET 4.0
AppName=Outlook Addin
Source: OutlookAddin.dll; DestDir: {app}
Source: NetOffice.dll; DestDir: {app}
Source: OfficeApi.dll; DestDir: {app}
Source: OutlookApi.dll; DestDir: {app}
Filename: "{dotnet40}\regasm.exe"; Parameters: """{app}\OutlookAddin.dll"""
Filename: "{dotnet40}\regasm.exe"; Parameters: """{app}\OutlookAddin.dll"""