Search code examples
c#internet-explorerinternet-explorer-11bhoprotected-mode

Disable Internet Explorer prompt 'the program will open outside of protected mode' when running application through BHO


I have written a BHO that will start a console application as soon as the BHO got instantiated. The console application is a simple helper application developed in C# and is placed in local disk C.

When I deployed the BHO on my development machine it worked fine but when deployed on the none development machines, Internet Explorer gives the following popup

I just want to get rid of the above popup

I have tried the following solutions already

Also we cannot disable the protected mode of Internet Explorer as it will allow all other applications including malware.


Solution

  • You could try the ElevationPolicy registry key. The registry settings live in {HKLM/HKCU}\Software\Microsoft\Internet Explorer\Low Rights\ElevationPolicy with a unique GUID for each application. You should find the key your application lies on and change the Policy value to 3 and restart IE to try again.

    For more detailed information, you could refer to this article.