electron / electron/windows-installer
Error: Failed with exit code: 4294967295
- Dominant language
- TypeScript
- Stars
- 1.6k
- Forks
- 267
- Avg merge
- 5h 38m
- Merged PRs (30d)
- 1
Description
First 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.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, ICollection`1 validationResults, Boolean validateAllProperties)
at NuGet.Manifest.TryValidate(Object value, ICollection`1 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.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, ICollection`1 validationResults, Boolean validateAllProperties)
at NuGet.Manifest.TryValidate(Object value, ICollection`1 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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.