Unable to update or reinstall sourcetree
Asked by trieck02:

Hi,

today I noticed that SourceTree doesn't start. I have seen some suggestions here how to handle that but none of them was working for me.

Now I tried to reinstall SourceTree (deinstall/reboot/newversion). That fails now with the following log ...

```
2017-06-19 16:48:33> Program: Starting Squirrel Updater: --install . --rerunningWithoutUAC2017-06-19 16:48:33> Program: Starting install, writing to C:\Users\trieck\AppData\Local\SquirrelTemp2017-06-19 16:48:33> Program: About to install to: C:\Users\trieck\AppData\Local\SourceTree2017-06-19 16:48:33> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Ein Teil des Pfades "C:\Users\trieck\AppData\Local\SourceTree\packages\.betaId" konnte nicht gefunden werden.bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)bei 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)bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)bei System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)bei System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)bei System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)bei System.IO.File.WriteAllText(String path, String contents, Encoding encoding)bei Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId()2017-06-19 16:48:33> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Ein Teil des Pfades "C:\Users\trieck\AppData\Local\SourceTree\packages\RELEASES" konnte nicht gefunden werden.bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)bei 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)bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)bei Squirrel.Utility.LoadLocalReleases(String localReleaseFile)bei Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__2.MoveNext()2017-06-19 16:48:33> CheckForUpdateImpl: Reading RELEASES file from C:\Users\trieck\AppData\Local\SquirrelTemp2017-06-19 16:48:34> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch2017-06-19 16:48:34> ApplyReleasesImpl: Writing files to app directory: C:\Users\trieck\AppData\Local\SourceTree\app-2.1.2.52017-06-19 16:48:37> ApplyReleasesImpl: Squirrel Enabled Apps: []2017-06-19 16:48:37> ApplyReleasesImpl: No apps are marked as Squirrel-aware! Going to run them all2017-06-19 16:48:37> ApplyReleasesImpl: About to create shortcuts for SourceTree.exe, rootAppDir C:\Users\trieck\AppData\Local\SourceTree2017-06-19 16:48:37> ApplyReleasesImpl: Creating shortcut for SourceTree.exe => C:\Users\trieck\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Atlassian\SourceTree.lnk2017-06-19 16:48:37> ApplyReleasesImpl: About to save shortcut: C:\Users\trieck\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Atlassian\SourceTree.lnk (target C:\Users\trieck\AppData\Local\SourceTree\Update.exe, workingDir C:\Users\trieck\AppData\Local\SourceTree\app-2.1.2.5, args --processStart "SourceTree.exe")2017-06-19 16:48:37> ApplyReleasesImpl: Creating shortcut for SourceTree.exe => C:\Users\trieck\Desktop\SourceTree.lnk2017-06-19 16:48:37> ApplyReleasesImpl: About to save shortcut: C:\Users\trieck\Desktop\SourceTree.lnk (target C:\Users\trieck\AppData\Local\SourceTree\Update.exe, workingDir C:\Users\trieck\AppData\Local\SourceTree\app-2.1.2.5, args --processStart "SourceTree.exe")2017-06-19 16:48:37> ApplyReleasesImpl: Examining Pin: Ad-Aware Browser.lnk2017-06-19 16:48:372017-06-19 16:49:20> Program: Starting Squirrel Updater: --install .2017-06-19 16:49:20> Program: Starting install, writing to C:\Users\trieck\AppData\Local\SquirrelTemp2017-06-19 16:49:20> Program: About to install to: C:\Users\trieck\AppData\Local\SourceTree2017-06-19 16:49:20> Program: Install path C:\Users\trieck\AppData\Local\SourceTree already exists, burning it to the ground2017-06-19 16:49:21> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Ein Teil des Pfades "C:\Users\trieck\AppData\Local\SourceTree\packages\.betaId" konnte nicht gefunden werden.bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)bei 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)bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)bei System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)bei System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)bei System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)bei System.IO.File.WriteAllText(String path, String contents, Encoding encoding)bei Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId()2017-06-19 16:49:21> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Ein Teil des Pfades "C:\Users\trieck\AppData\Local\SourceTree\packages\RELEASES" konnte nicht gefunden werden.bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)bei 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)bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)bei Squirrel.Utility.LoadLocalReleases(String localReleaseFile)bei Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__2.MoveNext()2017-06-19 16:49:21> CheckForUpdateImpl: Reading RELEASES file from C:\Users\trieck\AppData\Local\SquirrelTemp2017-06-19 16:49:21> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch2017-06-19 16:49:21> ApplyReleasesImpl: Writing files to app directory: C:\Users\trieck\AppData\Local\SourceTree\app-2.1.2.52017-06-19 16:49:23> ApplyReleasesImpl: Squirrel Enabled Apps: []2017-06-19 16:49:23> ApplyReleasesImpl: No apps are marked as Squirrel-aware! Going to run them all2017-06-19 16:49:23> ApplyReleasesImpl: About to create shortcuts for SourceTree.exe, rootAppDir C:\Users\trieck\AppData\Local\SourceTree2017-06-19 16:49:23> ApplyReleasesImpl: Creating shortcut for SourceTree.exe => C:\Users\trieck\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Atlassian\SourceTree.lnk2017-06-19 16:49:24> ApplyReleasesImpl: About to save shortcut: C:\Users\trieck\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Atlassian\SourceTree.lnk (target C:\Users\trieck\AppData\Local\SourceTree\Update.exe, workingDir C:\Users\trieck\AppData\Local\SourceTree\app-2.1.2.5, args --processStart "SourceTree.exe")2017-06-19 16:49:24> ApplyReleasesImpl: Creating shortcut for SourceTree.exe => C:\Users\trieck\Desktop\SourceTree.lnk2017-06-19 16:49:24> ApplyReleasesImpl: About to save shortcut: C:\Users\trieck\Desktop\SourceTree.lnk (target C:\Users\trieck\AppData\Local\SourceTree\Update.exe, workingDir C:\Users\trieck\AppData\Local\SourceTree\app-2.1.2.5, args --processStart "SourceTree.ex
```

Does someone has an idea what needs to be done ?

Thanks a lot ...

Thomas


Answers:
author: Isaac
body: What worked for me was uninstall .Net framework 4.6.2, then install .Net framework 4.7.  

Btw I tried to put my log here, but I keep getting this message "Your reply was *not accepted* . Please check for *inappropriate language* or spam."


author: trieck02
body: Hi Ana,

last try was with SourceTree version 2.1.2.5 on Windows 8.1.

best regards

Thomas


author: Ana Retamal
body: Hi Thomas! That's a Squirrel installer error rather than a SourceTree error itself. Looking at the log it looks like it's been installed, can you check in %localappdata%\\SourceTree\\app-{version} ?

Can you also let us know which version of SourceTree and OS are you using?

Regards,

Ana