Manually registering Addin vs Shared Addin Wizard in VS2003

A

armith

I have a simple Office Addin in VB.NET. I have tried to manually
register my addin and it does not load. However, if I use the Shared
Addin Wizard and create a installation it seems to register my dll with
no problems...

Test project info:
-simple dll with a messagebox saying that addin has loaded upon
execution of powerpoint.
-VB.NET 2003 project on office 2003

How can manually register/unregister this addin.

Thanx,
Kevin
 
H

Helmut Obertanner

hello Kevin,

you must register your COM AddIn with regsvr32 from commandline.
and you must add the registry keys under the LocalMachine or CurrentUser
Example:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Outlook\Addins\XConnect.Connect]
"FriendlyName"="YourProgId"
"Description"="Outlook extension."
"LoadBehavior"=dword:00000003

--
regards

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!
 
A

armith

do I register the addin with regsrv32 or with regasm??? I already have
the reg keys as you mentioned.. once the addin is registered correctly
that does work. but if I try to register manually it the reg keys
don't make any difference.. Is that what the Addin Wizard in VS does
when creating its installer? uses regsrv32?

Thanx
Kevin
 
H

Helmut Obertanner

Hello Kevin,

yes, since you exposing your dll as com component, you must register it
with regsvr32 /i xxxx.dll

--
regards

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!
 
A

armith

ok tried what you said and it gives me an error saying.. "Mytest.dll
was loaded, but the DllRegisterServer point was not found. This file
can no be registered." Was I supposed to do something else before
doing this?
 
H

Helmut Obertanner

Rollback, sorry was wrong.
for manually registering the Assembly you must use the regasm tool.

use regasm myDll.dll.
the dll must have a strong name.

--
regards.

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!
 
Top