Link to home
Start Free TrialLog in
Avatar of hardtnf
hardtnf

asked on

Setting a registry entry from a web page

Is there a way to set a registry
entry from a web page? It's fine if
a dialog pops and alerts the user
that this is going to happen. It needs
to work from both netscape and ie.
I realize there are intrinsic security
issues but surely there is a way to do
this. Code please. Anyone?
Avatar of Jan Louwerens
Jan Louwerens
Flag of United States of America image

I'm pretty sure there's no way to do it outside of writing your own plugin or ActiveX control to do it. Most web stuff is, in theory, supposed to be platform independent, but registry settings are OS specific
jeez, I forgot I was in the Java section... you could probably write an applet or servlet to do it, also...
Avatar of hardtnf
hardtnf

ASKER

Right, I was hoping there was some
way to do it with a java applet...
Anyone?
Wether you like it or not, the only answer is that it is _impossible_ to do from a Java Applet. No Servlet or other server side code will help, for obvious reasons (it runs on the server). This can't be done in Java, and for good reasons too.

The only way you are going to change registry entries on someones machine from a webpage is in persuading that person to download some form of executable content, written in C for windows specificly. Like someone mentioned, your best bet here is ActiveX, or in case of netscape, a plugin.
Avatar of hardtnf

ASKER

Well, I need just a little more info.
What's up with Visual J++? I see that
there is a registry editing class in
the WFC, will these run only in IE?
Are these only for java programs?
Yes, they most definitely won't run in netscape. And though I can't check as I don't use the WFC, almost certainly they won't run in an applet even under IE. They are meant for "Java as a windows programming language".
you can implement signed applet, that downloads some native code (.DLL or even .EXE) and executes it. and it will work on both NN & IE - at least most of the time :).

so, it is possible, but I don't like the idea at all :)
you can implement signed applet, that downloads some native code (.DLL or even .EXE) and executes it. and it will work on both NN & IE - at least most of the time :).

so, it is possible, but I don't like the idea at all :)
you can implement signed applet, that downloads some native code (.DLL or even .EXE) and executes it. and it will work on both NN & IE - at least most of the time :).

so, it is possible, but I don't like the idea at all :)
you can implement signed applet, that downloads some native code (.DLL or even .EXE) and executes it. and it will work on both NN & IE - at least most of the time :).

so, it is possible, but I don't like the idea at all :)
ASKER CERTIFIED SOLUTION
Avatar of vladi21
vladi21

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hardtnf

ASKER

THanks for the info.