Ken,
Sorry to bother you again, but this is driving me crazy. My Add-in adds a
dropdowncombo on every mail inspector toolbar. When user selects something
from dropdowncombo, new modal form dialog opens on the top of the inspector.
I used SetwindowPos to set this small dialog on the top and also used
SetForegroundWindow for inspector window. However when I click on the modal
form Inspector window gets minimized and whatever window is under becomes
foreground. When I close modal dialog form, Inspector gets active and it
shows. I get hWnd of the inspector on Inspector activate event and use that
handle to set inspector as foreground window inn modal form activate event.
No matter what I do inspector window flashes and gets minimized when I click
on anything on modal form. I need the inspector to stay in place until modal
form is closed. Any ideas how to fix this? This only happens when email
editor is WordMail and when dll compiled, in design mode everything is OK.
Thanks in advance,
Goran
"Ken Slovak - [MVP - Outlook]" wrote:
Normally a COM addin gets installed somewhere under Program Files, although
that's not a requirement. Usually that AddIns folder is used for Exchange
addins (ECE files written using Extended MAPI code).
Outlook will recognize any COM addin, no matter where it's installed, if
it's registered correctly. You should not have to browse for the addin, it
should show up in the COM AddIns dialog if it was registered in the HKCU
hive of the registry and the addin dll was registered also. If you used a
VB6 Designer then registering the addin dll will take care of writing the
keys to the registry in HKCU for you.
How you install is up to you. The P&D Wizard works but it creates large
installers that include lots of stuff that you really don't need to deploy,
like the VB6 runtime (msvbvm6.dll) and so on. Those packages also don't give
you the flexibility that a Windows Installer package provides. You can use
Windows Installer, a commercial package such as InstallShield or Wise, or
even an installation bat file. All you really need to do is put the files
where you want and run regsvr32 on the addin dll.
If you look in the registry at HKCU\Software\Microsoft\Office\Outlook\Addins
do you see your addin listed? Does it have the correct registry keys as
listed in that link I provided? If not that's the problem and you should
read the article at that link.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"goran" wrote in message
...
Ken,
I try everything and cannot get my addin to load and show in the toolbar
when Outlook starts. I have to do it manually and then is OK. I set
'Initial
Load Behavior' to 3. I copied the addin dll to my user profile under
Application Data/microsoft/AddInns. When I start the outlook the add in is
not there. I have to go manually to Tools/Options/Other/ Advanced
options/COM
Addins and browse for my dll there and then it will load it. Please tell
me
if there is another way to install it so it will load and show when
Outlook
starts. Can I use VB 'PAckage & deployment' tool to package it, or any
other
tool?
Thanks for you help as always.
Goran