Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Sourcetree installation has failed

Jessica Chen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 16, 2023

sourcetree.log

ERROR [2023-07-17 09:24:03,493] [1] [SourceTree.App] [Log] - “System.Windows.Automation.Peers.AutomationPeer”的类型初始值设定项引发异常。
System.TypeInitializationException: “System.Windows.Automation.Peers.AutomationPeer”的类型初始值设定项引发异常。 ---> System.TypeLoadException: 程序集“PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”中的类型“MS.Internal.Automation.SelectionProviderWrapper”的方法“GetSelection”没有实现。
在 System.Windows.Automation.Peers.AutomationPeer.Initialize()
在 System.Windows.Automation.Peers.AutomationPeer..cctor()
--- 内部异常堆栈跟踪的结尾 ---
在 System.Windows.Automation.Peers.AutomationPeer.RaiseFocusChangedEventHelper(IInputElement newFocus)
在 System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
在 System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
在 System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
在 System.Windows.Input.KeyboardDevice.Focus(IInputElement element)
在 System.Windows.Interop.HwndKeyboardInputProvider.OnSetFocus(IntPtr hwnd)
在 System.Windows.Interop.HwndKeyboardInputProvider.FilterMessage(IntPtr hwnd, WindowMessage message, IntPtr wParam, IntPtr lParam, Boolean& handled)
在 System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

I used Window 11 PC. I try to install both the Enterprise and User versions failed.

1 answer

0 votes
Vipin Yadav
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 20, 2023

Hi @Jessica Chen ,  Please try to install as per following steps and this time try to install as an Administrator.

***IMPORTANT***: Please note that reinstalling Sourcetree will remove all preferences and settings you may have. So, please ensure you backup the referenced folders/files below before proceeding.

  • Backup ALL Sourcetree folders and files (if any) located in C:\Users\<UserName>\AppData\Local
  • Backup ALL Sourcetree folders and files (if any) located in C:\Users\<UserName>\AppData\Local\Atlassian
  • Backup ALL Sourcetree folders and files (if any) located in C:\Users\<UserName>\AppData\Roaming\Atlassian

After backing up those folders and files, you can then proceed to uninstall and then reinstall Sourectree.

  1. Uninstall Sourcetree using the Windows Uninstall program.
  2. Only delete the following folders/files after you have backed them up. Delete the folders/files below before proceeding to the next step:
    • Navigate to C:\Users\<UserName>\AppData\Local and delete all Sourcetree folders and files (if any)
    • Navigate to C:\Users\<UserName>\AppData\Local\Atlassian and delete all Sourcetree folders and files (if any)
    • Navigate to C:\Users\<UserName>\AppData\Roaming\Atlassian and delete all Sourcetree folders and files (if any)

Download Sourcetree for Windows and install it.

Jessica Chen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 27, 2023

@Vipin Yadav Thanks for the reply. I've followed the instructions above, but it doesn't work. 

There is an error message in the SetUp log, 

CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: 未能找到路径“C:\Users\Administrator\AppData\Local\SourceTree\packages\.betaId”的一部分。
packages.png
Then I did not find the .betald file in the correspingding folder. Looking forward to your reply.
Ravi Kiran
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 27, 2023

Hi @Jessica Chen , can you help us which version of Windows OS you are using?

Vipin Yadav
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 27, 2023

Hi @Jessica Chen Please share the complete log file with us. Also Share the details of your Windows and which culture is used. Also meanwhile please try to clean the temp folder i.e. %temp%. and prefetch clean and restart machine. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events