I had previously been running Source Tree for years. When the v2 installer came up, I installed it, and left v1.9 on my machine. It worked for a while, but now for no obvious reason, neither version will run.
I uninstalled both and tried a fresh install of both versions. Neither have worked. The v2 installer just errors on install and produces logs. v1.9 goes through the wizard, installs, but errors when I run it. I have tried deleting prefs files, repairing .net installations, using ccleaner and all other suggestions, but to no avail.
When I try to launch v2 (although it says it failed to install, there is a shortcut in my start menu that appears to try to laumch something), I get these errors in Event Viewer:
and:
Application: Update.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.Runtime.InteropServices.COMException at MS.Win32.Penimc.UnsafeNativeMethods.CoCreateInstance(System.Guid ByRef, System.Object, Int32, System.Guid ByRef) at MS.Win32.Penimc.UnsafeNativeMethods.CreatePimcManager() at MS.Win32.Penimc.UnsafeNativeMethods..cctor() Exception Info: System.TypeInitializationException at MS.Win32.Penimc.UnsafeNativeMethods.CreateResetEvent(IntPtr ByRef) at System.Windows.Input.PenThreadWorker..ctor() at System.Windows.Input.PenThreadPool.GetPenThreadForPenContextHelper(System.Windows.Input.PenContext) at System.Windows.Input.PenThreadPool.GetPenThreadForPenContext(System.Windows.Input.PenContext) at System.Windows.Input.StylusWisp.WispTabletDeviceCollection.UpdateTabletsImpl() at System.Windows.Input.StylusWisp.WispTabletDeviceCollection.UpdateTablets() at System.Windows.Input.StylusWisp.WispTabletDeviceCollection..ctor() at System.Windows.Input.StylusWisp.WispLogic.get_WispTabletDevices() at System.Windows.Input.StylusWisp.WispLogic.RegisterHwndForInput(System.Windows.Input.InputManager, System.Windows.PresentationSource) at System.Windows.Interop.HwndStylusInputProvider..ctor(System.Windows.Interop.HwndSource) at System.Windows.Interop.HwndSource.Initialize(System.Windows.Interop.HwndSourceParameters) at System.Windows.Window.CreateSourceWindow(Boolean) at System.Windows.Window.CreateSourceWindowDuringShow() at System.Windows.Window.SafeCreateWindowDuringShow() at System.Windows.Window.ShowHelper(System.Object) at System.Windows.Window.Show() at Squirrel.Update.AnimatedGifWindow+<>c__DisplayClass1_0.<ShowWindow>b__0() at System.Threading.ThreadHelper.ThreadStart_Context(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Threading.ThreadHelper.ThreadStart()
Squirrel.log says:
2017-06-30 20:12:51> Program: Starting Squirrel Updater: --install .
2017-06-30 20:12:51> Program: Starting install, writing to C:\Users\Pete\AppData\Local\SquirrelTemp
2017-06-30 20:12:51> Program: About to install to: C:\Users\Pete\AppData\Local\SourceTree
2017-06-30 20:12:51> 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\Pete\AppData\Local\SourceTree\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-06-30 20:12:51> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Pete\AppData\Local\SourceTree\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-06-30 20:12:51> CheckForUpdateImpl: Reading RELEASES file from C:\Users\Pete\AppData\Local\SquirrelTemp
2017-06-30 20:12:51> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2017-06-30 20:12:51> ApplyReleasesImpl: Writing files to app directory: C:\Users\Pete\AppData\Local\SourceTree\app-2.1.2.5
2017-06-30 20:12:52> ApplyReleasesImpl: Squirrel Enabled Apps: []
2017-06-30 20:12:52> ApplyReleasesImpl: No apps are marked as Squirrel-aware! Going to run them all
2017-06-30 20:12:52> ApplyReleasesImpl: About to create shortcuts for SourceTree.exe, rootAppDir C:\Users\Pete\AppData\Local\SourceTree
2017-06-30 20:12:52> ApplyReleasesImpl: Creating shortcut for SourceTree.exe => C:\Users\Pete\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Atlassian\SourceTree.lnk
2017-06-30 20:12:52> ApplyReleasesImpl: About to save shortcut: C:\Users\Pete\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Atlassian\SourceTree.lnk (target C:\Users\Pete\AppData\Local\SourceTree\Update.exe, workingDir C:\Users\Pete\AppData\Local\SourceTree\app-2.1.2.5, args --processStart "SourceTree.exe")
2017-06-30 20:12:53> ApplyReleasesImpl: Creating shortcut for SourceTree.exe => C:\Users\Pete\Desktop\SourceTree.lnk
2017-06-30 20:12:53> ApplyReleasesImpl: About to save shortcut: C:\Users\Pete\Desktop\SourceTree.lnk (target C:\Users\Pete\AppData\Local\SourceTree\Update.exe, workingDir C:\Users\Pete\AppData\Local\SourceTree\app-2.1.2.5, args --processStart "SourceTree.exe")
2017-06-30 20:12:53> ApplyReleasesImpl: Examining Pin: Adobe Fireworks CS6.lnk
2017-06-30 20:12:53> ApplyReleasesImpl: Examining Pin: Google Chrome.lnk
2017-06-30 20:12:53> ApplyReleasesImpl: Examining Pin: Windows Explorer.lnk
2017-06-30 20:12:53> ApplyReleasesImpl: Starting fixPinnedExecutables
2017-06-30 20:12:53> ApplyReleasesImpl: Examining Pin: Adobe Fireworks CS6.lnk
2017-06-30 20:12:53> ApplyReleasesImpl: Examining Pin: Google Chrome.lnk
2017-06-30 20:12:53> ApplyReleasesImpl: Examining Pin: Windows Explorer.lnk
2017-06-30 20:12:53> ApplyReleasesImpl: Fixing up tray icons
2017-06-30 20:12:53> ApplyReleasesImpl: cleanDeadVersions: for version 2.1.2.5
2017-06-30 20:12:53> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-2.1.2.5
Any ideas anyone? I've wasted hours on this! Thanks.