electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.63k stars 1.74k forks source link

ERR_ELECTRON_BUILDER_CANNOT_EXECUTE #5134

Closed MisterOryon closed 11 months ago

MisterOryon commented 4 years ago

I come to you because after several days of research I did not manage to correct this problem, when i try to create an nsis installer. you will find attached my json file is the error. if anyone has an answer to my problem please help me please.

node: v12.18.2 npm: 6.14.5

{ "name": "electron-quick-start", "version": "2.0.0", "description": "A minimal Electron application", "main": "main.js", "repository": { "type": "git", "url": "git+https://github.com" }, "keywords": [ "Electron" ], "author": "GitHub", "license": "CC0-1.0", "devDependencies": { "electron": "^9.1.0", "electron-builder": "^22.0.0" }, "scripts": { "start": "electron .", "pack": "electron-builder --dir", "dist": "electron-builder" }, "build": { "appId": "yourappid", "win": { "target": "NSIS" } } }

electron-builder version=22.7.0 os=10.0.19041 • loaded configuration file=package.json ("build" field) • writing effective config file=dist\builder-effective-config.yaml • packaging platform=win32 arch=x64 electron=9.1.0 appOutDir=dist\win-unpacked • default Electron icon is used reason=application icon is not set • building target=nsis file=dist\electron-quick-start Setup 1.0.0.exe archs=x64 oneClick=true perMachine=false ⨯ C:\Users\C**_M***\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.4.1\Bin\makensis.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE Output: