7

How to install a 3rd party software along with installing of electron app?

My example use case is, I want to use ffmpeg inside my electron app, which is supposed to take screenshot from a video. It can be any other software.

Can I package the app in such a way that the user have to install only my app. And my app is installing ffmpeg for the user without any manual action.

I would like to automate the process of installing ffmpeg during the electron app install on different OSs, if possible.

4 Answers 4

1

Just bundle ffmpeg using extraFiles option.

1
  • 2
    Who manages the download of the ffmpeg executable? what happens on multiple OSs?
    – niksmac
    Dec 22, 2016 at 13:22
1

My app has specific drivers which are different for each platform. In my package json I have:

"extraFiles": [
  {
    "from": "resources/${os}/drivers",
    "to": "resources",
    "filter": [
      "**/*"
    ]
  }
],

This ensures that it gets the correct resources for the platform I'm building and copies them into the built app resources directory. Check out the docs. Both ${os} and ${arch} work in these fields.

1
  • 3
    So shipping the app with the executables is the only option?
    – niksmac
    Jan 15, 2017 at 14:02
1

You can use inno setup for this purpose. I have used it to make an installer that installs exe of nodejs along with my electron app. This method is for windows only.

I have used this youtube video as a tutorial.

0

you can combine a third party installer and your electron app installer into one executable( i.e .exe file) using NSIS. when you try to run the .exe file it will install both the third party app and your app. NSIS is for windows only. NSIS

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.