question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

failed to load pepflashplayer.dll in build mode

See original GitHub issue

I’m trying to load pepflashplayer.dll in Windows OS using this code:

app.commandLine.appendSwitch('ppapi-flash-path', path.join(__dirname + '/lib/pepflashplayer.dll'))

The package.json file looks like this:

{
  "name": "electron-quick-start",
  "version": "1.0.0",
  "description": "A minimal Electron application",
  "main": "main.js",
  "scripts": {
    "start": "electron .",
    "build": "build --dir"
  },
  "build": {
    "appId" : "cristest",
    "productName" : "testing package",
    "win": {
      "target": "nsis",
      "extraResources": "./lib/*.dll"
    },
    "directories": {
      "buildResources": "resources",
      "output": "release"
    }
  },
  "devDependencies": {
    "electron": "~1.6.2",
    "electron-builder": "^19.16.0"
  }
}

Running npm start will load the flash game ok: dllissue8

Running npm build -w will build the app in release folder, and copy the dll file in release\win-unpacked\resources\lib folder, and running the exe file will fail to load the dll and the flash game will not work: dllissue9

The folder structure looks like this: dllissue9

How could i make the plugin run also in “package mode”?

Issue related to #664

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
develarcommented, Jul 13, 2017
app.commandLine.appendSwitch('ppapi-flash-path', path.join((__dirname.includes(".asar") ? process.resourcesPath : __dirname) + '/lib/pepflashplayer.dll'))
0reactions
Swiminskycommented, May 16, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

pepflashplayer.dll free download
Error loading pepflashplayer.dll. The specified module could not be found. The code execution cannot proceed because pepflashplayer.dll was not found.
Read more >
Unmanaged DLLs fail to load on ASP.NET server
This happens because the managed dlls get shadow copied to a temporary location under the .NET Framework directory.
Read more >
Solved: "Couldn't Load Plugin": New Beta 26.0.0.89 PPAPI d...
The plugin is updated in the system directory, but the plugin fails to work in the Chrome browser. ... There is an issue...
Read more >
Maxsudetectionmeter dll couldn t load plugin - Hutton
A DLL plugin has failed to load correctly. If a new version of Skyrim was just released, the plugin needs to be updated....
Read more >
DLL Not Loading Anymore - Unreal Engine Forums
Compile and run again and you get a DLL not found error. ... Also make sure your Build.cs file is set up correctly: ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found