Click here to Skip to main content
15,907,910 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,
I am creating an IE addons(BHO) now i want to know whether at client machine, my BHO is already installed or not.

So can anybody suggest how can i find out this.

Any help is appreciated.
Posted

1 solution

Hi, you could attempt to create the BHO object and you would detect whether the creation process returned null.

Note* I believe this only works if your BHO is marked 'safe for scripting'

Javascript below:

C#
var control = null;

try
{

control = new ActiveXObject('ProgID');
if(control = null)
{
alert('Plugin not installed');
}
else
{
alert('Plugin Installed');
}

}
catch(e)
{
alert('Plugin not installed');
}


Remember to replace 'ProgId' with your unique id.

Hope this helps...
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900