Installing drivers through the Java applet

Just wondering if anyone has experience installing device drivers through a Java applet. I am currently writing an applet that will access some hardware and will be embedded in a web page. To facilitate the work of end users, I would like it to find out if drivers are installed and if they are not installed.

This will be a signed applet, so it must have access to files and system information. As far as I understand, drivers are just a few system files located in the right place with several registry settings.

Is this doable? I can not find information on the Internet about this.

+3
source share
1 answer

In windows, I assume that you can access the registry using the method described here (running the reg command).

Another approach is the JNI registry interface .

I am not sure if this is the easiest way. You might just try loading the appropriate driver classes, and if that fails to load the regular Windows.msi or .exe installer to complete the actual driver installation. You can usually configure the installer to silently without user interaction, if absolutely necessary, to hide it from the user. However, this may be due to the fact that the new device driver will probably need to restart Windows.

, , , , , .

+4

Source: https://habr.com/ru/post/1724125/


All Articles