SourceTree installation fails silently

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Highest
    • 2.3.5.0
    • Affects Version/s: 2.3.1.0
    • Component/s: General
    • None
    • Environment:

      Windows 8.1

      SourceTree 2.3.1.0

    • Severity 1 - Critical

      Actions:

      1. Start SourceTreeSetup-2.3.1.0.exe

      Expected results:

      1. SourceTree installation processed, installation wizard is shown.

      Actual results:

      1. Only startup banner is shown. Installator finished silently.

      There are errors in c:\Users\galanin.a\AppData\Local\SquirrelTemp\SquirrelSetup.log:

      2017-10-30 11:46:05> Program: Starting Squirrel Updater: --install .
      2017-10-30 11:46:05> Program: Starting install, writing to C:\Users\galanin.a\AppData\Local\SquirrelTemp
      2017-10-30 11:46:05> Program: About to install to: C:\Users\galanin.a\AppData\Local\SourceTree
      2017-10-30 11:46:05> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Не удалось найти часть пути "C:\Users\galanin.a\AppData\Local\SourceTree\packages\.betaId".
      {{ в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)}}
      {{ в 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)}}
      {{ в System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)}}
      {{ в System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)}}
      {{ в System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)}}
      {{ в System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)}}
      {{ в System.IO.File.WriteAllText(String path, String contents, Encoding encoding)}}
      {{ в Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId()}}
      2017-10-30 11:46:05> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Не удалось найти часть пути "C:\Users\galanin.a\AppData\Local\SourceTree\packages\RELEASES".
      {{ в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)}}
      {{ в 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)}}
      {{ в System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)}}
      {{ в Squirrel.Utility.LoadLocalReleases(String localReleaseFile)}}
      {{ в Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__2.MoveNext()}}
      2017-10-30 11:46:05> CheckForUpdateImpl: Reading RELEASES file from C:\Users\galanin.a\AppData\Local\SquirrelTemp
      2017-10-30 11:46:05> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
      2017-10-30 11:46:05> ApplyReleasesImpl: Writing files to app directory: C:\Users\galanin.a\AppData\Local\SourceTree\app-2.3.1
      2017-10-30 11:46:08> LogHost: Rigging execution stub for SourceTree_ExecutionStub.exe to C:\Users\galanin.a\AppData\Local\SourceTree\SourceTree.exe
      2017-10-30 11:46:09> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\galanin.a\AppData\Local\SourceTree\app-2.3.1\SourceTree.exe]
      2017-10-30 11:46:11> ApplyReleasesImpl: Starting fixPinnedExecutables
      2017-10-30 11:46:11> ApplyReleasesImpl: Fixing up tray icons
      2017-10-30 11:46:11> ApplyReleasesImpl: Couldn't rewrite shim RegKey, most likely no apps are shimmed: System.NullReferenceException: Ссылка на объект не указывает на экземпляр объекта.
      {{ в Squirrel.UpdateManager.ApplyReleasesImpl.<unshimOurselves>b__13_0(RegistryView view)}}
      2017-10-30 11:46:11> ApplyReleasesImpl: Couldn't rewrite shim RegKey, most likely no apps are shimmed: System.NullReferenceException: Ссылка на объект не указывает на экземпляр объекта.
      {{ в Squirrel.UpdateManager.ApplyReleasesImpl.<unshimOurselves>b__13_0(RegistryView view)}}
      2017-10-30 11:46:11> ApplyReleasesImpl: cleanDeadVersions: for version 2.3.1
      2017-10-30 11:46:11> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-2.3.1

      There are errors in c:\Users\galanin.a\AppData\Local\Atlassian\SourceTree\sourcetree.log:

      ERROR [2017-10-30 11:46:13,619] [1] [SourceTree.App] [.ctor] - finish EnsureSquirrelExecutionStubIsCopied
      ERROR [2017-10-30 11:46:13,746] [1] [SourceTree.App] [OnStartup] - Failed to start
      System.NullReferenceException: Ссылка на объект не указывает на экземпляр объекта.
      {{ в SourceTree.Notifications.NotificationsManager.SetOwner(NotificationDialogWindow notificationWindow)}}
      {{ в SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](NotificationDialogWindow notificationWindow, Tuple`2 customAction, VistaTaskDialogIcon icon)}}
      {{ в SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](String title, String message, Tuple`2 customAction, String cancelLabel, String suppressionSetting, Action`1 suppressionChangedAction, Object contentControl, String contentCommandLabel, Action contentAction)}}
      {{ в SourceTree.Notifications.NotificationsManager.ShowNotificationDialogWithYesConfirmation(String title, String message, String details)}}
      {{ в SourceTree.Configuration.WpfSpellCheckerPreFlightCheck.Run()}}
      {{ в SourceTree.AppRoot.RunPreFlightChecks()}}
      {{ в SourceTree.AppRoot.OnStartup(StartupEventArgs e)}}
      {{ в SourceTree.App.OnStartup(StartupEventArgs e)}}

            Assignee:
            Unassigned
            Reporter:
            Alexander Galanin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: