Error: Failed with exit code: 4294967295
See original GitHub issueFirst I used electron-packager exporting a folder. Then I used electron-winstaller to build this folder to a executable.
build.js: const electronInstaller = require(‘electron-winstaller’);
var settings = { appDirectory: ‘./app’, outputDirectory: ‘./output’, exe: ‘app.exe’, setupExe: ‘app.exe’, noMsi: true, authors: ‘wujz’ };
resultPromise = electronInstaller.createWindowsInstaller(settings);
resultPromise.then(() => { console.log(“Created”); }, (e) => { console.log(e); });
Then I got below error:
Error: Failed with exit code: 4294967295
Output:
Couldn’t open log file, trying new file: System.MethodAccessException: Attempt by method ‘Squirrel.Update.SetupLogLogger…ctor(Boolean)’ to access method ‘System.IO.StreamWriter…ctor(System.IO.Stream, System.Text.Encoding, Int32, Boolean)’ failed.
at Squirrel.Update.SetupLogLogger…ctor(Boolean saveInTemp)
Couldn’t open log file, trying new file: System.MethodAccessException: Attempt by method ‘Squirrel.Update.SetupLogLogger…ctor(Boolean)’ to access method ‘System.IO.StreamWriter…ctor(System.IO.Stream, System.Text.Encoding, Int32, Boolean)’ failed.
at Squirrel.Update.SetupLogLogger…ctor(Boolean saveInTemp)
Couldn’t open log file, trying new file: System.MethodAccessException: Attempt by method ‘Squirrel.Update.SetupLogLogger…ctor(Boolean)’ to access method ‘System.IO.StreamWriter…ctor(System.IO.Stream, System.Text.Encoding, Int32, Boolean)’ failed.
at Squirrel.Update.SetupLogLogger…ctor(Boolean saveInTemp)
Couldn’t open log file, trying new file: System.MethodAccessException: Attempt by method ‘Squirrel.Update.SetupLogLogger…ctor(Boolean)’ to access method ‘System.IO.StreamWriter…ctor(System.IO.Stream, System.Text.Encoding, Int32, Boolean)’ failed.
at Squirrel.Update.SetupLogLogger…ctor(Boolean saveInTemp)
Couldn’t open log file, trying new file: System.MethodAccessException: Attempt by method ‘Squirrel.Update.SetupLogLogger…ctor(Boolean)’ to access method ‘System.IO.StreamWriter…ctor(System.IO.Stream, System.Text.Encoding, Int32, Boolean)’ failed.
at Squirrel.Update.SetupLogLogger…ctor(Boolean saveInTemp)
Couldn’t open log file, trying new file: System.MethodAccessException: Attempt by method ‘Squirrel.Update.SetupLogLogger…ctor(Boolean)’ to access method ‘System.IO.StreamWriter…ctor(System.IO.Stream, System.Text.Encoding, Int32, Boolean)’ failed.
at Squirrel.Update.SetupLogLogger…ctor(Boolean saveInTemp)
Couldn’t open log file, trying new file: System.MethodAccessException: Attempt by method ‘Squirrel.Update.SetupLogLogger…ctor(Boolean)’ to access method ‘System.IO.StreamWriter…ctor(System.IO.Stream, System.Text.Encoding, Int32, Boolean)’ failed.
at Squirrel.Update.SetupLogLogger…ctor(Boolean saveInTemp)
Couldn’t open log file, trying new file: System.MethodAccessException: Attempt by method ‘Squirrel.Update.SetupLogLogger…ctor(Boolean)’ to access method ‘System.IO.StreamWriter…ctor(System.IO.Stream, System.Text.Encoding, Int32, Boolean)’ failed.
at Squirrel.Update.SetupLogLogger…ctor(Boolean saveInTemp)
Couldn’t open log file, trying new file: System.MethodAccessException: Attempt by method ‘Squirrel.Update.SetupLogLogger…ctor(Boolean)’ to access method ‘System.IO.StreamWriter…ctor(System.IO.Stream, System.Text.Encoding, Int32, Boolean)’ failed.
at Squirrel.Update.SetupLogLogger…ctor(Boolean saveInTemp)
Couldn’t open log file, trying new file: System.MethodAccessException: Attempt by method ‘Squirrel.Update.SetupLogLogger…ctor(Boolean)’ to access method ‘System.IO.StreamWriter…ctor(System.IO.Stream, System.Text.Encoding, Int32, Boolean)’ failed.
at Squirrel.Update.SetupLogLogger…ctor(Boolean saveInTemp)
2017-04-03 04:30:34> Program: Starting Squirrel Updater: --releasify C:\Users\statbldr\AppData\Local\Temp\si-11733-4260-1xt81w6.plmed0a4i\statsinstaller.1.0.0.nupkg --releaseDir C:\Workroom\views\StatsDownloadAndGo\output --loadingGif C:\Workroom\views\StatsDownloadAndGo\node_modules\electron-winstaller\resources\install-spinner.gif --no-msi
2017-04-03 04:30:34> Program: Bootstrapper EXE found at:C:\Workroom\views\StatsDownloadAndGo\node_modules\electron-winstaller\vendor\Setup.exe
2017-04-03 04:30:45> Program: Creating release package: C:\Workroom\views\StatsDownloadAndGo\output\statsinstaller.1.0.0.nupkg
2017-04-03 04:30:46> Unhandled exception: System.MissingMethodException: Method not found: ‘Int32 System.Environment.get_CurrentManagedThreadId()’.
at NuGet.ManifestMetadata.<Validate>d__108…ctor(Int32 <>1__state)
at NuGet.ManifestMetadata.Validate(ValidationContext validationContext)
at System.ComponentModel.DataAnnotations.Validator.GetObjectValidationErrors(Object instance, ValidationContext validationContext, Boolean validateAllProperties, Boolean breakOnFirstError)
at System.ComponentModel.DataAnnotations.Validator.TryValidateObject(Object instance, ValidationContext validationContext, ICollection1 validationResults, Boolean validateAllProperties) at NuGet.Manifest.TryValidate(Object value, ICollection1 results)
at NuGet.Manifest.Validate(Manifest manifest)
at NuGet.Manifest.ReadFrom(Stream stream, IPropertyProvider propertyProvider, Boolean validateSchema)
at NuGet.LocalPackage.ReadManifest(Stream manifestStream)
at NuGet.ZipPackage.EnsureManifest()
at NuGet.ZipPackage…ctor(String filePath, Boolean enableCaching)
at Squirrel.ReleasePackage.get_SuggestedReleaseFileName()
at Squirrel.Update.Program.Releasify(String package, String targetDir, String packagesDir, String bootstrapperExe, String backgroundGif, String signingOpts, String baseUrl, String setupIcon, Boolean generateMsi)
at Squirrel.Update.Program.executeCommandLine(String[] args)
at Squirrel.Update.Program.main(String[] args)
System.MissingMethodException: Method not found: ‘Int32 System.Environment.get_CurrentManagedThreadId()’.
at NuGet.ManifestMetadata.<Validate>d__108…ctor(Int32 <>1__state)
at NuGet.ManifestMetadata.Validate(ValidationContext validationContext)
at System.ComponentModel.DataAnnotations.Validator.GetObjectValidationErrors(Object instance, ValidationContext validationContext, Boolean validateAllProperties, Boolean breakOnFirstError)
at System.ComponentModel.DataAnnotations.Validator.TryValidateObject(Object instance, ValidationContext validationContext, ICollection1 validationResults, Boolean validateAllProperties) at NuGet.Manifest.TryValidate(Object value, ICollection1 results)
at NuGet.Manifest.Validate(Manifest manifest)
at NuGet.Manifest.ReadFrom(Stream stream, IPropertyProvider propertyProvider, Boolean validateSchema)
at NuGet.LocalPackage.ReadManifest(Stream manifestStream)
at NuGet.ZipPackage.EnsureManifest()
at NuGet.ZipPackage…ctor(String filePath, Boolean enableCaching)
at Squirrel.ReleasePackage.get_SuggestedReleaseFileName()
at Squirrel.Update.Program.Releasify(String package, String targetDir, String packagesDir, String bootstrapperExe, String backgroundGif, String signingOpts, String baseUrl, String setupIcon, Boolean generateMsi)
at Squirrel.Update.Program.executeCommandLine(String[] args)
at Squirrel.Update.Program.main(String[] args)
at Squirrel.Update.Program.Main(String[] args)
at ChildProcess.proc.on.code (C:\Workroom\views\StatsDownloadAndGo\node_modules\electron-winstaller\lib\spawn-promise.js:62:16)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:886:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
I used Windows Server 2008. Could anyone help to see this issue? Thanks.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:11

Top Related StackOverflow Question
Same here too
Same issue for me. The name in my package.json contains no special characters