Outlook Add-In

G

Guest

Hello,

We have an outlook add-in included in our application, it is added to
outlook and when it is clicked by user can navigate to our application. To
install this add-in, we use the following link
http://msdn2.microsoft.com/en-gb/library/ms269007(VS.80).aspx to add
different keys at the registry.
At this point we upgrade the version of our application and everything looks
fine on registry but the add-in is not installed.
Basically my question is about some tool to trace the load process of the
add-in to check what is the error.
Some help will be appreciate.
 
S

Steffen Heinzl

rbarrios73 said:
Hello,

We have an outlook add-in included in our application, it is added to
outlook and when it is clicked by user can navigate to our application. To
install this add-in, we use the following link
http://msdn2.microsoft.com/en-gb/library/ms269007(VS.80).aspx to add
different keys at the registry.
At this point we upgrade the version of our application and everything looks
fine on registry but the add-in is not installed.
Basically my question is about some tool to trace the load process of the
add-in to check what is the error.
Some help will be appreciate.

Hi!

It might be a security issue.

You can set the environment variable VSTO_SUPPRESSDISPLAYALERTS to the
value 0 on the computer where VSTO 2005 is running. Then you should see
an error message if outlook is not able to load the plugin.
If the error message contains something about permissions, your plugin
probably has no rights to run the plugin code.

Yours,
Steffen
 
K

Ken Slovak - [MVP - Outlook]

If that doesn't help then post back with the Outlook versions you're
supporting, the version of VSTO you're using, what the upgrade is from and
any other relevant information. Also post what changes you made when you
upgraded.
 
K

Ken Slovak - [MVP - Outlook]

Did you set security for the deployed addin?

Does it work when run in debug mode on the development computer?

What did you upgrade from where it was working?

Please also supply the other information that was requested so we don't have
to guess or play 20 questions.
 
G

Guest

Did you set security for the deployed addin?
No, I didn't
Does it work when run in debug mode on the development computer?
Yes, it does
What did you upgrade from where it was working?
We upgraded our application, but the outlook addin didn't change and the
installer neither.

For more information:
The outlook add in is compiled and the installer write several keys at
registry following the steps at link:
http://msdn2.microsoft.com/en-gb/library/ms269007(VS.80).aspx
When the outlook is launched the outlook add in is not loaded and the
property LoadBehaivour is changed from 3 to 2
I don't knowexactly what is the error, I suppose is something wrong on
registry but I am not sure.

Thanks,
 
G

Guest

It is corect, but everything looks fine in my computer with full trust but
it doesn't work yet.
Basically, I am adding the following keys at the registry and doing some
other operations and when the outlook try to load the addin the loadbehaivour
property is changed from 3 to 2 and the addin is disabled. After that
although I changed the property it is no worked.
Keys and code :

gacutil.exe /silent /i "$INSTDIR\Microsoft.Office.Interop.Outlook.dll"

copy "..\..\..\Microsoft Visual Studio .NET
2003\Common7\IDE\PublicAssemblies\extensibility.dll"
copy
...\..\..\..\Projects\${ROOT}\OutlookAddIn\bin\Release\OutlookAddIn.dll
regasm.exe /nologo /silent "$INSTDIR\OutlookAddIn.dll"
/tlb:"$INSTDIR\OutlookAddIn.tlb" /codebase'

#create Outlookaddin keys
WriteRegStr HKLM
"SOFTWARE\Microsoft\Office\Outlook\Addins\OutlookAddIn.Connect" "Description"
"This Outlook Add-In will provide access to Relationship Manager
functionality"
WriteRegDWORD HKLM
"SOFTWARE\Microsoft\Office\Outlook\Addins\OutlookAddIn.Connect"
"LoadBehavior" 3
WriteRegStr HKLM
"SOFTWARE\Microsoft\Office\Outlook\Addins\OutlookAddIn.Connect"
"FriendlyName" "Relationship Manager Add-In"

WriteRegStr HKLM "SOFTWARE\Classes\OutlookAddIn.Connect" ""
"FTI.Investran.OutlookAddIn.Connect"
WriteRegStr HKLM "SOFTWARE\Classes\OutlookAddIn.Connect\CLSID" ""
"{26CFC875-F091-43B2-8ACB-E24FBE77FAD0}"

All this operation are working fine. But maybe I need to do another thing.

I hope any other idea.
Thanks,
 
K

Ken Slovak - [MVP - Outlook]

Did you read those walkthroughs I pointed you to? I mentioned that you have
to include the SetSecurity project and set the various custom actions. You
also have to sign your code and take care of the various other things
mentioned.
 

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