Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing the installer. #417

Closed
ahgan84 opened this issue May 20, 2016 · 19 comments
Closed

Error installing the installer. #417

ahgan84 opened this issue May 20, 2016 · 19 comments

Comments

@ahgan84
Copy link

ahgan84 commented May 20, 2016

Hi guys.. I have successfully created the windows installer using the electron builder. But when I install to the PCs, some can install successfully. Some install fail and have the below error:
2016-05-20 16:39:59> Program: Starting Squirrel Updater: --install . 2016-05-20 16:39:59> Program: Starting install, writing to C:\Users\Viscon R&D\AppData\Local\SquirrelTemp 2016-05-20 16:39:59> Program: About to install to: C:\Users\Viscon R&D\AppData\Local\gmc 2016-05-20 16:39:59> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Viscon R&D\AppData\Local\gmc\packages\.betaId'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost) at System.IO.File.WriteAllText(String path, String contents, Encoding encoding) at Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId() 2016-05-20 16:39:59> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Viscon R&D\AppData\Local\gmc\packages\RELEASES'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at Squirrel.Utility.LoadLocalReleases(String localReleaseFile) at Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__2.MoveNext() 2016-05-20 16:39:59> CheckForUpdateImpl: Reading RELEASES file from C:\Users\Viscon R&D\AppData\Local\SquirrelTemp 2016-05-20 16:39:59> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch 2016-05-20 16:40:00> ApplyReleasesImpl: Writing files to app directory: C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0 2016-05-20 16:40:12> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\content_resources_200_percent.pak to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\content_resources_200_percent.pak 2016-05-20 16:40:12> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\content_shell.pak to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\content_shell.pak 2016-05-20 16:40:12> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\d3dcompiler_47.dll to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\d3dcompiler_47.dll 2016-05-20 16:40:12> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\ffmpeg.dll to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\ffmpeg.dll 2016-05-20 16:40:12> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\gmc-vct.exe to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\gmc-vct.exe 2016-05-20 16:40:12> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\icudtl.dat to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\icudtl.dat 2016-05-20 16:40:12> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\libEGL.dll to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\libEGL.dll 2016-05-20 16:40:12> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\libGLESv2.dll to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\libGLESv2.dll 2016-05-20 16:40:12> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\LICENSE to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\LICENSE 2016-05-20 16:40:12> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\LICENSES.chromium.html to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\LICENSES.chromium.html 2016-05-20 16:40:12> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\msvcr120.dll to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\msvcr120.dll 2016-05-20 16:40:12> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\node.dll to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\node.dll 2016-05-20 16:40:12> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\msvcp120.dll to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\msvcp120.dll 2016-05-20 16:40:12> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\natives_blob.bin to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\natives_blob.bin 2016-05-20 16:40:12> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\ui_resources_200_percent.pak to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\ui_resources_200_percent.pak 2016-05-20 16:40:12> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\vccorlib120.dll to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\vccorlib120.dll 2016-05-20 16:40:12> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\Update.exe to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\Update.exe 2016-05-20 16:40:12> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\version to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\version 2016-05-20 16:40:12> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\xinput1_3.dll to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\xinput1_3.dll 2016-05-20 16:40:13> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\snapshot_blob.bin to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\snapshot_blob.bin 2016-05-20 16:40:16> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\gmc-vct.exe] 2016-05-20 16:40:16> ApplyReleasesImpl: Couldn't run Squirrel hook, continuing: C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\gmc-vct.exe: 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.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass10_0.<<invokePostInstall>b__0>d.MoveNext() 2016-05-20 16:40:16> IEnableLogger: Failed to invoke post-install: System.ComponentModel.Win32Exception (0x80004005): The specified executable is not a valid application for this OS platform. at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at Squirrel.UpdateManager.ApplyReleasesImpl.<>c.<invokePostInstall>b__10_6(ProcessStartInfo info) at Squirrel.EnumerableExtensions.ForEach[TSource](IEnumerable1 source, Action1 onNext) at Squirrel.UpdateManager.ApplyReleasesImpl.<invokePostInstall>d__10.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.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<LogIfThrows>d__34.MoveNext() 2016-05-20 16:40:16> Unhandled exception: 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.StartWithShellExecuteEx(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at Squirrel.UpdateManager.ApplyReleasesImpl.<>c.<invokePostInstall>b__10_6(ProcessStartInfo info) at Squirrel.EnumerableExtensions.ForEach[TSource](IEnumerable1 source, Action1 onNext) at Squirrel.UpdateManager.ApplyReleasesImpl.<invokePostInstall>d__10.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.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Utility.<LogIfThrows>d__34.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.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Squirrel.UpdateManager.ApplyReleasesImpl.<ApplyReleases>d__2.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.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.UpdateManager.<FullInstall>d__10.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.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Squirrel.Update.Program.<Install>d__4.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 System.Threading.Tasks.Task.Wait() at Squirrel.Update.Program.executeCommandLine(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.StartWithShellExecuteEx(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at Squirrel.UpdateManager.ApplyReleasesImpl.<>c.<invokePostInstall>b__10_6(ProcessStartInfo info) at Squirrel.EnumerableExtensions.ForEach[TSource](IEnumerable1 source, Action`1 onNext)
at Squirrel.UpdateManager.ApplyReleasesImpl.d__10.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.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.Utility.d__34.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.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Squirrel.UpdateManager.ApplyReleasesImpl.d__2.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.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.UpdateManager.d__10.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.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Squirrel.Update.Program.d__4.MoveNext()<---

2016-05-20 16:44:42> Program: Starting Squirrel Updater: --install .
2016-05-20 16:44:42> Program: Starting install, writing to C:\Users\Viscon R&D\AppData\Local\SquirrelTemp
2016-05-20 16:44:42> Program: About to install to: C:\Users\Viscon R&D\AppData\Local\gmc
2016-05-20 16:44:42> Program: Install path C:\Users\Viscon R&D\AppData\Local\gmc already exists, burning it to the ground
2016-05-20 16:44:43> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Viscon R&D\AppData\Local\gmc\packages.betaId'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)
at Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId()
2016-05-20 16:44:43> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Viscon R&D\AppData\Local\gmc\packages\RELEASES'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Squirrel.Utility.LoadLocalReleases(String localReleaseFile)
at Squirrel.UpdateManager.CheckForUpdateImpl.d__2.MoveNext()
2016-05-20 16:44:43> CheckForUpdateImpl: Reading RELEASES file from C:\Users\Viscon R&D\AppData\Local\SquirrelTemp
2016-05-20 16:44:43> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2016-05-20 16:44:43> ApplyReleasesImpl: Writing files to app directory: C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0
2016-05-20 16:44:54> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\d3dcompiler_47.dll to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\d3dcompiler_47.dll
2016-05-20 16:44:54> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\content_shell.pak to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\content_shell.pak
2016-05-20 16:44:54> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\ffmpeg.dll to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\ffmpeg.dll
2016-05-20 16:44:54> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\content_resources_200_percent.pak to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\content_resources_200_percent.pak
2016-05-20 16:44:54> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\gmc-vct.exe to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\gmc-vct.exe
2016-05-20 16:44:54> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\icudtl.dat to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\icudtl.dat
2016-05-20 16:44:54> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\libEGL.dll to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\libEGL.dll
2016-05-20 16:44:54> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\libGLESv2.dll to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\libGLESv2.dll
2016-05-20 16:44:54> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\LICENSE to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\LICENSE
2016-05-20 16:44:54> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\LICENSES.chromium.html to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\LICENSES.chromium.html
2016-05-20 16:44:54> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\msvcp120.dll to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\msvcp120.dll
2016-05-20 16:44:54> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\msvcr120.dll to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\msvcr120.dll
2016-05-20 16:44:54> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\node.dll to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\node.dll
2016-05-20 16:44:54> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\ui_resources_200_percent.pak to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\ui_resources_200_percent.pak
2016-05-20 16:44:54> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\natives_blob.bin to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\natives_blob.bin
2016-05-20 16:44:54> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\vccorlib120.dll to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\vccorlib120.dll
2016-05-20 16:44:54> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\snapshot_blob.bin to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\snapshot_blob.bin
2016-05-20 16:44:54> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\Update.exe to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\Update.exe
2016-05-20 16:44:54> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\version to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\version
2016-05-20 16:44:54> ApplyReleasesImpl: Moving file C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\lib\net45\xinput1_3.dll to C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\xinput1_3.dll
2016-05-20 16:44:56> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\gmc-vct.exe]
2016-05-20 16:44:56> ApplyReleasesImpl: Couldn't run Squirrel hook, continuing: C:\Users\Viscon R&D\AppData\Local\gmc\app-1.0.0\gmc-vct.exe: 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.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass10_0.<b__0>d.MoveNext()
2016-05-20 16:44:56> IEnableLogger: Failed to invoke post-install: System.ComponentModel.Win32Exception (0x80004005): The specified executable is not a valid application for this OS platform.
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c.b__10_6(ProcessStartInfo info)
at Squirrel.EnumerableExtensions.ForEach[TSource](IEnumerable1 source, Action1 onNext)
at Squirrel.UpdateManager.ApplyReleasesImpl.d__10.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.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.Utility.d__34.MoveNext()
2016-05-20 16:44:56> Unhandled exception: 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.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c.b__10_6(ProcessStartInfo info)
at Squirrel.EnumerableExtensions.ForEach[TSource](IEnumerable1 source, Action1 onNext)
at Squirrel.UpdateManager.ApplyReleasesImpl.d__10.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.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.Utility.d__34.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.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Squirrel.UpdateManager.ApplyReleasesImpl.d__2.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.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.UpdateManager.d__10.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.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Squirrel.Update.Program.d__4.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 System.Threading.Tasks.Task.Wait()
at Squirrel.Update.Program.executeCommandLine(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.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c.b__10_6(ProcessStartInfo info)
at Squirrel.EnumerableExtensions.ForEach[TSource](IEnumerable1 source, Action1 onNext)
at Squirrel.UpdateManager.ApplyReleasesImpl.d__10.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.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.Utility.d__34.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.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Squirrel.UpdateManager.ApplyReleasesImpl.d__2.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.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.UpdateManager.d__10.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.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Squirrel.Update.Program.d__4.MoveNext()<---

`
Do you guys know how to solve it?

@develar
Copy link
Member

develar commented May 20, 2016

Please ensure that you use electron-builder 3.25.0

@ahgan84
Copy link
Author

ahgan84 commented May 20, 2016

I have updated to 3.25.0. Now when I try to build it again, more error occur:

Packaging app for platform win32 x64 using electron v1.1.0
Error: Fatal error: Unable to commit changes

at ChildProcess.<anonymous> (C:\Work\Project 2016\gmc-vct\node_modules\rcedit\lib\rcedit.js:54:16)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:821:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

From previous event:
at Object. (C:\Work\Project 2016\gmc-vct\node_modules\electron-winstaller-fixed\lib\index.js:134:34)
From previous event:
at Object.createWindowsInstaller (C:\Work\Project 2016\gmc-vct\node_modules\electron-winstaller-fixed\lib\index.js:146:16)
at WinPackager. (C:\Work\Project 2016\gmc-vct\node_modules\electron-builder\src\winPackager.ts:175:44)
at [object Generator].next (native)
at processImmediate as _immediateCallback
From previous event:
at tsAwaiter (C:\Work\Project 2016\gmc-vct\node_modules\electron-builder\src\awaiter.ts:10:47)
at Object.build (C:\Work\Project 2016\gmc-vct\node_modules\electron-builder\src\builder.ts:30:59)
at Object. (C:\Work\Project 2016\gmc-vct\node_modules\electron-builder\src\build-cli.ts:47:2)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:134:18)
at node.js:962:3

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\Gan\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "dist"
npm ERR! node v4.3.2
npm ERR! npm v3.8.5
npm ERR! code ELIFECYCLE
npm ERR! [email protected] dist: build
npm ERR! Exit status 4294967295
npm ERR!
npm ERR! Failed at the [email protected] dist script 'build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the gmc-vct package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs gmc-vct
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls gmc-vct
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Work\Project 2016\gmc-vct\npm-debug.log

@develar
Copy link
Member

develar commented May 20, 2016

Error: Fatal error: Unable to commit changes

Does it work if you move project to path without space (here Project 2016)?

@ahgan84
Copy link
Author

ahgan84 commented May 20, 2016

Is there any update on the app entry point file? Cos after updating to 3.25, I try use electron-prebuilt to run npm start, the error 'cannot find module app' appeared again? Help!!

@develar
Copy link
Member

develar commented May 20, 2016

, the error 'cannot find module app' appeared again? Help!!

mongodb-js/electron-squirrel-startup#5 is fixed, please upgrade it to version 1.0.0

@develar
Copy link
Member

develar commented May 20, 2016

@ahgan84 So, the error was really space in the name?

@ahgan84
Copy link
Author

ahgan84 commented May 20, 2016

yes.. I remove the space and can install already..
Now back to the electron prebuilt... how come cannot run already?

@develar
Copy link
Member

develar commented May 20, 2016

space in the name — electron/rcedit#17

how come cannot run already?

Upgrade electron-squirrel-startup to 1.0.0 Ensure that you use require('electron').app instead of require('app')

@ahgan84
Copy link
Author

ahgan84 commented May 20, 2016

I updated the electron-squirrel-startup and now electron-prebuilt can run already. Thanks!

@ahgan84
Copy link
Author

ahgan84 commented May 20, 2016

I still use require('app') and can run the electron-prebuilt. If I use require('electron').app the electron-prebuilt cannot run. How come?

These are my top declaration in the file:

const electron = require('electron');
const {app} = electron;
const {BrowserWindow} = electron;
let win;
var settings = require('./settings');
const {ipcMain} = require('electron');

Are they correct?

@develar
Copy link
Member

develar commented May 20, 2016

electron-prebuilt version 1.1.1?

@ahgan84
Copy link
Author

ahgan84 commented May 20, 2016

Now, the electron prebuilt can run using npm start already. I can use electron builder latest version to successfully build my app win installer in both 32bit version and 64bit version. But when i try install both 32bit version and 64bit to their respective pc, both got errors. Later i wil post the error message out..

@ahgan84
Copy link
Author

ahgan84 commented May 20, 2016

I try rebuild the installer for both 32bit version and 64bit vrsion again. Now the 64bit no problem anymore and can install successfully. The 32bit version during installation wil pop up errors stating that i'm missing the VCRUNTIME140.dll and MSVCP140.dll. Any idea how to solve it?

@ahgan84
Copy link
Author

ahgan84 commented May 21, 2016

Any idea how to solve my above problem @develar develar?

@develar
Copy link
Member

develar commented May 21, 2016

@ahgan84 Do you use electron 1.1.1?

@ahgan84
Copy link
Author

ahgan84 commented May 21, 2016

Nope. Mine stil version 1.1.0. Later i update it and see stil got this problem or not.

@develar
Copy link
Member

develar commented May 21, 2016

@ahgan84 You should use 1.1.1 — "Link statically with Visual C++ libraries." is fixed. see release notes https://github.com/electron/electron/releases/tag/v1.1.1

@ahgan84
Copy link
Author

ahgan84 commented May 21, 2016

Problem solved after update to electron prebuilt 1.1.1. Thanks.

@akashnimare
Copy link
Contributor

@develar I'm getting the similar error as mentioned here. Using latest electron-builder and electron-squirrel-startup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants