Cannot Build Windows Installer Exit Code 1
See original GitHub issueI’m currently running into an issue with building the Windows Installer. When I try and build the installer I get this issue when running this code
SET DEBUG=electron-windows-installer:* & node build.js
electron-windows-installer:spawn Spawning c:\Users\Nick\Desktop\New-Lab-Scale-Programs\hydro-lab-scale-2\node_modules\electron-winstaller\vendor\nuget.exe pack C:\Users\Nick\AppData\Local\Temp\si-11891-12640-1wcyjf7.btxqlrf6r\electron_quick_start.nuspec -BasePath ./electron_quick_start-win32-x64 -OutputDirectory C:\Users\Nick\AppData\Local\Temp\si-11891-12640-1wcyjf7.btxqlrf6r -NoDefaultExcludes +7ms
No dice: Failed with exit code: 1
Output:
Attempting to build package from 'electron_quick_start.nuspec'.
File not found: 'myapp.exe'.
Seems to fail once it gets to nuget.exe?
This is my build.js code:
var electronInstaller = require('electron-winstaller');
resultPromise = electronInstaller.createWindowsInstaller({
appDirectory: './electron_quick_start_win32_x64',
outputDirectory: './myinstallers',
authors: 'TSC',
exe: 'myapp.exe'
});
resultPromise.then(() => console.log("It worked!"), (e) => console.log(`No dice: ${e.message}`));
Electron 3.0.2 Node 10.2.0 Chromium 66.0.3359.181
Also here’s my package.json if there is something wrong in there:
{
"name": "electron_quick_start",
"version": "1.0.0",
"description": "A minimal Electron application",
"main": "main.js",
"scripts": {
"start": "electron .",
"dist": "build"
},
"repository": "https://github.com/electron/electron-quick-start",
"keywords": [
"Electron",
"quick",
"start",
"tutorial",
"demo"
],
"author": "GitHub",
"license": "CC0-1.0",
"devDependencies": {
"electron": "^3.0.2",
"electron-rebuild": "^1.8.2"
},
"dependencies": {
"debug": "^4.0.1",
"electron-builder": "^20.28.4",
"electron-squirrel-startup": "^1.0.0",
"electron-winstaller": "^2.7.0",
"node-gyp": "^3.8.0",
"python": "0.0.4",
"serialport": "^7.0.2"
}
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
How to Fix Intel® Graphics Driver Installer Exit Code 1
Go to Device Manager > Display Adapters > Right Click and Click Update Driver (Browse my computer for drivers) · Choose Let me...
Read more >MsiExec.exe and InstMsi.exe Error Messages (for Developers)
Error code Value Description
ERROR_SUCCESS 0 The action completed successfully.
ERROR_INVALID_DATA 13 The data is invalid.
ERROR_INVALID_PARAMETER 87 One of the parameters was invalid.
Read more >How to troubleshoot Windows Installer errors - Microsoft Support
Describes how to troubleshoot problems that occur when you install, uninstall, or upgrade a program on a Windows-based computer by using Windows Installer....
Read more >Windows Installer Error Messages (for Developers)
Message codes, message text, and remarks for Windows Installer error messages. Errors include ship errors, internal errors, ...
Read more >Package returns exit code 1 - TechNet - Microsoft
Just to follow-up, the MIF file did the trick. The MIF file apparently returns more accurate data regarding the installation status than the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Excellent observation @alexanderturinske! I had thought that was the output name I was choosing for the .exe and not the one I was inputting. Thanks very much, it works now!
Ah, thanks. Just for clarification, what is the name and filepath to your app
exe
? Based on the information above it should be./electron_quick_start_win32_x64/myapp.exe
; is that correct?