You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it / would it be possible to embed another exe inside an Electron application?
For a project I am working on we have built a series of Electron applications for a Games Suite that runs on Windows but because they are all separate exe's, there can be some lag when loading and focusing applications. Ideally I'd like to just load a window and then load the game inside of that. So we can have one application with many windows and mange the windows instead.
I've read on the web from various articles that you can embed an exe inside another exe... but wonder if the same can be achieved in Electron using NodeJS / Native Client in Chrome.
If the other apps are electron apps, you don't need the executable, just the app folder or app.asar.
Take a look at #2415 for some ideas.
If you really want to run the multiple apps in a single app with multiple windows, I suggest that you refactor your apps so each app will be wrapped in a module with a method for creating the app window.
Reacted by Andrew Margetts, Clue and Laion Gabriel
If the other apps are electron apps, you don't need the executable, just the app folder or app.asar.
Take a look at #2415 for some ideas.
If you really want to run the multiple apps in a single app with multiple windows, I suggest that you refactor your apps so each app will be wrapped in a module with a method for creating the app window.
—
Reply to this email directly or view it on GitHub.
You can use Enigma Virtual Box to embed other executables into electron.exe and run them using the child_process module. If you have a choice, I think it's better to just distribute them as separate executables, both because the performance will be better and updates will be smaller (electron.exe is ~45MB).
It is possible to embed any file into an executable on Windows, but it won't have any good impact on the performance, you always have to extract the file into filesystem and then execute it.
I'm closing this since we are not going to implement it in Electron regardless of the performance, and it can be easily implemented as a Node module.
I think it's better to just distribute them as separate executables, both because the performance will be better and updates will be smaller
What if we run Electron in a kiosk mode straight from boot, and want to use it to run other apps inside of it? Is that possible? For example, other X11 apps in Linux.
Reacted by Captain Yoshi, Jeremy Rumble, Alexey Murz Korepov, Piotr Ładoński, Gabriel Garcia and Cashton Harmer
Activity
etiktin commentedon Aug 6, 2015
If the other apps are electron apps, you don't need the executable, just the app folder or app.asar.
Take a look at #2415 for some ideas.
If you really want to run the multiple apps in a single app with multiple windows, I suggest that you refactor your apps so each app will be wrapped in a module with a method for creating the app window.
iamdriz commentedon Aug 6, 2015
Not all the apps are electron apps.
Sent from my iPhone
etiktin commentedon Aug 6, 2015
You can use Enigma Virtual Box to embed other executables into electron.exe and run them using the
child_processmodule. If you have a choice, I think it's better to just distribute them as separate executables, both because the performance will be better and updates will be smaller (electron.exe is ~45MB).zcbenz commentedon Aug 24, 2015
It is possible to embed any file into an executable on Windows, but it won't have any good impact on the performance, you always have to extract the file into filesystem and then execute it.
I'm closing this since we are not going to implement it in Electron regardless of the performance, and it can be easily implemented as a Node module.
trusktr commentedon Jul 28, 2017
What if we run Electron in a kiosk mode straight from boot, and want to use it to run other apps inside of it? Is that possible? For example, other X11 apps in Linux.