Office Add-In Deployment is very difficult?

M

michael

Hello, i try sience two weeks to create a Add-In for Microsofts Word.
It works greate on my development machine with visual studio 2005
installed.

but if i try it on a naked windows xp machine, with .net 2.0 and office
2003 installed the add-in would not load. If i open the "COM Add-Ins"
window in word, i see that the registry entrys that my setup makes are
correct, cuz the add-in is still registred in this window, but if i hit
the checkbox and press the OK button, and now open the "COM Add-Ins"
window again, there is a message "Load Behavior: Not loaded. A runtime
error occurred during the loading of the COM Add-in". btw. Location is
"mscoree.dll" i' ve build my Add-In without "shim".. and the PIA's are
installed on this non developer machine..

I tryed many things to get fixed this..

My questions:
1. is there a way to get more information from word about the loading
problems? maybe a logfile
2. is it possible to deploy this addin on a non developer machine,
machine wide? so that other users also can use my Add-In?
3. did i need CAS without a "shim"?

thanks for your support, and sorry for my poor english...

Greets Mitch
 
M

Michael

This is my Code that i use to register the Add-In in the Registry...

sRegKey = "Software\Microsoft\Office\Word\Addins\IwanaAddIn"
newKey = Registry.CurrentUser.CreateSubKey(sRegKey)

newKey.SetValue("Description", "let me be a working addin",
RegistryValueKind.String)
newKey.SetValue("FriendlyName", "IwanaAddIn", RegistryValueKind.String)
newKey.SetValue("LoadBehavior", 3, RegistryValueKind.DWord)
newKey.Close()
 
M

Michael Tröge

Hello Michael,

i get the same problem if i create a Add-In for Microsoft Outlook.
Maybe its a problem from MSCoree.dll!
Michael

(e-mail address removed)
 
M

Michael

I've updatet my testmachine, all the latest service packs for windows
xp and office 2003, both have SP2 and the latest security updates...
the problem still exist.. my addin does not load on startup...

any ideas?

greets
mitch
 
M

Michael Tröge

Hi Michael,

Add-IN are using the extensibility.dll and this File
needs our ADD-In. Please make sure that you setup
using this DLL and Copies to our setup.
Cheers
Michael
 
C

Cindy M -WordMVP-

Hello, i try sience two weeks to create a Add-In for Microsofts Word.
It works greate on my development machine with visual studio 2005
installed.

but if i try it on a naked windows xp machine, with .net 2.0 and office
2003 installed the add-in would not load.
See if installing the Office 2003 SP2 hotfixes help
http://support.microsoft.com/kb/907417/

http://support.microsoft.com/kb/908002/en-us


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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