DEV Community

Joshua Lunsford
Joshua Lunsford

Posted on • Edited on

2 1

Getting Flash to work on NWJS 0.25+ on Windows 10

Intro

You might assume that Node Webkit, or NWJS as it's now called, would support flash out of the box or in a simple straight forward way, but it does not.

You can find some of the information needed from a google group discussion. Additional information is contained in a github issue

Below are the steps I used to solve the issue.

Download Flash

  • Install https://get.adobe.com/flashplayer with the PPAPI option
  • Navigate to C:\Windows\System32\Macromed\Flash
  • copy C:\Windows\System32\Macromed\Flash to .\PepperFlash\ in your nw folder

Modify NWJS Application

  • Add the following code in your NWJS application
chrome.contentSettings.plugins.set({
    primaryPattern: "<all_urls>",
    resourceIdentifier: { id: "adobe-flash-player" },
    setting: "allow"
});
Enter fullscreen mode Exit fullscreen mode

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (3)

Collapse
 
maruru profile image
Marco Alka

Just one question: In the light of Adobe digging the Flash-grave, why would you want to revive a corpse?

Collapse
 
jtlunsford profile image
Joshua Lunsford

It's not so much reviving a corpse. It's supporting the plague of zombies we can't get rid of in legacy applications :)

Collapse
 
gl32_byte127x profile image
GL32 • Edited

Since the get.adobe.com/flashplayer site leads to an end-of-life page, is there any way I could still get the files for PPAPI?

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay