Skip to main content

Can I Programmatically choose Plugin (outside of the HTML code)??

1 reply [Last post]
cyborat
Offline
Joined: 2006-09-12
Points: 0

I am currently tasked with writing a custom browser for our company using the AxWebBrowser control, and I'm doing it in C#. It's working nicely, and I've got everything working according to their specs, save for one requirement: Choosing the java plugin at runtime, via a config setting.

I've got tons of XML config settings that I import and utilize within my browser. Using one of these parameters, I need to be able to tell the browser what plugin version to use at launch. I cannot rely on using CLSID or MIME types, since in this scenario, the HTML involved will all be handled by the clients.

I've tinkered with many things to try to find a solution here, but so far, I am hitting a brick wall. I have tried setting some Registry settings to see if I could enforce a specific java plugin when the browser launches, but if I am to tamper with the registry settings, I need to know exactly which ones to use, so it does not end up behaving like a cludgy hack, and possibly leave corrupted registry settings lying around.

I cannot rely on using the Java Plugin Control panel, since this should be done seamlessly, and programmatically according to my XML setting for the plugin. Each user that logs in to the terminal, will have their own config file, and this file gives the browser its environment settings (security settings, enable/disable scripts/activex, etc). I just need to know if this changing of the java plug-in is feasible, without having to use the control panel and without tampering with the HTML (since that is out of my control, and we cannot rely on or force the client to update their HTML code).

Any help/suggestions here would be very much appreciated. Even finding out that this can not be done would at least be a definitive answer (if it is indeed true).

Thanks very much in advance!!!

--Mick Casper

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cyborat
Offline
Joined: 2006-09-12
Points: 0

*cricket cricket*

*cricket cricket*

I guess that means this is either a very obscure request, or it is not easily done, and noone here has found a reliable way?

I've looked into the possibility of trying to reproduce the registry updates the java plugin makes, but from version to version, the registry keys that get changed differ quite a bit. Specifically, with 1.5+ - in these versions, it looks like Sun has decided to be confident in backwards compaitibility, and make any and all applets run in the newest plugin, even if you specify the CLSID associated for a static versioning setup. At least on my system, when I have 1.5+ installed, all the registry settings seem to tell the system to use the DLLs from the directories of those new builds. I am thinking the backward compatibility is probably mostly reliable, but since I've been specifically asked to get this to work, I feel I'm obligated to dig as far as I can until I come up with nothing left to try.

Any other ideas out there? At all? *cricket cricket*

='^(