electron / electron/windows-installer

32-bit build regression: System.AggregateException The specified executable is not a valid application for this OS platform

Open
#184 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.6k
Forks
267
Avg merge
5h 38m
Merged PRs (30d)
1

Description

**Operating System** Windows 10. **32-bit only**

**Version:** 2.6.0, 2.6.1, 2.6.2, 2.6.3. **Does not affect 2.5.2 & earlier**

When using `electronInstaller.createWindowsInstaller()` I've started seeing the error below. This only affects 32 bit versions of windows. After downgrading the to 2.5.2 it starts working again.

```
Error: Failed with exit code: 4294967295
Output:
System.AggregateException: One or more errors occurred. ---> System.ComponentModel.Win32Exception: The specified executable is not a valid application for this OS platform.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at Squirrel.Utility.d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task) at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebugge rNotification(Task task)
at Squirrel.Utility.d__22.MoveNext() --- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean
includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout,
CancellationToken cancellationToken)
at Squirrel.ReleasePackage.CreateReleasePackage(String outputFile, String
packagesRootDir, Func`2 releaseNotesProcessor, Action`1 contentsPostProcessHook)
at Squirrel.Update.Program.Releasify(String package, String targetDir, String packagesDir, String bootstrapperExe, String backgroundGif, String signingOpts, String baseUrl, String setupIcon, Boolean generateMsi, String frameworkVersion, Boolean generateDeltas)
at Squirrel.Update.Program.executeCommandLine(String[] args) at Squirrel.Update.Program.main(String[] args)
at Squirrel.Update.Program.Main(String[] args)
---> (Inner Exception #0) System.ComponentModel.Win32Exception (0x80004005): The specified executable is not a valid application for this OS platform.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at Squirrel.Utility.d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task) at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebugge rNotification(Task task)
at Squirrel.Utility.d__22.MoveNext()<---
at ChildProcess.proc.on.code (C: \Users\app\node_modules\electron- winstaller\lib\spawn-promise.js:62h16)
at emitTwo (events.js:106h13)
at ChildProcess.emit (events.js:194h7)
at maybeClose (internal/child_process.js:899h16)
at Socket. (internal/child_process.js:342h11) at emitOne (events.js:101h20)
at Socket.emit (events.js:191h7)
at Pipe._handle.close [as _onclose] (net.js:510h12)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.