We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to create installable exe file in Electron?

Platform: JavaScript |
Control: General |
Published Date: November 28, 2016 |
Last Revised Date: May 9, 2019

How to create installable exe file in Electron?

Create the Electron based Syncfusion Application as mentioned in this link. Then package the application using Electron Packager, once packing completed JS_Electron-win32-ia32 folder will be created with Electron package file.

Usage of Electron Installer:

Step1:

Here we are going to create installable.exe file using Electron windows Installer, next open the JS_Electron-win32-ia32 folder and install the below command.

npm install --save-dev electron-winstaller

 

Step2:

Create gulpfile.js file and add the below code. Refer the link for of each Configuration name usage.

var gulp = require('gulp');

var winInstaller = require('electron-windows-installer');

 

gulp.task('create-windows-installer', function (done) {

    winInstaller({

        appDirectory: './node_modules/electron/dist',

        outputDirectory: './release',

        arch: 'ia32',

        authors: "Syncfusion",

        version: "1.0.0",

        iconUrl: "favicon.ico",

        setupIcon: "favicon.ico",

        loadingGif: "ele.gif",

        noMsi:true

    }).then().catch();

});

 

Step 3:

Add the below command for running gulp task.

gulp create-windows-installer

 

Step 4:

Now the release folder is created with .exe file. Then open the .exe file and it will install automatically and opened.

Electron setup

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon