A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Load add-in on Outlook 2003 startup



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 7th 08, 04:33 PM posted to microsoft.public.outlook.program_addins
Goran
external usenet poster
 
Posts: 48
Default Load add-in on Outlook 2003 startup

Hi,

I developed a com Add-in for Outlook 2003. I copied it at user
profile/addins folder. What do I need to do so this add in will load
automatically when Outlook starts?

Thanks,

Goran
Ads
  #2  
Old February 7th 08, 05:09 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Load add-in on Outlook 2003 startup

Assuming it actually handles the Extensibility events then it needs to be
registered. See http://support.microsoft.com/kb/302896 for some information
on that.

--
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
...
Hi,

I developed a com Add-in for Outlook 2003. I copied it at user
profile/addins folder. What do I need to do so this add in will load
automatically when Outlook starts?

Thanks,

Goran


  #3  
Old February 7th 08, 08:43 PM posted to microsoft.public.outlook.program_addins
Goran
external usenet poster
 
Posts: 48
Default Load add-in on Outlook 2003 startup

Thanks Ken.

Goran

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

Assuming it actually handles the Extensibility events then it needs to be
registered. See http://support.microsoft.com/kb/302896 for some information
on that.

--
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
...
Hi,

I developed a com Add-in for Outlook 2003. I copied it at user
profile/addins folder. What do I need to do so this add in will load
automatically when Outlook starts?

Thanks,

Goran



  #4  
Old February 14th 08, 09:57 PM posted to microsoft.public.outlook.program_addins
Goran
external usenet poster
 
Posts: 48
Default Load add-in on Outlook 2003 startup

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

"goran" wrote:

Thanks Ken.

Goran

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

Assuming it actually handles the Extensibility events then it needs to be
registered. See http://support.microsoft.com/kb/302896 for some information
on that.

--
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
...
Hi,

I developed a com Add-in for Outlook 2003. I copied it at user
profile/addins folder. What do I need to do so this add in will load
automatically when Outlook starts?

Thanks,

Goran



  #5  
Old February 15th 08, 03:00 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Load add-in on Outlook 2003 startup

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


  #6  
Old February 15th 08, 07:34 PM posted to microsoft.public.outlook.program_addins
Goran
external usenet poster
 
Posts: 48
Default Load add-in on Outlook 2003 startup

I will try P & D wizard then.

Thanks a lot Ken,

Goran

"goran" wrote:

Thanks Ken.

Goran

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

Assuming it actually handles the Extensibility events then it needs to be
registered. See http://support.microsoft.com/kb/302896 for some information
on that.

--
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
...
Hi,

I developed a com Add-in for Outlook 2003. I copied it at user
profile/addins folder. What do I need to do so this add in will load
automatically when Outlook starts?

Thanks,

Goran



  #7  
Old February 18th 08, 01:53 PM posted to microsoft.public.outlook.program_addins
Goran
external usenet poster
 
Posts: 48
Default Load add-in on Outlook 2003 startup

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



  #8  
Old February 18th 08, 02:44 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Load add-in on Outlook 2003 startup

I've never seen or heard of that but it's most likely that you're getting
the hWnd for an incorrect window. Get the hWnd and then use Spy++ to see
what window handle you're actually getting.

--
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,
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


  #9  
Old February 18th 08, 08:49 PM posted to microsoft.public.outlook.program_addins
Goran
external usenet poster
 
Posts: 48
Default Load add-in on Outlook 2003 startup

I checked in Spy++. I have correct OpusApp window handle.I can't believe it
neither.

I have this on dropdown change event that suppose to launch dialog form:

SetWindowPos(frmDialog.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE Or
SWP_NOMOVE)

frmDialog.Show 1

then on Inspector_Activate I have:

hw = FindWindow("OpusApp", vbNullString) this is where I capture Inspector
Handle

and on dialog form Activate event I try to set Inspector as foreground
window like:

Form1_Activate()
SetForegroundWindow(hw)
end sub

And when I click dialog form Inspector window which is foreground window
gets minimized. I even tried SetActiveWindow(hw), ShowWindow hw,
SW_SHOWACTIVATE etc to keep Inspector from dissapearing. I event put code in
Inspector_Deactivate event to check if DialogForm is visible, If it is I call
inspector.activate method. That does help sometimes but not always. Any ideas
what should I try?

Thanks


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

I've never seen or heard of that but it's most likely that you're getting
the hWnd for an incorrect window. Get the hWnd and then use Spy++ to see
what window handle you're actually getting.

--
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,
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



  #10  
Old February 19th 08, 03:11 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Load add-in on Outlook 2003 startup

You need to set the z-order of the Inspector window before you set the form
dialog's z-order. I usually use SetWindowLong to make the Inspector window
parented by the main Outlook window, then I make the dialog window a child
of the Inspector window. I try to avoid SetWindowPos() with HWND_TOPMOST
because if the user clicks in a completely different application the dialog
using HWND_TOPMOST still remains on top and that tends to completely annoy
users.

--
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
...
I checked in Spy++. I have correct OpusApp window handle.I can't believe it
neither.

I have this on dropdown change event that suppose to launch dialog form:

SetWindowPos(frmDialog.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE Or
SWP_NOMOVE)

frmDialog.Show 1

then on Inspector_Activate I have:

hw = FindWindow("OpusApp", vbNullString) this is where I capture Inspector
Handle

and on dialog form Activate event I try to set Inspector as foreground
window like:

Form1_Activate()
SetForegroundWindow(hw)
end sub

And when I click dialog form Inspector window which is foreground window
gets minimized. I even tried SetActiveWindow(hw), ShowWindow hw,
SW_SHOWACTIVATE etc to keep Inspector from dissapearing. I event put code
in
Inspector_Deactivate event to check if DialogForm is visible, If it is I
call
inspector.activate method. That does help sometimes but not always. Any
ideas
what should I try?

Thanks


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2003 startup chemnut94707 Outlook - Using Contacts 1 May 6th 06 12:13 AM
New Outlook 2003 Install Won't Load ajamrozek Outlook - Installation 3 April 16th 06 08:29 PM
Outlook 2003 will not load. DrStuart Outlook - Installation 3 February 1st 06 02:51 AM
outlook 2003 won't load MN24FAN Outlook - Installation 2 January 30th 06 05:16 PM
Outlook 2003: Add-In doesn't load any more outl00kalium Add-ins for Outlook 0 January 8th 06 02:46 PM


All times are GMT +1. The time now is 05:26 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.