I need to create an extension for Google Chrome that runs an .exe or something similar

2

I need to make my website run a local system (your .exe), passing some attributes to the executable, I want to make an extension for Google Chrome so that I can pass the parameters for it to run the program. How do I do that? If it is not possible, can you do something similar?

    
asked by anonymous 05.08.2016 / 21:42

1 answer

3

This is not possible, there is no way around it because it is intentional that it is not possible (for security reasons) that it is possible to fire an executable

What you can do is try to recreate your .exe as a WebExtension or as a ChromeApp, in the case of ChromeApp you can call it the first extension using link

It was previously possible to use NPAPI to load dlls, but NPAPI was removed.

However, note that you can use NPAPI to load DLLs for example:

The manifest.json should look like this:

{
  "name": "My extension",
  ...
  "plugins": [
    { "path": "extension_plugin.dll" }
  ],
  ...
}

Use should look something like:

<embed type="application/x-my-extension" id="pluginId">
<script>
  var plugin = document.getElementById("pluginId");
  var result = plugin.myPluginMethod();  // call a method in your plugin
  console.log("my plugin returned: " + result);
</script>

    
07.09.2016 / 02:15