سؤال

I want to install a NPAPI plugin as soon as my web page detects if the plugin is not there.

The installation or a batch script should be run in the background without asking the user. But I think installation will require user permission, so running a batch file is preferable.

If I need to run a batch to register the plugin's dll from javascript, how can I do that?

هل كانت مفيدة؟

المحلول

You can't. If you find a way to do so anyway, please let us know so that the security vulnerability can be fixed.

If you could automatically run a script, installer, or batch file without the user's permission or knowledge that would be called a "virus". that's generally considered a bad thing...

You could look into Native Client, though it only works on Chrome; Native Client plugins can be installed without user intervention because they are sandboxed with limited access to the user's computer.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top