Thread: Outlook Add-In
View Single Post
  #8  
Old November 24th 06, 03:27 PM posted to microsoft.public.outlook.program_addins
rbarrios73
external usenet poster
 
Posts: 4
Default Outlook Add-In

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.dl l"
copy
...\..\..\..\Projects\${ROOT}\OutlookAddIn\bin\Rel ease\OutlookAddIn.dll
regasm.exe /nologo /silent "$INSTDIR\OutlookAddIn.dll"
/tlb:"$INSTDIR\OutlookAddIn.tlb" /codebase'

#create Outlookaddin keys
WriteRegStr HKLM
"SOFTWARE\Microsoft\Office\Outlook\Addins\OutlookA ddIn.Connect" "Description"
"This Outlook Add-In will provide access to Relationship Manager
functionality"
WriteRegDWORD HKLM
"SOFTWARE\Microsoft\Office\Outlook\Addins\OutlookA ddIn.Connect"
"LoadBehavior" 3
WriteRegStr HKLM
"SOFTWARE\Microsoft\Office\Outlook\Addins\OutlookA ddIn.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,

--
--RB


"Ken Slovak - [MVP - Outlook]" wrote:

The problem is security. A VSTO addin requires full trust for the
installation folder. That's automatically done when you run in debug mode.
In deployments you need to do that using custom actions and SetSecurity
project you add to your addin project.

See the deployment walkthrough (2 part) starting at
http://msdn.microsoft.com/library/de...erOverview.asp

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"rbarrios73" wrote in message
...
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/lib...07(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,


--
--RB



Ads