Search code examples
javascriptnode.jselectrondesktop-applicationelectron-builder

Bundling MSI installers using Electron Build


I'm currently using Electron Builder to distribute a desktop application we are using in-house. For it to work I need to install ImageMagick and Ghostscript on the Windows systems where I'm going to install this app. I would like to make the installation seamless by having these programs install on the background somehow (or at least I want their MSI installers to popup during installation).

Is this currently feasible ?


Solution

  • Couldn't find a way to trigger custom scripts during install, so I ended up bundling the dependencies' executables as assets. When using Asar one must be careful to make sure that these dependencies are unpacked.

    To get the native dependencies in a portable format one can use The Unarchiver on MacOS to explore the contents of MSI and NSIS installers. 7-Zip 15.05 can also open these.