Source Tree 1.9.6.2 failing to install
Asked by Sudarshanfws:

Hi,

I had uninstalled source tree [1.8.3](https://downloads.atlassian.com/software/sourcetree/windows/SourceTreeSetup_1.8.3.exe) and trying to install 1.9.6.2 but system says the most recent version of source tree is already installed on this computer, also tried to install latest version of source tree, but popup saying "JavaScript load error" shows on click button "use an existing account".

can you please help me resolve this issue?

Thanks


Answers:
author: Ana Retamal
body: Hi! It could be that the uninstall hasn't cleared all the registry settings. You can go to **Control Panel \> Programs \> Programs and Features**and make sure the older SourceTree versions are removed, then reboot your system to make sure the uninstall is complete.

If you want to give it another go, you can also try a clean install following the steps:

1. [Wipe Sourcetree preference](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html)s.
2. Uninstall Sourcetree (if it shows on the App\&Features list)
3. Backup then delete the directory below before proceeding with next step:
   * Navigate to C:\\Users\\\<UserName\>\\AppData\\Local and delete Sourcetree \& Sourcetree-Settings folder
   * Navigate to C:\\Users\\\<UserName\>\\AppData\\Local\\Atlassian and delete all Sourcetree Files/ folder.
4. [Download SourceTree](https://www.sourcetreeapp.com/) and install it.

Regarding the error you mentioned when clicking the button "use an existing account", I guess you'll need to fix JavaScript in your Internet Explorer as Sourcetree relies on it for the authentication. You can find the instructions at <https://support.microsoft.com/en-us/help/3135465/how-to-enable-javascript-in-windows>

If after this you're still having trouble, please send us a screenshot and let us have a look at [the logs](https://confluence.atlassian.com/sourcetreekb/sourcetree-logfile-location-675384748.html).

Cheers!

Ana

comments: author: Sudarshanfws
body: these all ways I have already tried and didn't get a solution and I am using chrome not IE.


author: Sudarshanfws
body: ![1.png](https://community.atlassian.com/t5/image/serverpage/image-id/11053i22F38F9DCD321702/image-size/large?v=v2&px=999 "1.png")


author: Sudarshanfws
body: the above-mentioned ways already had tried and didn't get a solution and the screenshot attached above.


author: Ana Retamal
body: Sourcetree uses IE for the authentication, regardless of which browser you normally use so we'll need you to confirm that the settings in Internet Explorer are correct so be can identify if this is causing the issue or not.

Make sure your IE is updated and follow the steps at [How to enable Javascript on Windows](https://support.microsoft.com/en-us/help/3135465/how-to-enable-javascript-in-windows) to fix JavaScript in your Internet Explorer as Sourcetree relies on it for the authentication.

If after this it still fails, let us have a look at [the logs](https://confluence.atlassian.com/sourcetreekb/sourcetree-logfile-location-675384748.html).

Best regards,

Ana


author: Sudarshanfws
body: thanks for the reply.

made settings changes in IE still not working. I am using IE8, is that causing an issue?


author: Sudarshanfws
body: Issue solved.

updated IE8 to IE11.

thanks


author: Ana Retamal
body: Glad to hear this issue is now fixed!


author: somethingblue
body: Hi,

Are you using a Mac or PC?

In many instances when I've uninstalled a program there were files remaining that did not get deleted and you'll need to find those files and remove them.

One specific file that often causes this issue is the preferences file. There is a knowledge base article titled [How to Wipe SourceTree Preferences](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html). Go through that knowledge base article and delete any folders/files related to SourceTree and retry the install.

Cheers,

Branden

comments: author: Sudarshanfws
body: Thanks for the reply!

I am using Windows 7 and i had tried by deleting all relevant folders, still the same issue.