failed to load pepflashplayer.dll in build mode
See original GitHub issueI’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:
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:
The folder structure looks like this:
How could i make the plugin run also in “package mode”?
Issue related to #664
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
u can see https://github.com/electron/electron/issues/1779