IE Addon disabled event handling

Add-in Express™ Support Service
That's what is more important than anything else

IE Addon disabled event handling
 
Ian Walker




Posts: 10
Joined: 2012-06-21
Is there a way to detect when an addon is being disabled?

I ideally need to run some cleanup code when my addon is disabled (not uninstalled) by the user
Posted 07 May, 2014 07:18:55 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Ian,

The add-on is disabled when the Flags value of the key below is 1, 64 or 320.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Ext\Settings\<BHO Guid>\

e.g

if (dwFlag == 1 || dwFlag == 64 || dwFlag == 320)
{
// plugin is disabled
}
Posted 07 May, 2014 09:58:21 Top