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

CheckForUpdateImpl: Couldn't write out staging user ID #1171

Closed
akashnimare opened this issue Jan 25, 2017 · 13 comments
Closed

CheckForUpdateImpl: Couldn't write out staging user ID #1171

akashnimare opened this issue Jan 25, 2017 · 13 comments

Comments

@akashnimare
Copy link
Contributor

  • Version:
    11.15.1
  • Target:
    Windows 7

Here is the full log -

2017-01-21 00:16:32> Program: Starting Squirrel Updater: --install .
2017-01-21 00:16:34> Program: Starting install, writing to C:\Users\Akash\AppData\Local\SquirrelTemp
2017-01-21 00:16:35> Program: About to install to: C:\Users\Akash\AppData\Local\zulip
2017-01-21 00:16:37> 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\Akash\AppData\Local\zulip\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()
2017-01-21 00:16:37> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Akash\AppData\Local\zulip\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()
2017-01-21 00:16:37> CheckForUpdateImpl: Reading RELEASES file from C:\Users\Akash\AppData\Local\SquirrelTemp
2017-01-21 00:16:37> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2017-01-21 00:16:38> ApplyReleasesImpl: Writing files to app directory: C:\Users\Akash\AppData\Local\zulip\app-0.5.4
2017-01-21 00:16:40> LogHost: Rigging execution stub for lib/net45/Zulip_ExecutionStub.exe to C:\Users\Akash\AppData\Local\zulip\Zulip.exe
2017-01-21 00:16:40> LogHost: Rigging execution stub for lib/net45/resources/app.asar.unpacked/node_modules/spawn-rx/vendor/jobber/Jobber_ExecutionStub.exe to C:\Users\Akash\AppData\Local\zulip\app-0.5.4\resources\app.asar.unpacked\node_modules\spawn-rx\vendor\Jobber.exe
2017-01-21 00:16:48> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\Akash\AppData\Local\zulip\app-0.5.4\Zulip.exe]
2017-01-21 00:16:53> ApplyReleasesImpl: Starting fixPinnedExecutables
2017-01-21 00:16:53> ApplyReleasesImpl: Examining Pin: Adobe Photoshop CS5.lnk
2017-01-21 00:16:53> ApplyReleasesImpl: Examining Pin: Mozilla Firefox.lnk
2017-01-21 00:16:53> ApplyReleasesImpl: Examining Pin: VLC media player.lnk
2017-01-21 00:16:53> ApplyReleasesImpl: Examining Pin: Windows Explorer.lnk
2017-01-21 00:16:53> ApplyReleasesImpl: Fixing up tray icons
2017-01-21 00:16:53> ApplyReleasesImpl: cleanDeadVersions: for version 0.5.4
2017-01-21 00:16:53> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-0.5.4
2017-01-21 00:25:27> Program: Starting Squirrel Updater: --install .
2017-01-21 00:25:27> Program: Starting install, writing to C:\Users\Akash\AppData\Local\SquirrelTemp
2017-01-21 00:25:27> Program: About to install to: C:\Users\Akash\AppData\Local\zulip
2017-01-21 00:25:27> Program: Install path C:\Users\Akash\AppData\Local\zulip already exists, burning it to the ground
2017-01-21 00:25:29> 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\Akash\AppData\Local\zulip\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()
2017-01-21 00:25:29> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Akash\AppData\Local\zulip\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()
2017-01-21 00:25:29> CheckForUpdateImpl: Reading RELEASES file from C:\Users\Akash\AppData\Local\SquirrelTemp
2017-01-21 00:25:29> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2017-01-21 00:25:29> ApplyReleasesImpl: Writing files to app directory: C:\Users\Akash\AppData\Local\zulip\app-0.5.3
2017-01-21 00:25:30> LogHost: Rigging execution stub for lib/net45/resources/app.asar.unpacked/node_modules/spawn-rx/vendor/jobber/Jobber_ExecutionStub.exe to C:\Users\Akash\AppData\Local\zulip\app-0.5.3\resources\app.asar.unpacked\node_modules\spawn-rx\vendor\Jobber.exe
2017-01-21 00:25:31> LogHost: Rigging execution stub for lib/net45/Zulip_ExecutionStub.exe to C:\Users\Akash\AppData\Local\zulip\Zulip.exe
2017-01-21 00:25:39> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\Akash\AppData\Local\zulip\app-0.5.3\Zulip.exe]
2017-01-21 00:25:41> ApplyReleasesImpl: Starting fixPinnedExecutables
2017-01-21 00:25:41> ApplyReleasesImpl: Examining Pin: Adobe Photoshop CS5.lnk
2017-01-21 00:25:41> ApplyReleasesImpl: Examining Pin: Mozilla Firefox.lnk
2017-01-21 00:25:41> ApplyReleasesImpl: Examining Pin: VLC media player.lnk
2017-01-21 00:25:41> ApplyReleasesImpl: Examining Pin: Windows Explorer.lnk
2017-01-21 00:25:41> ApplyReleasesImpl: Fixing up tray icons
2017-01-21 00:25:41> ApplyReleasesImpl: cleanDeadVersions: for version 0.5.3
2017-01-21 00:25:41> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-0.5.3
2017-01-25 00:16:09> Program: Starting Squirrel Updater: --install .
2017-01-25 00:16:09> Program: Starting install, writing to C:\Users\Akash\AppData\Local\SquirrelTemp
2017-01-25 00:16:10> Program: About to install to: C:\Users\Akash\AppData\Local\zulip
2017-01-25 00:16:10> Program: Install path C:\Users\Akash\AppData\Local\zulip already exists, burning it to the ground
2017-01-25 00:16:13> 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\Akash\AppData\Local\zulip\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()
2017-01-25 00:16:13> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Akash\AppData\Local\zulip\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()
2017-01-25 00:16:14> CheckForUpdateImpl: Reading RELEASES file from C:\Users\Akash\AppData\Local\SquirrelTemp
2017-01-25 00:16:14> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2017-01-25 00:16:14> ApplyReleasesImpl: Writing files to app directory: C:\Users\Akash\AppData\Local\zulip\app-0.5.4
2017-01-25 00:16:16> LogHost: Rigging execution stub for lib/net45/Zulip_ExecutionStub.exe to C:\Users\Akash\AppData\Local\zulip\Zulip.exe
2017-01-25 00:16:18> LogHost: Rigging execution stub for lib/net45/resources/app.asar.unpacked/node_modules/spawn-rx/vendor/jobber/Jobber_ExecutionStub.exe to C:\Users\Akash\AppData\Local\zulip\app-0.5.4\resources\app.asar.unpacked\node_modules\spawn-rx\vendor\Jobber.exe
2017-01-25 00:16:28> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\Akash\AppData\Local\zulip\app-0.5.4\Zulip.exe]
2017-01-25 00:16:34> ApplyReleasesImpl: Starting fixPinnedExecutables
2017-01-25 00:16:34> ApplyReleasesImpl: Examining Pin: Adobe Photoshop CS5.lnk
2017-01-25 00:16:35> ApplyReleasesImpl: Examining Pin: Mozilla Firefox.lnk
2017-01-25 00:16:35> ApplyReleasesImpl: Examining Pin: Terminal.lnk
2017-01-25 00:16:35> ApplyReleasesImpl: Examining Pin: Visual Studio Code.lnk
2017-01-25 00:16:35> ApplyReleasesImpl: Examining Pin: VLC media player.lnk
2017-01-25 00:16:35> ApplyReleasesImpl: Examining Pin: Windows Explorer.lnk
2017-01-25 00:16:35> ApplyReleasesImpl: Fixing up tray icons
2017-01-25 00:16:35> ApplyReleasesImpl: cleanDeadVersions: for version 0.5.4
2017-01-25 00:16:35> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-0.5.4
2017-01-25 00:41:08> Program: Starting Squirrel Updater: --install .
2017-01-25 00:41:08> Program: Starting install, writing to C:\Users\Akash\AppData\Local\SquirrelTemp
2017-01-25 00:41:08> Program: About to install to: C:\Users\Akash\AppData\Local\zulip
2017-01-25 00:41:08> Program: Install path C:\Users\Akash\AppData\Local\zulip already exists, burning it to the ground
2017-01-25 00:41:10> 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\Akash\AppData\Local\zulip\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()
2017-01-25 00:41:10> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Akash\AppData\Local\zulip\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()
2017-01-25 00:41:10> CheckForUpdateImpl: Reading RELEASES file from C:\Users\Akash\AppData\Local\SquirrelTemp
2017-01-25 00:41:10> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2017-01-25 00:41:10> ApplyReleasesImpl: Writing files to app directory: C:\Users\Akash\AppData\Local\zulip\app-0.5.5
2017-01-25 00:41:12> LogHost: Rigging execution stub for lib/net45/Zulip_ExecutionStub.exe to C:\Users\Akash\AppData\Local\zulip\Zulip.exe
2017-01-25 00:41:27> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\Akash\AppData\Local\zulip\app-0.5.5\Zulip.exe]
2017-01-25 00:41:32> ApplyReleasesImpl: Starting fixPinnedExecutables
2017-01-25 00:41:32> ApplyReleasesImpl: Examining Pin: Adobe Photoshop CS5.lnk
2017-01-25 00:41:32> ApplyReleasesImpl: Examining Pin: Mozilla Firefox.lnk
2017-01-25 00:41:32> ApplyReleasesImpl: Examining Pin: Terminal.lnk
2017-01-25 00:41:33> ApplyReleasesImpl: Examining Pin: Visual Studio Code.lnk
2017-01-25 00:41:33> ApplyReleasesImpl: Examining Pin: VLC media player.lnk
2017-01-25 00:41:33> ApplyReleasesImpl: Examining Pin: Windows Explorer.lnk
2017-01-25 00:41:33> ApplyReleasesImpl: Fixing up tray icons
2017-01-25 00:41:33> ApplyReleasesImpl: cleanDeadVersions: for version 0.5.5
2017-01-25 00:41:33> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-0.5.5
2017-01-25 00:51:32> Program: Starting Squirrel Updater: --install .
2017-01-25 00:51:32> Program: Starting install, writing to C:\Users\Akash\AppData\Local\SquirrelTemp
2017-01-25 00:51:32> Program: About to install to: C:\Users\Akash\AppData\Local\zulip
2017-01-25 00:51:32> Program: Install path C:\Users\Akash\AppData\Local\zulip already exists, burning it to the ground
2017-01-25 00:51:33> 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\Akash\AppData\Local\zulip\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()
2017-01-25 00:51:33> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Akash\AppData\Local\zulip\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()
2017-01-25 00:51:33> CheckForUpdateImpl: Reading RELEASES file from C:\Users\Akash\AppData\Local\SquirrelTemp
2017-01-25 00:51:33> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2017-01-25 00:51:33> ApplyReleasesImpl: Writing files to app directory: C:\Users\Akash\AppData\Local\zulip\app-0.5.5
2017-01-25 00:51:37> LogHost: Rigging execution stub for lib/net45/Zulip_ExecutionStub.exe to C:\Users\Akash\AppData\Local\zulip\Zulip.exe
2017-01-25 00:51:41> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\Akash\AppData\Local\zulip\app-0.5.5\Zulip.exe]
2017-01-25 00:51:45> ApplyReleasesImpl: Starting fixPinnedExecutables
2017-01-25 00:51:45> ApplyReleasesImpl: Examining Pin: Adobe Photoshop CS5.lnk
2017-01-25 00:51:45> ApplyReleasesImpl: Examining Pin: Mozilla Firefox.lnk
2017-01-25 00:51:45> ApplyReleasesImpl: Examining Pin: Terminal.lnk
2017-01-25 00:51:45> ApplyReleasesImpl: Examining Pin: Visual Studio Code.lnk
2017-01-25 00:51:45> ApplyReleasesImpl: Examining Pin: VLC media player.lnk
2017-01-25 00:51:45> ApplyReleasesImpl: Examining Pin: Windows Explorer.lnk
2017-01-25 00:51:45> ApplyReleasesImpl: Fixing up tray icons
2017-01-25 00:51:46> ApplyReleasesImpl: cleanDeadVersions: for version 0.5.5
2017-01-25 00:51:46> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-0.5.5
2017-01-25 00:52:01> InstallHelperImpl: Couldn't write uninstall icon, don't care: System.Net.WebException: The remote name could not be resolved: 'raw.githubusercontent.com'
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
   at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)
--- 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.InstallHelperImpl.<CreateUninstallerRegistryEntry>d__5.MoveNext()
2017-01-25 00:53:13> Program: Starting Squirrel Updater: --install .
2017-01-25 00:53:13> Program: Starting install, writing to C:\Users\Akash\AppData\Local\SquirrelTemp
2017-01-25 00:53:13> Program: About to install to: C:\Users\Akash\AppData\Local\zulip
2017-01-25 00:53:13> Program: Install path C:\Users\Akash\AppData\Local\zulip already exists, burning it to the ground
2017-01-25 00:53:14> 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\Akash\AppData\Local\zulip\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()
2017-01-25 00:53:14> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Akash\AppData\Local\zulip\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()
2017-01-25 00:53:14> CheckForUpdateImpl: Reading RELEASES file from C:\Users\Akash\AppData\Local\SquirrelTemp
2017-01-25 00:53:14> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2017-01-25 00:53:14> ApplyReleasesImpl: Writing files to app directory: C:\Users\Akash\AppData\Local\zulip\app-0.5.5
2017-01-25 00:53:16> LogHost: Rigging execution stub for lib/net45/Zulip_ExecutionStub.exe to C:\Users\Akash\AppData\Local\zulip\Zulip.exe
2017-01-25 00:53:20> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\Akash\AppData\Local\zulip\app-0.5.5\Zulip.exe]
2017-01-25 00:53:24> ApplyReleasesImpl: Starting fixPinnedExecutables
2017-01-25 00:53:24> ApplyReleasesImpl: Examining Pin: Adobe Photoshop CS5.lnk
2017-01-25 00:53:24> ApplyReleasesImpl: Examining Pin: Mozilla Firefox.lnk
2017-01-25 00:53:24> ApplyReleasesImpl: Examining Pin: Terminal.lnk
2017-01-25 00:53:24> ApplyReleasesImpl: Examining Pin: Visual Studio Code.lnk
2017-01-25 00:53:24> ApplyReleasesImpl: Examining Pin: VLC media player.lnk
2017-01-25 00:53:24> ApplyReleasesImpl: Examining Pin: Windows Explorer.lnk
2017-01-25 00:53:24> ApplyReleasesImpl: Fixing up tray icons
2017-01-25 00:53:24> ApplyReleasesImpl: cleanDeadVersions: for version 0.5.5
2017-01-25 00:53:24> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-0.5.5
2017-01-25 00:53:38> InstallHelperImpl: Couldn't write uninstall icon, don't care: System.Net.WebException: The remote name could not be resolved: 'raw.githubusercontent.com'
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
   at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)
--- 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.InstallHelperImpl.<CreateUninstallerRegistryEntry>d__5.MoveNext()
2017-01-25 02:42:11> Program: Starting Squirrel Updater: --install .
2017-01-25 02:42:15> Program: Starting install, writing to C:\Users\Akash\AppData\Local\SquirrelTemp
2017-01-25 02:42:15> Program: RELEASES doesn't exist, creating it at C:\Users\Akash\AppData\Local\SquirrelTemp\RELEASES
2017-01-25 02:42:27> Program: About to install to: C:\Users\Akash\AppData\Local\zulip
2017-01-25 02:42:27> Program: Install path C:\Users\Akash\AppData\Local\zulip already exists, burning it to the ground
2017-01-25 02:42:38> 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\Akash\AppData\Local\zulip\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()
2017-01-25 02:42:38> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Akash\AppData\Local\zulip\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()
2017-01-25 02:42:39> CheckForUpdateImpl: Reading RELEASES file from C:\Users\Akash\AppData\Local\SquirrelTemp
2017-01-25 02:42:39> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2017-01-25 02:42:40> Unhandled exception: System.AggregateException: One or more errors occurred. ---> System.IO.IOException: There is not enough space on the disk.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
   at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
   at Squirrel.UpdateManager.DownloadReleasesImpl.<>c__DisplayClass2_0.<DownloadReleases>b__3(ReleaseEntry x)
   at Squirrel.Utility.<>c__DisplayClass12_1`1.<ForEachAsync>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- 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.<>c__DisplayClass13_0`1.<<ForEachAsync>b__1>d.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.DownloadReleasesImpl.<DownloadReleases>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.<DownloadReleases>d__8.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.IO.IOException: There is not enough space on the disk.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
   at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
   at Squirrel.UpdateManager.DownloadReleasesImpl.<>c__DisplayClass2_0.<DownloadReleases>b__3(ReleaseEntry x)
   at Squirrel.Utility.<>c__DisplayClass12_1`1.<ForEachAsync>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- 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.<>c__DisplayClass13_0`1.<<ForEachAsync>b__1>d.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.DownloadReleasesImpl.<DownloadReleases>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.<DownloadReleases>d__8.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()<---

2017-01-25 23:26:06> Program: Starting Squirrel Updater: --install .
2017-01-25 23:26:06> Program: Starting install, writing to C:\Users\Akash\AppData\Local\SquirrelTemp
2017-01-25 23:26:08> Program: About to install to: C:\Users\Akash\AppData\Local\zulip
2017-01-25 23:26:08> Program: Install path C:\Users\Akash\AppData\Local\zulip already exists, burning it to the ground
2017-01-25 23:26:13> 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\Akash\AppData\Local\zulip\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()
2017-01-25 23:26:14> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Akash\AppData\Local\zulip\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()
2017-01-25 23:26:14> CheckForUpdateImpl: Reading RELEASES file from C:\Users\Akash\AppData\Local\SquirrelTemp
2017-01-25 23:26:16> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2017-01-25 23:26:18> ApplyReleasesImpl: Writing files to app directory: C:\Users\Akash\AppData\Local\zulip\app-0.5.5
2017-01-25 23:26:23> LogHost: Rigging execution stub for lib/net45/Zulip_ExecutionStub.exe to C:\Users\Akash\AppData\Local\zulip\Zulip.exe
2017-01-25 23:26:23> LogHost: Rigging execution stub for lib/net45/resources/app.asar.unpacked/node_modules/spawn-rx/vendor/jobber/Jobber_ExecutionStub.exe to C:\Users\Akash\AppData\Local\zulip\app-0.5.5\resources\app.asar.unpacked\node_modules\spawn-rx\vendor\Jobber.exe
2017-01-25 23:26:35> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\Akash\AppData\Local\zulip\app-0.5.5\Zulip.exe]
2017-01-25 23:26:36> ApplyReleasesImpl: Couldn't run Squirrel hook, continuing: C:\Users\Akash\AppData\Local\zulip\app-0.5.5\Zulip.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()
2017-01-25 23:26:36> 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](IEnumerable`1 source, Action`1 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__35.MoveNext()
2017-01-25 23:26:36> 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](IEnumerable`1 source, Action`1 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__35.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](IEnumerable`1 source, Action`1 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__35.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()<---

2017-01-25 23:33:56> Program: Starting Squirrel Updater: --install .
2017-01-25 23:33:56> Program: Starting install, writing to C:\Users\Akash\AppData\Local\SquirrelTemp
2017-01-25 23:33:56> Program: About to install to: C:\Users\Akash\AppData\Local\zulip
2017-01-25 23:33:56> Program: Install path C:\Users\Akash\AppData\Local\zulip already exists, burning it to the ground
2017-01-25 23:33:57> 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\Akash\AppData\Local\zulip\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()
2017-01-25 23:33:57> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Akash\AppData\Local\zulip\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()
2017-01-25 23:33:57> CheckForUpdateImpl: Reading RELEASES file from C:\Users\Akash\AppData\Local\SquirrelTemp
2017-01-25 23:33:57> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2017-01-25 23:33:57> ApplyReleasesImpl: Writing files to app directory: C:\Users\Akash\AppData\Local\zulip\app-0.5.5
2017-01-25 23:33:59> LogHost: Rigging execution stub for lib/net45/Zulip_ExecutionStub.exe to C:\Users\Akash\AppData\Local\zulip\Zulip.exe
2017-01-25 23:34:00> LogHost: Rigging execution stub for lib/net45/resources/app.asar.unpacked/node_modules/spawn-rx/vendor/jobber/Jobber_ExecutionStub.exe to C:\Users\Akash\AppData\Local\zulip\app-0.5.5\resources\app.asar.unpacked\node_modules\spawn-rx\vendor\Jobber.exe
2017-01-25 23:34:06> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\Akash\AppData\Local\zulip\app-0.5.5\Zulip.exe]
2017-01-25 23:34:06> ApplyReleasesImpl: Couldn't run Squirrel hook, continuing: C:\Users\Akash\AppData\Local\zulip\app-0.5.5\Zulip.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()
2017-01-25 23:34:06> 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](IEnumerable`1 source, Action`1 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__35.MoveNext()
2017-01-25 23:34:06> 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](IEnumerable`1 source, Action`1 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__35.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](IEnumerable`1 source, Action`1 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__35.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()<---

Here is my package.json
I'm sure it's caused by squirrel.windows and I have gone through similar issues (Squirrel/Squirrel.Windows#710, Squirrel/Squirrel.Windows#698
) as well, still no luck.

@develar
Copy link
Member

develar commented Jan 25, 2017

@akashnimare
Copy link
Contributor Author

Is it possible to use NSIS?

@develar I believe there is no workaround for above error 😞

  • I think It's high time to switch to NSIS. Squirrel.Windows is too buggy and broken. I'm using it just because it's easier to implement auto-update feature (nuts also support squirrel.windows).
  • Could you please keep this issue open while I port squirrel to NSIS and implement auto-update feature.

@develar
Copy link
Member

develar commented Jan 29, 2017

Feel free to ask me if you will have any troubles with NSIS.

@develar develar closed this as completed Jan 29, 2017
@akashnimare
Copy link
Contributor Author

akashnimare commented Feb 2, 2017

@develar so here is an update on my autoupdater function -

'use strict';
const {app, dialog} = require('electron');
const {autoUpdater} = require('electron-updater').autoUpdater;

function appUpdater() {
	// Log whats happening
	const log = require('electron-log');
	log.transports.file.level = 'info';
	autoUpdater.logger = log;

	// Ask the user if update is available
	autoUpdater.on('update-downloaded', (event, info) => {
		let message = app.getName() + ' ' + info.releaseName + ' is now available. It will be installed the next time you restart the application.';
		if (info.releaseNotes) {
			const splitNotes = info.releaseNotes.split(/[^\r]\n/);
			message += '\n\nRelease notes:\n';
			splitNotes.forEach(notes => {
				message += notes + '\n\n';
			});
		}
		// Ask user to update the app
		dialog.showMessageBox({
			type: 'question',
			buttons: ['Install and Relaunch', 'Later'],
			defaultId: 0,
			message: 'A new version of ' + app.getName() + ' has been downloaded',
			detail: message
		}, response => {
			if (response === 0) {
				setTimeout(() => autoUpdater.quitAndInstall(), 1);
			}
		});
	});
	// init for updates
	autoUpdater.checkForUpdates();
}

exports = module.exports = {
	appUpdater
};

Q1. Does it look good, anything to add/remove?
Q2. Is it possible to get releaseNotes, releaseName, version etc in update-downloaded' event?

@develar
Copy link
Member

develar commented Feb 2, 2017

it possible to get releaseNotes, releaseName, version etc in update-downloaded' event?

#1174 (comment) Will published in 1 hour.

@develar
Copy link
Member

develar commented Feb 2, 2017

electron-updater 1.4.0 published.

Does it look good, anything to add/remove?

Please updated docs https://github.com/electron-userland/electron-builder/wiki/Auto-Update

update-downloaded signature is event, info.

So, you need to change to autoUpdater.on('update-downloaded', (event, info) => {

@akashnimare
Copy link
Contributor Author

@develar Please see the updated autoupdater function #1171 (comment) 😄
So I think it's good now. This is how my package.json looks like. Let me know If I need to make any changes in this.
Thanks for helping me out ❤️

@develar
Copy link
Member

develar commented Feb 2, 2017

@akashnimare I prefer to notify using system notifications. To avoid annoying message boxes. e.g. just https://github.com/develar/onshape-desktop-shell/blob/master/src/AppUpdater.ts#L22

But if you prefer this way — code looks good. Except that you should get releaseName/releaseNotes from info (currently, you will get undefined or error).

@akashnimare
Copy link
Contributor Author

@develar hmm, yeah I think you're right. Dialog message boxes look kind of annoying. I'll change it system notifications :)

@akashnimare
Copy link
Contributor Author

@develar updated the code. Also do I need to use info.releaseName? and info.releaseNotes? as mentioned here. I'm talking about ? here. Shouldn't we just use releaseName instead of releaseName?

@develar
Copy link
Member

develar commented Feb 2, 2017

? means that property is optional.

@akashnimare
Copy link
Contributor Author

aaaaahkk, I'm stupid. Thanks 😆

@akashnimare
Copy link
Contributor Author

Just a suggestion - we could change it to -

  • releaseDate The release date.
  • releaseName(Optional) The release name.
  • releaseNotes(Optional) The release notes.

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

2 participants