3

Just wondering if anyone has had any experience with installing hardware drivers via a Java Applet. I'm currently writing an applet that will be accessing some hardware and will be embedded into a web page. In order to make things easier for end users I would like to have it detect if the drivers are installed and if not install them.

This will be a signed applet, so it should be able to access files and system information. From what I understand, drivers are just a few system files being placed in the right spot with a few registry settings as well.

Is this doable? I can't find any info online about doing this.

4

1 に答える 1

4

Windows では、こちらで説明されている方法(reg コマンドを実行)を使用してレジストリにアクセスできると思います。

もう 1 つのアプローチは、このJNI レジストリ インターフェイスです。

ただし、どちらが最も簡単なアプローチかはわかりません。おそらく、関連するドライバー クラスのロードを試みることができます。それが失敗した場合は、通常の Windows インストーラー .msi または .exe をダウンロードして、実際のドライバーのインストールを行います。通常、インストーラーをユーザーから非表示にする必要がある場合は、ユーザーの操作なしで「サイレント」に実行するようにインストーラーを構成できます。ただし、新しいハードウェア ドライバーでは Windows を再起動する必要がある可能性が高いため、それは的外れかもしれません。

おそらく遭遇するであろうもう 1 つの問題は、ほとんどのドライバーがインストールに管理者アクセスを必要とすることです。

于 2009-11-27T16:30:19.170 に答える