question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Building error (makensis)

See original GitHub issue

Desperately trying to get installation package for win and mac 😦 Maybe someone could help me with my first try.

Project structure 2017-02-14_14-31-12

package.json

{
    "version": "1.0.0",
    "productName": "App",
    "name": "electron-quick-start",
    "description": "Test Application.",
    "homepage": "http://foo.example.com",
    "author": "Mi Mo Mu",
    "license": "MIT",
    "main": "main.js",
    "scripts": {
        "start": "electron ."
    },
    "build": {
        "asar": true,
        "appId": "com.company.application",
        "copyright": "Copyright 2016 Corporation. All rights reserved.",
        "productName": "Application",
        "mac": {
            "title": "Test Title",
            "target": "dmg"
        },
        "win": {
            "target": "nsis"
        },
        "nsis": {
            "perMachine": true
        }
    },
    "devDependencies": {
        "electron": "latest",
        "electron-builder": "latest",
        "electron-packager": "latest"
    }
}

Terminal output

C:\Users\it\Desktop\test_builder>build No native production dependencies Packaging for win32 x64 using electron 1.4.15 to dist\win-unpacked ⚠️ Application icon is not set, default Electron icon will be used Building NSIS installer Packaging NSIS installer for arch x64 Error: C:\Users\it\AppData\Local\electron-builder\cache\nsis\nsis-3.0.1.7\Bin\makensis.exe exited with code 3221225781 at ChildProcess.childProcess.once.code (C:\Users\it\AppData\Roaming\npm\node_modules\electron-builder\node_modules\electron-builder -util\src\util.ts:134:14) at ChildProcess.g (events.js:291:16) at emitTwo (events.js:106:13) at ChildProcess.emit (events.js:191:7) at maybeClose (internal/child_process.js:877:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) From previous event: at C:\Users\it\AppData\Roaming\npm\node_modules\electron-builder\src\targets\nsis.ts:368:5 at next (native) at runCallback (timers.js:649:20) at tryOnImmediate (timers.js:622:5) at processImmediate [as _immediateCallback] (timers.js:594:5) From previous event: at NsisTarget.executeMakensis (C:\Users\it\AppData\Roaming\npm\node_modules\electron-builder\out\targets\nsis.js:417:11) at C:\Users\it\AppData\Roaming\npm\node_modules\electron-builder\src\targets\nsis.ts:199:16 From previous event: at NsisTarget.computeScript (C:\Users\it\AppData\Roaming\npm\node_modules\electron-builder\out\targets\nsis.js:270:11) at C:\Users\it\AppData\Roaming\npm\node_modules\electron-builder\src\targets\nsis.ts:174:68 at next (native) at runCallback (timers.js:649:20) at tryOnImmediate (timers.js:622:5) at processImmediate [as _immediateCallback] (timers.js:594:5) From previous event: at NsisTarget.buildInstaller (C:\Users\it\AppData\Roaming\npm\node_modules\electron-builder\out\targets\nsis.js:243:11) at C:\Users\it\AppData\Roaming\npm\node_modules\electron-builder\src\targets\nsis.ts:71:18 at next (native) From previous event: at NsisTarget.finishBuild (C:\Users\it\AppData\Roaming\npm\node_modules\electron-builder\out\targets\nsis.js:154:11) at C:\Users\it\AppData\Roaming\npm\node_modules\electron-builder\src\packager.ts:237:31 From previous event: at Packager.doBuild (C:\Users\it\AppData\Roaming\npm\node_modules\electron-builder\out\packager.js:350:11) at C:\Users\it\AppData\Roaming\npm\node_modules\electron-builder\src\packager.ts:157:38 at next (native) at runCallback (timers.js:649:20) at tryOnImmediate (timers.js:622:5) at processImmediate [as _immediateCallback] (timers.js:594:5) From previous event: at Packager.build (C:\Users\it\AppData\Roaming\npm\node_modules\electron-builder\out\packager.js:256:11) at C:\Users\it\AppData\Roaming\npm\node_modules\electron-builder\src\builder.ts:217:65 at next (native) From previous event: at build (C:\Users\it\AppData\Roaming\npm\node_modules\electron-builder\out\builder.js:71:21) at Object.<anonymous> (C:\Users\it\AppData\Roaming\npm\node_modules\electron-builder\out\cli\build-cli.js:71:41) at Module._compile (module.js:570:32) at Object.Module._extensions…js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:509:3

C:\Users\it\Desktop\test_builder>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
UltraDosaafcommented, Feb 16, 2017

Tested on 4 more PCs and… you was totaly right, it is missed Windows update. Spasibo, Vladimir!

0reactions
UweKeimcommented, Oct 31, 2022

Just came here via Google. In my case the cause was that the “Bin” folder of my NSIS3 installation was missing (due to my own fault).

Maybe this information may help others in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NSIS - electron-builder
Defaults to build/installerIcon.ico or application icon. ... true Boolean - If warningsAsErrors is true (default): NSIS will treat warnings as errors.
Read more >
makensis: Stop on error - NSIS Forums
Hi everyone, Have a simple request and will be very happy if it can be done. I'm batch-building a lot of installs, the...
Read more >
How do i create cordova electron build with `nsis-web ...
I am trying to create a cordova electron build with package type ... i dont pass the extra parameter appPackageUrl it gives following...
Read more >
Appendix G: Building NSIS - SourceForge
NSIS version 2.07 introduced a new build system, based on SCons. ... In case of errors about the compiler or the Platform SDK...
Read more >
pipeline mvn build stopped working on makensis
my existing pipeline stopped working on building windows setup with ... 1: /opt/nsis-2.46/bin/makensis: Syntax error: word unexpected (expecting ")").
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found