all groups > visual studio .net general > february 2006 >
You're in the

visual studio .net general

group:

VS .Net 2003 Setup Project Wont Register Output for COM


VS .Net 2003 Setup Project Wont Register Output for COM Chris Newby
2/26/2006 3:27:10 PM
visual studio .net general: I have been working with writing an Outlook Add-In and started with the VS
Add-In wizard which created the Add-In project and a setup project. The
primary output of the Add-In project is, as you'd expect, included by
default in the setup project. Also setup by default in the setup project is
to have the primary output of the Add-In project registered for COM
(vsdrpCOM) ... again, as you'd expect.

However, when i compile this setup project and run the MSI the typical COM
interop registry entries are not made for my Add-In assembly. The registry
entires for Outlook *are* made however.

I'm a local admin on the machine i ran the MSI on. I tried both "Just for
me" and "Everyone" during installation. I also tried using
vsdrpCOMSelfRegister instead of vsdrpCOM.

None of this worked. Any ideas?

I guess i can either write a custom installer to call regasm or I can
hardcode the required interop registry settings into the setup project? Or
is there a better way?

TIA//

Re: VS .Net 2003 Setup Project Wont Register Output for COM Chris Newby
2/27/2006 2:01:42 PM
In case anyone is interested ... I ended up creating a custom installer and
using System.Runtime.InteropServices.RegistrationServices to get my assembly
registered for COM interop. Not too hard to do, but definately not as simple
as modding a setting on the project output.

And, of course, I'd still love to know why that didn't work in the first
place ...

[quoted text, click to view]

AddThis Social Bookmark Button