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

Programmatically enable Add-ins



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 2nd 07, 12:04 PM posted to microsoft.public.outlook.program_addins
balaji chandan
external usenet poster
 
Posts: 1
Default Programmatically enable Add-ins

I would like to know how to enable Add-ins programmatically when Outlook
crashes for some reason.I tried two ways of doing it, but invain.

I tried a way by deleting the registry entries under
HKCU\Software\Microsoft\Office\11.0\Resiliency, but this requires to restart
the Outlook for addin to be enabled manually.

Other way is I tried to handle the issue in
IDTExtensibility::OnBeginShutdown() method, but when Outlook crashes the
control does not come here.So i cannot handle it here.
Are there any other ways to handle this issue ?

Thanks
Balaji
  #2  
Old July 2nd 07, 01:34 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Programmatically enable Add-ins

If the addin has been disabled by Outlook there isn't any other way.

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


"balaji chandan" wrote in message
...
I would like to know how to enable Add-ins programmatically when Outlook
crashes for some reason.I tried two ways of doing it, but invain.

I tried a way by deleting the registry entries under
HKCU\Software\Microsoft\Office\11.0\Resiliency, but this requires to
restart
the Outlook for addin to be enabled manually.

Other way is I tried to handle the issue in
IDTExtensibility::OnBeginShutdown() method, but when Outlook crashes the
control does not come here.So i cannot handle it here.
Are there any other ways to handle this issue ?

Thanks
Balaji


  #3  
Old July 3rd 07, 05:57 AM posted to microsoft.public.outlook.program_addins
IceKettle
external usenet poster
 
Posts: 21
Default Programmatically enable Add-ins

Maybe you can program to delete the extend.dat file located in C:\Documents
and Settings\username\Local Settings\Application Data\Microsoft\Outlook .

"balaji chandan" ...
I would like to know how to enable Add-ins programmatically when Outlook
crashes for some reason.I tried two ways of doing it, but invain.

I tried a way by deleting the registry entries under
HKCU\Software\Microsoft\Office\11.0\Resiliency, but this requires to
restart
the Outlook for addin to be enabled manually.

Other way is I tried to handle the issue in
IDTExtensibility::OnBeginShutdown() method, but when Outlook crashes the
control does not come here.So i cannot handle it here.
Are there any other ways to handle this issue ?

Thanks
Balaji



  #4  
Old July 3rd 07, 02:32 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Programmatically enable Add-ins

That won't help. That merely will cause Outlook to rebuild its list of
Exchange extensions and has nothing to do at all with COM addins.

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


"IceKettle" wrote in message
...
Maybe you can program to delete the extend.dat file located in
C:\Documents and Settings\username\Local Settings\Application
Data\Microsoft\Outlook .


  #5  
Old July 16th 07, 08:24 AM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 2
Default Programmatically enable Add-ins

Hi,
I tried this but it was not helpful.
Thanks
Balaji

  #6  
Old July 16th 07, 05:02 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Programmatically enable Add-ins

What wasn't helpful? If you don't put part of the preceding thread in your
post no one has a clue as to what you're talking about. If you mean deleting
extend.dat wasn't helpful that is to be expected, it won't do anything for a
disabled addin and has nothing to do with COM addins at all.

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


wrote in message
oups.com...
Hi,
I tried this but it was not helpful.
Thanks
Balaji


  #7  
Old July 4th 07, 01:27 PM posted to microsoft.public.outlook.program_addins
Mark J. McGinty
external usenet poster
 
Posts: 56
Default Programmatically enable Add-ins


"balaji chandan" wrote in message
...
I would like to know how to enable Add-ins programmatically when Outlook
crashes for some reason.I tried two ways of doing it, but invain.

I tried a way by deleting the registry entries under
HKCU\Software\Microsoft\Office\11.0\Resiliency, but this requires to
restart
the Outlook for addin to be enabled manually.

Other way is I tried to handle the issue in
IDTExtensibility::OnBeginShutdown() method, but when Outlook crashes the
control does not come here.So i cannot handle it here.
Are there any other ways to handle this issue ?


The question you should be asking yourself is, what is your AddIn doing to
make Outlook crash? Usually the cause is that some object isn't being
released because it has a reference to some other object, or some other
object has a reference to it.


-Mark




Thanks
Balaji



  #8  
Old July 16th 07, 08:31 AM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 2
Default Programmatically enable Add-ins

Hi,
If such a crash occurs, i want to handle it.
I think we may not be able to handle all crash scenarios for Addins as
they reside inside Outlook.
So i wanted to handle it programatically to enable my Addin.

Thanks
Balaji

  #9  
Old July 16th 07, 05:02 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Programmatically enable Add-ins

You can't, if I understand what you're talking about.

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


wrote in message
ups.com...
Hi,
If such a crash occurs, i want to handle it.
I think we may not be able to handle all crash scenarios for Addins as
they reside inside Outlook.
So i wanted to handle it programatically to enable my Addin.

Thanks
Balaji


  #10  
Old July 18th 07, 03:59 PM posted to microsoft.public.outlook.program_addins
Mark J. McGinty
external usenet poster
 
Posts: 56
Default Programmatically enable Add-ins


wrote in message
ups.com...
Hi,
If such a crash occurs, i want to handle it.
I think we may not be able to handle all crash scenarios for Addins as
they reside inside Outlook.
So i wanted to handle it programatically to enable my Addin.


They occur inside of Outlooks address space, but they are likely caused by
your AddIn's failure to release everything it has referenced and/or
allocated.

I usually add a call to OutputDebugString in each of the AddIn's shut-down
event handlers, and run a debugging port listener to monitor it. You should
see OnBeginShutdown, OnDisconnection and Terminate fire; if any of them
don't, your code has failed to release something, and that's what's causing
Outlook to crash, and that's why Outlook fingers your code as the culprit,
and disables it.

Ask yourself: does Outlook crash if my AddIn is not installed?.

If the answer is 'yes' then remove any other AddIns to eliminate them as
source of the problem, and if it still crashes with no AddIns, reinstall
Office, or do whatever else it takes to get Outlook stable all by itself
before continuing your project -- because trying to develop and test
software in a corrupted environment is just plain dumb.

If the answer is 'no' that should tell you something important, that you've
obviously overlooked, and are now attempting to discount...

So I'll spell it out for you once again: your AddIn is causing Outlook to
crash, because it's not releasing everthing it's using, and thus failing to
shut down correctly. Fix that problem, and Outlook will cease to crash.

-Mark




Thanks
Balaji



 




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
How to programmatically enable a rule? PW Outlook and VBA 1 April 20th 07 06:17 AM
enable and permissions Adeeā„¢ Outlook - Calandaring 0 April 9th 07 03:02 PM
How to enable com addin Rob Outlook - General Queries 2 March 19th 07 05:48 PM
Enable rules for MSN? Richard Lewis Haggard Outlook - General Queries 1 April 4th 06 05:42 PM
enable macros Joanne Outlook and VBA 3 February 24th 06 05:44 PM


All times are GMT +1. The time now is 06:23 AM.


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.