windows-installer icon indicating copy to clipboard operation
windows-installer copied to clipboard

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

Open Thomas101 opened this issue 7 years ago • 11 comments

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.<InvokeProcessAsync>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.<ExtractZipToDirectory>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.<InvokeProcessAsync>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.<ExtractZipToDirectory>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.<anonymous> (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)

Thomas101 avatar Jun 20 '17 14:06 Thomas101

+1

ianli-sc avatar Sep 11 '17 08:09 ianli-sc

+1 Win7 32 bits here

dnovaes avatar Sep 15 '17 01:09 dnovaes

I have that same problem. OS: Windows 7 32bit only Windows-installer version: 2.6.3

abdurrahmanekr avatar Nov 15 '17 13:11 abdurrahmanekr

+1

BertramShell avatar Dec 02 '17 16:12 BertramShell

any solution?

Manishbatra4 avatar Dec 21 '17 14:12 Manishbatra4

I think I solved the problem by adding --arch=ia32 to electron-packager.

electron-packager . App --platform=win32 --arch=ia32

abdurrahmanekr avatar Dec 21 '17 14:12 abdurrahmanekr

+1, using --arch=ia32 and still seeing this issue Win10 32 bits

cfinn0510 avatar Jan 08 '18 18:01 cfinn0510

We were actually still installing the 64 bit version. Using electron-packager and --arch=ia32 works for us on a 32 bit Windows 10 VM.

cfinn0510 avatar Jan 11 '18 20:01 cfinn0510

@abdurrahmanekr @cfinn0510 the issue you're seeing is with electron-packager not this repository windows-installer.

The issue still occurs in 2.6.4

Thomas101 avatar Jan 25 '18 12:01 Thomas101

Could it be related to this: https://github.com/Squirrel/Squirrel.Windows/issues/1148#issuecomment-328932091?

cc @paulcbetts

romaincointepas avatar Jan 25 '18 14:01 romaincointepas

From same issue (https://github.com/Squirrel/Squirrel.Windows/issues/1148#issuecomment-354074569):

lukywong:

paulcbetts is it possible to support 32-bit version of windows? because i really want it support

anaisbetts:

lukywong No, sorry! While the installer you build will support 32-bit computers (i.e. your users can have 32-bit OS), your computer must be 64-bit.

Guessing this issue can be closed.

adabru avatar Dec 30 '19 11:12 adabru