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.67k stars 1.74k forks source link

Error during packing: Exit status 4294967295 #2017

Closed felipelindemberg closed 7 years ago

felipelindemberg commented 7 years ago

Electron-builder version: 19.27.2 Electron-updater version: 2.8.7

Target: Windows

I'm trying generate a .exe usning the Electron-Builder. On my personal computer is working correctly, but on Windows Server 2012 it is not working.

I've tried several versions of Electron Builder, using Node 7.9.0, 8.2.1, 8.3.0 and I have this error. I've tried to find the cause of the error, but I did not succeed. I have already cleared the cache of all NPM and Electron folders.

Error: Exit code: 2. Command failed: C:\Users\Administrator\Documents\onscreen-control\app-package\OnLg Setup 0.5.1.exe

    at C:\Users\Administrator\Documents\onscreen-control\node_modules\builder-util\src\util.ts:86:16
    at ChildProcess.exithandler (child_process.js:212:5)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:194:7)
    at maybeClose (internal/child_process.js:899:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
From previous event:
    at exec (C:\Users\Administrator\Documents\onscreen-control\node_modules\builder-util\src\util.ts:58:3)
    at execWine (C:\Users\Administrator\Documents\onscreen-control\node_modules\builder-util\src\wine.ts:36:12)
    at C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\targets\nsis\nsis.ts:260:11
From previous event:
    at NsisTarget.computeScriptAndSignUninstaller (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\targets\nsis\nsis.js:350:11)
    at C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\targets\nsis\nsis.ts:215:114
    at Generator.next (<anonymous>)
    at runCallback (timers.js:672:20)
    at tryOnImmediate (timers.js:645:5)
    at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
    at NsisTarget.buildInstaller (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\targets\nsis\nsis.js:315:11)
    at C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\targets\nsis\nsis.ts:102:18
    at Generator.next (<anonymous>)
From previous event:
    at NsisTarget.finishBuild (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\targets\nsis\nsis.js:206:11)
    at C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\packager.ts:267:36
From previous event:
    at Packager.doBuild (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\packager.js:338:11)
    at C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\packager.ts:185:52
    at Generator.next (<anonymous>)
From previous event:
    at Packager.build (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\packager.js:257:11)
    at C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\builder.ts:266:40
    at Generator.next (<anonymous>)
    at build (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\builder.js:69:21)
    at loadEnv.then (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\cli\cli.ts:49:4)
From previous event:
    at build (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\builder.js:69:21)
    at loadEnv.then (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\cli\cli.js:155:79)
    at runCallback (timers.js:672:20)
    at tryOnImmediate (timers.js:645:5)
    at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
    at Object.args [as handler] (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\cli\cli.js:155:68)
    at Object.self.runCommand (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\node_modules\yargs\lib\command.js:233:22)
    at Object.Yargs.self._parseArgs (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\node_modules\yargs\yargs.js:1018:24)
    at Object.get [as argv] (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\node_modules\yargs\yargs.js:927:19)
    at Object.<anonymous> (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\cli\cli.js:151:465)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:423:7)
    at startup (bootstrap_node.js:147:9)
    at bootstrap_node.js:538:3

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dist-win"
npm ERR! node v7.9.0
npm ERR! npm  v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 4294967295
npm ERR! onscreen-control@0.5.1 dist-win: `npm run build-electron && cpx src\electron\*.* dist && build --win --%ARCH%`
npm ERR! Exit status 4294967295
npm ERR!
npm ERR! Failed at the onscreen-control@0.5.1 dist-win script 'npm run build-electron && cpx src\electron\*.* dist && build --win --%ARCH%'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the onscreen-control package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run build-electron && cpx src\electron\*.* dist && build --win --%ARCH%
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs onscreen-control
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls onscreen-control
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2017-08-30T21_39_08_755Z-debug.log

I'm using the environment variable ARCH to define the architecture of .exe.

My package.json is:

{
  "name": "xxx",
  "version": "0.5.1",
  "license": "MIT",
  "scripts": {
    "ng": "ng",
    "build-electron": "ng build --base-href .",
    "copy-dist": "cp src/electron/* dist/",
    "start": "npm run build-electron && npm run copy-dist && electron dist",
    "clean": "npm run clean-dist && npm run clean-packages",
    "clean-dist": "rm -rf dist/",
    "clean-packages": "rm -rf app-package/",
    "dist": "npm run clean && npm run build-electron && npm run copy-dist",
    "dist-win": "npm run build-electron && cpx src\\electron\\*.* dist && build --win --%ARCH%",
    "dist-linux": "npm run build-electron && npm run copy-dist && build --linux --$ARCH",
    "test": "ng test",
    "lint": "ng lint --force --format checkstyle > reports/checkstyle.xml",
    "e2e": "ng e2e"
  },
  "author": "Virtus UFCG <contato@virtus.ufcg.edu.br> (http://www.virtus.ufcg.edu.br/)",
  "private": true,
  "dependencies": {
    "@angular/animations": "^4.3.3",
    "@angular/common": "^4.0.0",
    "@angular/compiler": "^4.0.2",
    "@angular/core": "^4.0.0",
    "@angular/forms": "^4.0.0",
    "@angular/http": "^4.0.0",
    "@angular/platform-browser": "^4.0.0",
    "@angular/platform-browser-dynamic": "^4.0.0",
    "@angular/router": "^4.0.0",
    "@ngx-translate/core": "^7.0.0",
    "@ngx-translate/http-loader": "^0.1.0",
    "@types/socket.io-client": "^1.4.29",
    "bootstrap": "^3.3.7",
    "brace": "^0.10.0",
    "code-point-at": "^1.1.0",
    "core-js": "^2.4.1",
    "debug": "^2.6.8",
    "electron-updater": "^2.8.7",
    "electron-log": "^2.2.7",
    "ion-rangeslider": "^2.1.8",
    "jquery": "^3.2.1",
    "js-yaml": "^3.8.4",
    "lodash": "^4.17.4",
    "ng2-ion-range-slider": "^1.0.3",
    "ng2-slideable-directive": "^1.0.13",
    "ng2-slider-component": "^1.0.9",
    "ng2-styled-directive": "^1.0.5",
    "ngx-bootstrap": "^1.7.1",
    "ngx-dropdown": "^0.0.22",
    "request": "^2.81.0",
    "request-promise": "^4.2.1",
    "rxjs": "^5.1.0",
    "save": "^2.3.1",
    "socket.io-client": "^2.0.3",
    "zone.js": "^0.8.4"
  },
  "devDependencies": {
    "@angular/cli": "^1.0.4",
    "@angular/compiler-cli": "^4.0.2",
    "@types/jasmine": "^2.5.38",
    "@types/jquery": "^2.0.47",
    "@types/node": "^6.0.80",
    "codelyzer": "^2.0.0",
    "devtron": "^1.4.0",
    "electron": "^1.7.6",
    "electron-builder": "^19.27.2",
    "electron-debug": "^1.3.0",
    "jasmine-core": "^2.5.2",
    "jasmine-spec-reporter": "^3.2.0",
    "karma": "^1.4.1",
    "karma-chrome-launcher": "^2.1.1",
    "karma-cli": "^1.0.1",
    "karma-coverage-istanbul-reporter": "^0.2.0",
    "karma-jasmine": "^1.1.0",
    "karma-jasmine-html-reporter": "^0.2.2",
    "node-sass": "^4.5.3",
    "protractor": "^5.1.0",
    "ts-node": "^2.0.0",
    "tslint": "^4.5.0",
    "typescript": "^2.2.0"
  },
  "build": {
    "publish": [
      {
        "provider": "generic",
        "url": "http://127.0.0.1:8080/"
      }
    ],
    "directories": {
      "app": "./dist",
      "output": "app-package"
    },
    "win": {
      "icon": "./src/assets/icon/OSC_256_256.ico"
    },
    "nsis": {
      "include": "./scripts/installer.nsh",
      "oneClick": "true",
      "perMachine": "true"
    },
    "linux": {
      "target": "deb",
      "maintainer": "Virtus",
      "icon": "./src/assets/icon",
      "category": "Utility"
    }  }
}

I will be grateful with some help.

develar commented 7 years ago

Please set env DEBUG=electron-builder and attach log of the terminal output.

felipelindemberg commented 7 years ago

The output with DEBUG enable.

$ DEBUG=electron-builder,electron-builder:* node_modules/.bin/electron-builder build --win --x64
electron-builder 19.27.2
2017-08-30T21:25:25.663Z electron-builder Effective config:
publish:
  - provider: generic
    url: 'http://127.0.0.1:8080/'
directories:
  app: ./dist
  output: app-package
win:
  icon: ./src/assets/icon/OSC_256_256.ico
nsis:
  include: ./scripts/installer.nsh
  oneClick: 'true'
  perMachine: 'true'
linux:
  target: deb
  maintainer: Virtus
  icon: ./src/assets/icon
  category: Utility

2017-08-30T21:25:26.419Z electron-builder Two package.json structure is used (dev: C:\Users\Administrator\Documents\onscreen-control\package.json, app: C:\Users\Administrator\Documents\onscreen-control\dist\package.json)
No native production dependencies
Packaging for win32 x64 using electron 1.7.6 to app-package\win-unpacked
2017-08-30T21:25:28.132Z electron-builder Spawning C:\Users\Administrator\Documents\onscreen-control\node_modules\7zip-bin-win\x64\7za.exe x -bd -bb C:\Users\Administrator\AppData\Local\electron\Cache\electron-v1.7.6-win32-x64.zip -aoa -oC:\Users\Administrator\Documents\onscreen-control\app-package\win-unpacked

7-Zip (a) 17.00 beta (x64) : Copyright (c) 1999-2017 Igor Pavlov : 2017-04-29

Scanning the drive for archives:
1 file, 53897098 bytes (52 MiB)

Extracting archive: C:\Users\Administrator\AppData\Local\electron\Cache\electron-v1.7.6-win32-x64.zip
--
Path = C:\Users\Administrator\AppData\Local\electron\Cache\electron-v1.7.6-win32-x64.zip
Type = zip
Physical Size = 53897098

- electron.exe
- content_shell.pak
- pdf_viewer_resources.pak
- d3dcompiler_47.dll
- icudtl.dat
- libEGL.dll
- libGLESv2.dll
- ffmpeg.dll
- node.dll
- blink_image_resources_200_percent.pak
- content_resources_200_percent.pak
- ui_resources_200_percent.pak
- views_resources_200_percent.pak
- natives_blob.bin
- snapshot_blob.bin
- msvcp140.dll
- vcruntime140.dll
- api-ms-win-core-console-l1-1-0.dll
- api-ms-win-core-datetime-l1-1-0.dll
- api-ms-win-core-debug-l1-1-0.dll
- api-ms-win-core-errorhandling-l1-1-0.dll
- api-ms-win-core-file-l1-1-0.dll
- api-ms-win-core-file-l1-2-0.dll
- api-ms-win-core-file-l2-1-0.dll
- api-ms-win-core-handle-l1-1-0.dll
- api-ms-win-core-heap-l1-1-0.dll
- api-ms-win-core-interlocked-l1-1-0.dll
- api-ms-win-core-libraryloader-l1-1-0.dll
- api-ms-win-core-localization-l1-2-0.dll
- api-ms-win-core-memory-l1-1-0.dll
- api-ms-win-core-namedpipe-l1-1-0.dll
- api-ms-win-core-processenvironment-l1-1-0.dll
- api-ms-win-core-processthreads-l1-1-0.dll
- api-ms-win-core-processthreads-l1-1-1.dll
- api-ms-win-core-profile-l1-1-0.dll
- api-ms-win-core-rtlsupport-l1-1-0.dll
- api-ms-win-core-string-l1-1-0.dll
- api-ms-win-core-synch-l1-1-0.dll
- api-ms-win-core-synch-l1-2-0.dll
- api-ms-win-core-sysinfo-l1-1-0.dll
- api-ms-win-core-timezone-l1-1-0.dll
- api-ms-win-core-util-l1-1-0.dll
- api-ms-win-crt-conio-l1-1-0.dll
- api-ms-win-crt-convert-l1-1-0.dll
- api-ms-win-crt-environment-l1-1-0.dll
- api-ms-win-crt-filesystem-l1-1-0.dll
- api-ms-win-crt-heap-l1-1-0.dll
- api-ms-win-crt-locale-l1-1-0.dll
- api-ms-win-crt-math-l1-1-0.dll
- api-ms-win-crt-multibyte-l1-1-0.dll
- api-ms-win-crt-private-l1-1-0.dll
- api-ms-win-crt-process-l1-1-0.dll
- api-ms-win-crt-runtime-l1-1-0.dll
- api-ms-win-crt-stdio-l1-1-0.dll
- api-ms-win-crt-string-l1-1-0.dll
- api-ms-win-crt-time-l1-1-0.dll
- api-ms-win-crt-utility-l1-1-0.dll
- ucrtbase.dll
- LICENSE
- LICENSES.chromium.html
- version
- resources\default_app.asar
- resources\electron.asar
- locales\am.pak
- locales\ar.pak
- locales\bg.pak
- locales\bn.pak
- locales\ca.pak
- locales\cs.pak
- locales\da.pak
- locales\de.pak
- locales\el.pak
- locales\en-GB.pak
- locales\en-US.pak
- locales\es-419.pak
- locales\es.pak
- locales\et.pak
- locales\fa.pak
- locales\fake-bidi.pak
- locales\fi.pak
- locales\fil.pak
- locales\fr.pak
- locales\gu.pak
- locales\he.pak
- locales\hi.pak
- locales\hr.pak
- locales\hu.pak
- locales\id.pak
- locales\it.pak
- locales\ja.pak
- locales\kn.pak
- locales\ko.pak
- locales\lt.pak
- locales\lv.pak
- locales\ml.pak
- locales\mr.pak
- locales\ms.pak
- locales\nb.pak
- locales\nl.pak
- locales\pl.pak
- locales\pt-BR.pak
- locales\pt-PT.pak
- locales\ro.pak
- locales\ru.pak
- locales\sk.pak
- locales\sl.pak
- locales\sr.pak
- locales\sv.pak
- locales\sw.pak
- locales\ta.pak
- locales\te.pak
- locales\th.pak
- locales\tr.pak
- locales\uk.pak
- locales\vi.pak
- locales\zh-CN.pak
- locales\zh-TW.pak
Everything is Ok

Files: 117
Size:       138472204
Compressed: 53897098
2017-08-30T21:25:30.709Z electron-builder 7za.exe (4052) exited with exit code 0
2017-08-30T21:25:32.022Z electron-builder:publish Explicit publish provider: [
  {
    "provider": "generic",
    "url": "http://127.0.0.1:8080/"
  }
]
2017-08-30T21:25:32.069Z electron-builder:binDownload Found existing winCodeSign C:\Users\Administrator\AppData\Local\electron-builder\cache\winCodeSign\winCodeSign-1.9.0
2017-08-30T21:25:32.070Z electron-builder Executing C:\Users\Administrator\AppData\Local\electron-builder\cache\winCodeSign\winCodeSign-1.9.0\rcedit.exe C:\Users\Administrator\Documents\onscreen-control\app-package\win-unpacked\OnLg.exe --set-version-string FileDescription OnLg --set-version-string ProductName OnLg --set-version-string LegalCopyright Copyright © 2017 Virtus UFCG --set-file-version 0.5.1 --set-product-version 0.5.1.0 --set-version-string InternalName OnLg --set-version-string OriginalFilename  --set-version-string CompanyName Virtus UFCG --set-icon C:\Users\Administrator\Documents\onscreen-control\src\assets\icon\OSC_256_256.ico
wine&sign: 0s 470.846388ms
Building NSIS installer
  Packaging NSIS installer for arch x64
2017-08-30T21:25:32.646Z electron-builder:binDownload Found existing nsis C:\Users\Administrator\AppData\Local\electron-builder\cache\nsis\nsis-3.0.1.13
2017-08-30T21:25:32.679Z electron-builder Spawning C:\Users\Administrator\Documents\onscreen-control\node_modules\7zip-bin-win\x64\7za.exe a -bd -bb -mx=9 -mtc=off -mtm=off -mta=off C:\Users\Administrator\Documents\onscreen-control\app-package\OnLg-0.5.1-x64.nsis.7z .
2017-08-30T21:25:32.680Z electron-builder cwd: C:\Users\Administrator\Documents\onscreen-control\app-package\win-unpacked

7-Zip (a) 17.00 beta (x64) : Copyright (c) 1999-2017 Igor Pavlov : 2017-04-29

Scanning the drive:
2 folders, 118 files, 163945610 bytes (157 MiB)

Creating archive: C:\Users\Administrator\Documents\onscreen-control\app-package\OnLg-0.5.1-x64.nsis.7z

Add new data to archive: 2 folders, 118 files, 163945610 bytes (157 MiB)

+ blink_image_resources_200_percent.pak
+ content_resources_200_percent.pak
+ content_shell.pak
+ icudtl.dat
+ LICENSE.electron.txt
+ LICENSES.chromium.html
+ locales\am.pak
+ locales\ar.pak
+ locales\bg.pak
+ locales\bn.pak
+ locales\ca.pak
+ locales\cs.pak
+ locales\da.pak
+ locales\de.pak
+ locales\el.pak
+ locales\en-GB.pak
+ locales\en-US.pak
+ locales\es-419.pak
+ locales\es.pak
+ locales\et.pak
+ locales\fa.pak
+ locales\fake-bidi.pak
+ locales\fi.pak
+ locales\fil.pak
+ locales\fr.pak
+ locales\gu.pak
+ locales\he.pak
+ locales\hi.pak
+ locales\hr.pak
+ locales\hu.pak
+ locales\id.pak
+ locales\it.pak
+ locales\ja.pak
+ locales\kn.pak
+ locales\ko.pak
+ locales\lt.pak
+ locales\lv.pak
+ locales\ml.pak
+ locales\mr.pak
+ locales\ms.pak
+ locales\nb.pak
+ locales\nl.pak
+ locales\pl.pak
+ locales\pt-BR.pak
+ locales\pt-PT.pak
+ locales\ro.pak
+ locales\ru.pak
+ locales\sk.pak
+ locales\sl.pak
+ locales\sr.pak
+ locales\sv.pak
+ locales\sw.pak
+ locales\ta.pak
+ locales\te.pak
+ locales\th.pak
+ locales\tr.pak
+ locales\uk.pak
+ locales\vi.pak
+ locales\zh-CN.pak
+ locales\zh-TW.pak
+ natives_blob.bin
+ pdf_viewer_resources.pak
+ resources\app-update.yml
+ resources\app.asar
+ resources\electron.asar
+ snapshot_blob.bin
+ ui_resources_200_percent.pak
+ views_resources_200_percent.pak
+ api-ms-win-core-console-l1-1-0.dll
+ api-ms-win-core-datetime-l1-1-0.dll
+ api-ms-win-core-debug-l1-1-0.dll
+ api-ms-win-core-errorhandling-l1-1-0.dll
+ api-ms-win-core-file-l1-1-0.dll
+ api-ms-win-core-file-l1-2-0.dll
+ api-ms-win-core-file-l2-1-0.dll
+ api-ms-win-core-handle-l1-1-0.dll
+ api-ms-win-core-heap-l1-1-0.dll
+ api-ms-win-core-interlocked-l1-1-0.dll
+ api-ms-win-core-libraryloader-l1-1-0.dll
+ api-ms-win-core-localization-l1-2-0.dll
+ api-ms-win-core-memory-l1-1-0.dll
+ api-ms-win-core-namedpipe-l1-1-0.dll
+ api-ms-win-core-processenvironment-l1-1-0.dll
+ api-ms-win-core-processthreads-l1-1-0.dll
+ api-ms-win-core-processthreads-l1-1-1.dll
+ api-ms-win-core-profile-l1-1-0.dll
+ api-ms-win-core-rtlsupport-l1-1-0.dll
+ api-ms-win-core-string-l1-1-0.dll
+ api-ms-win-core-synch-l1-1-0.dll
+ api-ms-win-core-synch-l1-2-0.dll
+ api-ms-win-core-sysinfo-l1-1-0.dll
+ api-ms-win-core-timezone-l1-1-0.dll
+ api-ms-win-core-util-l1-1-0.dll
+ api-ms-win-crt-conio-l1-1-0.dll
+ api-ms-win-crt-convert-l1-1-0.dll
+ api-ms-win-crt-environment-l1-1-0.dll
+ api-ms-win-crt-filesystem-l1-1-0.dll
+ api-ms-win-crt-heap-l1-1-0.dll
+ api-ms-win-crt-locale-l1-1-0.dll
+ api-ms-win-crt-math-l1-1-0.dll
+ api-ms-win-crt-multibyte-l1-1-0.dll
+ api-ms-win-crt-private-l1-1-0.dll
+ api-ms-win-crt-process-l1-1-0.dll
+ api-ms-win-crt-runtime-l1-1-0.dll
+ api-ms-win-crt-stdio-l1-1-0.dll
+ api-ms-win-crt-string-l1-1-0.dll
+ api-ms-win-crt-time-l1-1-0.dll
+ api-ms-win-crt-utility-l1-1-0.dll
+ d3dcompiler_47.dll
+ ffmpeg.dll
+ libEGL.dll
+ libGLESv2.dll
+ msvcp140.dll
+ node.dll
+ OnLg.exe
+ resources\elevate.exe
+ ucrtbase.dll
+ vcruntime140.dll

Files read from disk: 118
Archive size: 36318547 bytes (35 MiB)
Everything is Ok
2017-08-30T21:26:26.612Z electron-builder 7za.exe (1604) exited with exit code 0
nsis package, x64: 53s 950.236165ms
2017-08-30T21:26:26.632Z electron-builder:nsis { APP_ID: 'com.electron.onlg',
  APP_GUID: 'f924a4a2-ec58-535f-9225-21ea6758c74f',
  PRODUCT_NAME: 'OnLg',
  PRODUCT_FILENAME: 'OnLg',
  APP_FILENAME: 'OnLg',
  APP_DESCRIPTION: 'OnScreenControl',
  VERSION: '0.5.1',
  PROJECT_DIR: 'C:\\Users\\Administrator\\Documents\\onscreen-control',
  BUILD_RESOURCES_DIR: 'C:\\Users\\Administrator\\Documents\\onscreen-control\\build',
  COMPANY_NAME: 'Virtus UFCG',
  MUI_ICON: 'C:\\Users\\Administrator\\Documents\\onscreen-control\\src\\assets\\icon\\OSC_256_256.ico',
  MUI_UNICON: 'C:\\Users\\Administrator\\Documents\\onscreen-control\\src\\assets\\icon\\OSC_256_256.ico',
  APP_64: 'C:\\Users\\Administrator\\Documents\\onscreen-control\\app-package\\OnLg-0.5.1-x64.nsis.7z',
  APP_64_NAME: 'OnLg-0.5.1-x64.nsis.7z',
  COMPRESSION_METHOD: '7z',
  ONE_CLICK: null,
  RUN_AFTER_FINISH: null,
  INSTALL_MODE_PER_ALL_USERS: null,
  INSTALL_MODE_PER_ALL_USERS_REQUIRED: null,
  SHORTCUT_NAME: 'OnLg',
  UNINSTALL_DISPLAY_NAME: 'OnLg 0.5.1',
  COMPRESS: 'auto' }
2017-08-30T21:26:26.633Z electron-builder:nsis { OutFile: '"C:\\Users\\Administrator\\Documents\\onscreen-control\\app-package\\OnLg Setup 0.5.1.exe"',
  VIProductVersion: '0.5.1.0',
  VIAddVersionKey:
   [ '/LANG=1033 ProductName "OnLg"',
     '/LANG=1033 ProductVersion "0.5.1"',
     '/LANG=1033 LegalCopyright "Copyright © 2017 Virtus UFCG"',
     '/LANG=1033 FileDescription "OnScreenControl"',
     '/LANG=1033 FileVersion "0.5.1"',
     '/LANG=1033 CompanyName "Virtus UFCG"' ],
  Unicode: true,
  SetCompressor: 'lzma' }
2017-08-30T21:26:26.685Z electron-builder:binDownload Found existing nsis-resources C:\Users\Administrator\AppData\Local\electron-builder\cache\nsis-resources\nsis-resources-3.3.0
2017-08-30T21:26:26.711Z electron-builder:nsis LangString win7Required 1031 "Windows 7 oder höher wird vorausgesetzt"
LangString win7Required 1040 "È necessario disporre del sistema operativo Windows 7 e successivi"
LangString win7Required 1036 "Windows 7 (ou une version ultérieure) est requis"
LangString win7Required 1033 "Windows 7 and above is required"
LangString win7Required 1041 "Windows 7 以降が必要です"
LangString win7Required 1042 "Windows 7 이상이 필요합니다"
LangString win7Required 1049 "Требуется Windows 7 и выше"
LangString win7Required 1051 "Iba Windows 7 a vyššie je podporovaný"
LangString win7Required 1038 "Windows 7 vagy újabb szükséges"
LangString win7Required 1045 "Windows 7 lub nowszy jest wymagany"
LangString win7Required 3082 "Windows 7 and above is required"
LangString win7Required 2052 "Windows 7 and above is required"
LangString win7Required 1028 "Windows 7 and above is required"
LangString win7Required 1043 "Windows 7 and above is required"
LangString win7Required 1030 "Windows 7 and above is required"
LangString win7Required 1053 "Windows 7 and above is required"
LangString win7Required 1044 "Windows 7 and above is required"
LangString win7Required 1035 "Windows 7 and above is required"
LangString win7Required 2070 "Windows 7 and above is required"
LangString win7Required 1058 "Windows 7 and above is required"
LangString win7Required 1029 "Windows 7 and above is required"
LangString win7Required 1025 "Windows 7 and above is required"
LangString x64WinRequired 1031 "64-Bit-Windows wird vorausgesetzt"
LangString x64WinRequired 1040 "È necessario disporre di un sistema operativo Windows a 64 bit"
LangString x64WinRequired 1036 "Windows 64 bits est requis"
LangString x64WinRequired 1033 "64-bit Windows is required"
LangString x64WinRequired 1041 "64 ビット バージョンの Windows が必要です"
LangString x64WinRequired 1042 "64 비트 버전의 Windows가 필요합니다"
LangString x64WinRequired 1049 "Требуется Windows 64-bit"
LangString x64WinRequired 1051 "Potrebujete 64-bit Windows"
LangString x64WinRequired 1038 "64-bit Windows szükséges"
LangString x64WinRequired 1045 "Windows 64-bitowy jest wymagany"
LangString x64WinRequired 3082 "64-bit Windows is required"
LangString x64WinRequired 2052 "64-bit Windows is required"
LangString x64WinRequired 1028 "64-bit Windows is required"
LangString x64WinRequired 1043 "64-bit Windows is required"
LangString x64WinRequired 1030 "64-bit Windows is required"
LangString x64WinRequired 1053 "64-bit Windows is required"
LangString x64WinRequired 1044 "64-bit Windows is required"
LangString x64WinRequired 1035 "64-bit Windows is required"
LangString x64WinRequired 2070 "64-bit Windows is required"
LangString x64WinRequired 1058 "64-bit Windows is required"
LangString x64WinRequired 1029 "64-bit Windows is required"
LangString x64WinRequired 1025 "64-bit Windows is required"
LangString appRunning 1031 "${PRODUCT_NAME} ist geöffnet. $\r$\nKlicken Sie zum Schliessen auf «OK»."
LangString appRunning 1040 "${PRODUCT_NAME} è in esecuzione. $\r$\nPremi OK per chiudere."
LangString appRunning 1036 "${PRODUCT_NAME} est en cours d’utilisation. $\r$\nCliquez sur «OK» pour fermer ce programme."
LangString appRunning 1033 "${PRODUCT_NAME} is running.$\r$\nClick OK to close it."
LangString appRunning 1041 "${PRODUCT_NAME} が実行中です。$\r$\nOK をクリックすると終了します。"
LangString appRunning 1042 "${PRODUCT_NAME}이(가) 실행 중입니다. $\r$\nOK을 클릭하면 종료됩니다."
LangString appRunning 1049 "Приложение ${PRODUCT_NAME} уже запущено.$\r$\nНажмите OK для закрытия."
LangString appRunning 1051 "${PRODUCT_NAME} práve beží.$\r$\nUkončite ho kliknutím na OK."
LangString appRunning 1038 "${PRODUCT_NAME} éppen fut. $\r$\nKattiontson az «OK»-ra a bezárásához."
LangString appRunning 1045 "${PRODUCT_NAME} jest otwarty. Aby zamknąć kliknij na OK."
LangString appRunning 3082 "${PRODUCT_NAME} is running.$\r$\nClick OK to close it."
LangString appRunning 2052 "${PRODUCT_NAME} is running.$\r$\nClick OK to close it."
LangString appRunning 1028 "${PRODUCT_NAME} is running.$\r$\nClick OK to close it."
LangString appRunning 1043 "${PRODUCT_NAME} is running.$\r$\nClick OK to close it."
LangString appRunning 1030 "${PRODUCT_NAME} is running.$\r$\nClick OK to close it."
LangString appRunning 1053 "${PRODUCT_NAME} is running.$\r$\nClick OK to close it."
LangString appRunning 1044 "${PRODUCT_NAME} is running.$\r$\nClick OK to close it."
LangString appRunning 1035 "${PRODUCT_NAME} is running.$\r$\nClick OK to close it."
LangString appRunning 2070 "${PRODUCT_NAME} is running.$\r$\nClick OK to close it."
LangString appRunning 1058 "${PRODUCT_NAME} is running.$\r$\nClick OK to close it."
LangString appRunning 1029 "${PRODUCT_NAME} is running.$\r$\nClick OK to close it."
LangString appRunning 1025 "${PRODUCT_NAME} is running.$\r$\nClick OK to close it."
LangString installing 1031 "Installation läuft, bitte warten..."
LangString installing 1040 "Attendere prego. Installazione in corso..."
LangString installing 1036 "En cours d’installation... Veuillez patienter svp"
LangString installing 1033 "Installing, please wait..."
LangString installing 1041 "インストールしています。しばらくお待ちください..."
LangString installing 1042 "설치하고 있습니다. 잠시 기다려주십시오..."
LangString installing 1049 "Установка, пожалуйста подождите..."
LangString installing 1051 "Inštalujem, prosím počkajte..."
LangString installing 1038 "Telepítés, kérem várjon..."
LangString installing 1045 "Zaczekaj na ukończenie instalacji..."
LangString installing 3082 "Installing, please wait..."
LangString installing 2052 "Installing, please wait..."
LangString installing 1028 "Installing, please wait..."
LangString installing 1043 "Installing, please wait..."
LangString installing 1030 "Installing, please wait..."
LangString installing 1053 "Installing, please wait..."
LangString installing 1044 "Installing, please wait..."
LangString installing 1035 "Installing, please wait..."
LangString installing 2070 "Installing, please wait..."
LangString installing 1058 "Installing, please wait..."
LangString installing 1029 "Installing, please wait..."
LangString installing 1025 "Installing, please wait..."
LangString areYouSureToUninstall 1031 "Sind Sie sicher, dass Sie ${PRODUCT_NAME} deinstallieren möchten?"
LangString areYouSureToUninstall 1040 "Sicuro di voler procedere alla disinstallazione di ${PRODUCT_NAME}?"
LangString areYouSureToUninstall 1036 "Etes-vous sûr(e) de vouloir désinstaller ${PRODUCT_NAME}?"
LangString areYouSureToUninstall 1033 "Are you sure you want to uninstall ${PRODUCT_NAME}?"
LangString areYouSureToUninstall 1041 "${PRODUCT_NAME} をアンインストールしてもよろしいですか?"
LangString areYouSureToUninstall 1042 "${PRODUCT_NAME}을(를) 제거 하시겠습니까?"
LangString areYouSureToUninstall 1049 "Вы уверены, что хотите удалить ${PRODUCT_NAME}?"
LangString areYouSureToUninstall 1051 "Ste si istý že chcete odinštalovať ${PRODUCT_NAME}?"
LangString areYouSureToUninstall 1038 "Biztos benne, hogy szeretné eltávolítani a ${PRODUCT_NAME} alkalmazást?"
LangString areYouSureToUninstall 1045 "Czy na pewno chcesz odinstalować ${PRODUCT_NAME}?"
LangString areYouSureToUninstall 3082 "Are you sure you want to uninstall ${PRODUCT_NAME}?"
LangString areYouSureToUninstall 2052 "Are you sure you want to uninstall ${PRODUCT_NAME}?"
LangString areYouSureToUninstall 1028 "Are you sure you want to uninstall ${PRODUCT_NAME}?"
LangString areYouSureToUninstall 1043 "Are you sure you want to uninstall ${PRODUCT_NAME}?"
LangString areYouSureToUninstall 1030 "Are you sure you want to uninstall ${PRODUCT_NAME}?"
LangString areYouSureToUninstall 1053 "Are you sure you want to uninstall ${PRODUCT_NAME}?"
LangString areYouSureToUninstall 1044 "Are you sure you want to uninstall ${PRODUCT_NAME}?"
LangString areYouSureToUninstall 1035 "Are you sure you want to uninstall ${PRODUCT_NAME}?"
LangString areYouSureToUninstall 2070 "Are you sure you want to uninstall ${PRODUCT_NAME}?"
LangString areYouSureToUninstall 1058 "Are you sure you want to uninstall ${PRODUCT_NAME}?"
LangString areYouSureToUninstall 1029 "Are you sure you want to uninstall ${PRODUCT_NAME}?"
LangString areYouSureToUninstall 1025 "Are you sure you want to uninstall ${PRODUCT_NAME}?"
2017-08-30T21:26:26.773Z electron-builder Spawning C:\Users\Administrator\AppData\Local\electron-builder\cache\nsis\nsis-3.0.1.13\Bin\makensis.exe -WX -DAPP_ID=com.electron.onlg -DAPP_GUID=f924a4a2-ec58-535f-9225-21ea6758c74f -DPRODUCT_NAME=OnLg -DPRODUCT_FILENAME=OnLg -DAPP_FILENAME=OnLg -DAPP_DESCRIPTION=OnScreenControl -DVERSION=0.5.1 -DPROJECT_DIR=C:\Users\Administrator\Documents\onscreen-control -DBUILD_RESOURCES_DIR=C:\Users\Administrator\Documents\onscreen-control\build -DCOMPANY_NAME=Virtus UFCG -DMUI_ICON=C:\Users\Administrator\Documents\onscreen-control\src\assets\icon\OSC_256_256.ico -DMUI_UNICON=C:\Users\Administrator\Documents\onscreen-control\src\assets\icon\OSC_256_256.ico -DAPP_64=C:\Users\Administrator\Documents\onscreen-control\app-package\OnLg-0.5.1-x64.nsis.7z -DAPP_64_NAME=OnLg-0.5.1-x64.nsis.7z -DCOMPRESSION_METHOD=7z -DONE_CLICK -DRUN_AFTER_FINISH -DINSTALL_MODE_PER_ALL_USERS -DINSTALL_MODE_PER_ALL_USERS_REQUIRED -DSHORTCUT_NAME=OnLg -DUNINSTALL_DISPLAY_NAME=OnLg 0.5.1 -DCOMPRESS=auto -DBUILD_UNINSTALLER -DUNINSTALLER_OUT_FILE=C:\Users\ADMINI~1\AppData\Local\Temp\2\temp-files-yubbBH\1-uninstaller.exe -XOutFile "C:\Users\Administrator\Documents\onscreen-control\app-package\OnLg Setup 0.5.1.exe" -XVIProductVersion 0.5.1.0 -XVIAddVersionKey /LANG=1033 ProductName "OnLg" -XVIAddVersionKey /LANG=1033 ProductVersion "0.5.1" -XVIAddVersionKey /LANG=1033 LegalCopyright "Copyright © 2017 Virtus UFCG" -XVIAddVersionKey /LANG=1033 FileDescription "OnScreenControl" -XVIAddVersionKey /LANG=1033 FileVersion "0.5.1" -XVIAddVersionKey /LANG=1033 CompanyName "Virtus UFCG" -XUnicode true -XSetCompressor lzma -
2017-08-30T21:26:26.774Z electron-builder cwd: C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\templates\nsis
Command line defined: "APP_ID=com.electron.onlg"
Command line defined: "APP_GUID=f924a4a2-ec58-535f-9225-21ea6758c74f"
Command line defined: "PRODUCT_NAME=OnLg"
Command line defined: "PRODUCT_FILENAME=OnLg"
Command line defined: "APP_FILENAME=OnLg"
Command line defined: "APP_DESCRIPTION=OnScreenControl"
Command line defined: "VERSION=0.5.1"
Command line defined: "PROJECT_DIR=C:\Users\Administrator\Documents\onscreen-control"
Command line defined: "BUILD_RESOURCES_DIR=C:\Users\Administrator\Documents\onscreen-control\build"
Command line defined: "COMPANY_NAME=Virtus UFCG"
Command line defined: "MUI_ICON=C:\Users\Administrator\Documents\onscreen-control\src\assets\icon\OSC_256_256.ico"
Command line defined: "MUI_UNICON=C:\Users\Administrator\Documents\onscreen-control\src\assets\icon\OSC_256_256.ico"
Command line defined: "APP_64=C:\Users\Administrator\Documents\onscreen-control\app-package\OnLg-0.5.1-x64.nsis.7z"
Command line defined: "APP_64_NAME=OnLg-0.5.1-x64.nsis.7z"
Command line defined: "COMPRESSION_METHOD=7z"
Command line defined: "ONE_CLICK"
Command line defined: "RUN_AFTER_FINISH"
Command line defined: "INSTALL_MODE_PER_ALL_USERS"
Command line defined: "INSTALL_MODE_PER_ALL_USERS_REQUIRED"
Command line defined: "SHORTCUT_NAME=OnLg"
Command line defined: "UNINSTALL_DISPLAY_NAME=OnLg 0.5.1"
Command line defined: "COMPRESS=auto"
Command line defined: "BUILD_UNINSTALLER"
Command line defined: "UNINSTALLER_OUT_FILE=C:\Users\ADMINI~1\AppData\Local\Temp\2\temp-files-yubbBH\1-uninstaller.exe"
Processing config: C:\Users\Administrator\AppData\Local\electron-builder\cache\nsis\nsis-3.0.1.13\nsisconf.nsh
Processing script file: "<stdin>" (ACP)

Processed 1 file, 10 command line commands, writing output (x86-unicode):

Output: "C:\Users\Administrator\Documents\onscreen-control\app-package\OnLg Setup 0.5.1.exe"
Install: 1 page (64 bytes), 1 section (16408 bytes), 173 instructions (4844 bytes), 3114 strings (32988 bytes), 22 language tables (4356 bytes).
Uninstall: 1 page (128 bytes), 1 section (16408 bytes), 566 instructions (15848 bytes), 4263 strings (42226 bytes), 22 language tables (5412 bytes).

Using lzma compression.

EXE header size:               90112 / 37376 bytes
Install code:                  10279 / 59100 bytes
Install data:                   6233 / 11788 bytes
Uninstall code+data:          113676 / 113689 bytes
CRC (0xFCDC11A3):                  4 / 4 bytes

Total size:                   220304 / 221957 bytes (99.2%)
2017-08-30T21:26:28.415Z electron-builder makensis.exe (3112) exited with exit code 0
2017-08-30T21:26:28.415Z electron-builder Executing C:\Users\Administrator\Documents\onscreen-control\app-package\OnLg Setup 0.5.1.exe
2017-08-30T21:26:28.529Z electron-builder Async task error: Error: Exit code: 2. Command failed: C:\Users\Administrator\Documents\onscreen-control\app-package\OnLg Setup 0.5.1.exe

    at C:\Users\Administrator\Documents\onscreen-control\node_modules\builder-util\src\util.ts:86:16
    at ChildProcess.exithandler (child_process.js:212:5)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:194:7)
    at maybeClose (internal/child_process.js:899:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
From previous event:
    at exec (C:\Users\Administrator\Documents\onscreen-control\node_modules\builder-util\src\util.ts:58:3)
    at execWine (C:\Users\Administrator\Documents\onscreen-control\node_modules\builder-util\src\wine.ts:36:12)
    at C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\targets\nsis\nsis.ts:260:11
From previous event:
    at NsisTarget.computeScriptAndSignUninstaller (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\targets\nsis\nsis.js:350:11)
    at C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\targets\nsis\nsis.ts:215:114
    at Generator.next (<anonymous>)
    at runCallback (timers.js:672:20)
    at tryOnImmediate (timers.js:645:5)
    at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
    at NsisTarget.buildInstaller (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\targets\nsis\nsis.js:315:11)
    at C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\targets\nsis\nsis.ts:102:18
    at Generator.next (<anonymous>)
From previous event:
    at NsisTarget.finishBuild (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\targets\nsis\nsis.js:206:11)
    at C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\packager.ts:267:36
From previous event:
    at Packager.doBuild (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\packager.js:338:11)
    at C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\packager.ts:185:52
    at Generator.next (<anonymous>)
From previous event:
    at Packager.build (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\packager.js:257:11)
    at C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\builder.ts:266:40
    at Generator.next (<anonymous>)
    at build (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\builder.js:69:21)
    at loadEnv.then (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\cli\cli.ts:49:4)
From previous event:
    at build (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\builder.js:69:21)
    at loadEnv.then (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\cli\cli.js:155:79)
    at runCallback (timers.js:672:20)
    at tryOnImmediate (timers.js:645:5)
    at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
    at Object.args [as handler] (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\cli\cli.js:155:68)
    at Object.self.runCommand (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\node_modules\yargs\lib\command.js:233:22)
    at Object.Yargs.self._parseArgs (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\node_modules\yargs\yargs.js:990:30)
    at Object.get [as argv] (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\node_modules\yargs\yargs.js:927:19)
    at Object.<anonymous> (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\cli\cli.js:151:465)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:423:7)
    at startup (bootstrap_node.js:147:9)
    at bootstrap_node.js:538:3
Error: Exit code: 2. Command failed: C:\Users\Administrator\Documents\onscreen-control\app-package\OnLg Setup 0.5.1.exe

    at C:\Users\Administrator\Documents\onscreen-control\node_modules\builder-util\src\util.ts:86:16
    at ChildProcess.exithandler (child_process.js:212:5)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:194:7)
    at maybeClose (internal/child_process.js:899:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
From previous event:
    at exec (C:\Users\Administrator\Documents\onscreen-control\node_modules\builder-util\src\util.ts:58:3)
    at execWine (C:\Users\Administrator\Documents\onscreen-control\node_modules\builder-util\src\wine.ts:36:12)
    at C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\targets\nsis\nsis.ts:260:11
From previous event:
    at NsisTarget.computeScriptAndSignUninstaller (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\targets\nsis\nsis.js:350:11)
    at C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\targets\nsis\nsis.ts:215:114
    at Generator.next (<anonymous>)
    at runCallback (timers.js:672:20)
    at tryOnImmediate (timers.js:645:5)
    at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
    at NsisTarget.buildInstaller (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\targets\nsis\nsis.js:315:11)
    at C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\targets\nsis\nsis.ts:102:18
    at Generator.next (<anonymous>)
From previous event:
    at NsisTarget.finishBuild (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\targets\nsis\nsis.js:206:11)
    at C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\packager.ts:267:36
From previous event:
    at Packager.doBuild (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\packager.js:338:11)
    at C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\packager.ts:185:52
    at Generator.next (<anonymous>)
From previous event:
    at Packager.build (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\packager.js:257:11)
    at C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\builder.ts:266:40
    at Generator.next (<anonymous>)
    at build (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\builder.js:69:21)
    at loadEnv.then (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\src\cli\cli.ts:49:4)
From previous event:
    at build (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\builder.js:69:21)
    at loadEnv.then (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\cli\cli.js:155:79)
    at runCallback (timers.js:672:20)
    at tryOnImmediate (timers.js:645:5)
    at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
    at Object.args [as handler] (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\cli\cli.js:155:68)
    at Object.self.runCommand (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\node_modules\yargs\lib\command.js:233:22)
    at Object.Yargs.self._parseArgs (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\node_modules\yargs\yargs.js:990:30)
    at Object.get [as argv] (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\node_modules\yargs\yargs.js:927:19)
    at Object.<anonymous> (C:\Users\Administrator\Documents\onscreen-control\node_modules\electron-builder\out\cli\cli.js:151:465)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:423:7)
    at startup (bootstrap_node.js:147:9)
    at bootstrap_node.js:538:3
develar commented 7 years ago

Do not build using Administrator account. Please try to create and use another account.

felipelindemberg commented 7 years ago

I tried run as admin and without privileges. This machine is a Jenkins slave.

The error happens after generate the win-unpacked folder. The Electron-Builder generate a zip file and after excludes this file. My .exe has only 180kb.

With a before version of my project I have success on buil. In actual version happens the error, but the changes aren't on build context.

develar commented 7 years ago

Could you please provide content of ./scripts/installer.nsh?

felipelindemberg commented 7 years ago

My installer.nsh

!include WinVer.nsh
!include "LogicLib.nsh"

!macro preInit
  ${WinVerGetMajor} $R0

  ; determine windows
  ${If} $R0 == 5
    IfFileExists "$SYSDIR\api-ms-win-crt-runtime-l1-1-0.dll" +2 0
      MessageBox MB_OK "The program can't be installed because api-ms-win-crt-runtime-l1-1-0.dll is missing from your \
                        computer. Please, update your Windows."
    Quit
  ${ElseIf} $R0 == 6
    IfFileExists "$SYSDIR\api-ms-win-crt-runtime-l1-1-0.dll" +2 0
      MessageBox MB_OK "The program can't be installed because api-ms-win-crt-runtime-l1-1-0.dll is missing from your \
                        computer. Please, update your Windows."
    Quit
  ${EndIf}
!macroend

!macro customInstall
  File "${BUILD_RESOURCES_DIR}\MonitorService_Setup.exe"
  execwait '"MonitorService_Setup.exe" /S'
  delete "MonitorService_Setup.exe"
!macroend

!macro customUnInstall
  execwait '"$PROGRAMFILES64\OnScreenControl\service\Uninstall.exe"'
!macroend
develar commented 7 years ago

Well, so, please try to remove your preInit handler.

On Thursday, August 31, 2017, felipelindemberg notifications@github.com wrote:

My installer.nsh

!include WinVer.nsh !include "LogicLib.nsh"

!macro preInit ${WinVerGetMajor} $R0

; determine windows ${If} $R0 == 5 IfFileExists "$SYSDIR\api-ms-win-crt-runtime-l1-1-0.dll" +2 0 MessageBox MB_OK "The program can't be installed because api-ms-win-crt-runtime-l1-1-0.dll is missing from your \ computer. Please, update your Windows." Quit ${ElseIf} $R0 == 6 IfFileExists "$SYSDIR\api-ms-win-crt-runtime-l1-1-0.dll" +2 0 MessageBox MB_OK "The program can't be installed because api-ms-win-crt-runtime-l1-1-0.dll is missing from your \ computer. Please, update your Windows." Quit ${EndIf} !macroend

!macro customInstall File "${BUILD_RESOURCES_DIR}\MonitorService_Setup.exe" execwait '"MonitorService_Setup.exe" /S' delete "MonitorService_Setup.exe" !macroend

!macro customUnInstall execwait '"$PROGRAMFILES64\OnScreenControl\service\Uninstall.exe"' !macroend

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/electron-userland/electron-builder/issues/2017#issuecomment-326361967, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVZ3sn9H4aZXiYmao1LRYop61F-TAn2ks5sdulKgaJpZM4PICgn .