SourceTree Silent Installation - Windows

Still need help?

The Atlassian Community is here for you.

Ask the community




There's multiple occasions where you would like to push a pre-configured copy of Sourcetree to a computer lab or within an organization. Here we will take an example scenario and configuration to accomplish this. 



  • .NET 4.5+ is installed.
  • Version Control System(s) is installed before Sourcetree.

Please feel free to open a support case with us if you have further questions or face troubles with this guide.

Configuring SourceTree: 

For the purpose of this article we will assume the following:

  • .NET 4.5+ is installed
  • You only want git
  • git is installed before sourcetree
  • You are happy to pre-agree all your user's to the
    • EULA
    • Analytics

Then the following should give you a 'silent' install ZIP:

1. Take an existing installation, e.g. c:\program files (x86)\Atlassian\SourceTree
2. Edit the SourceTree.exe.config as follows
*NB.* SourceTree.exe.config contains the default settings, when a user edits them their edits are saved in the user.config file.

Pre-Agree to the EULA 

<setting name="AgreedToEULA" serializeAs="String">


Skip the Welcome wizard. 

<setting name="FirstLaunch" serializeAs="String">


Pre-Agree to Analytics 

<setting name="AnalyticsHasAgreed" serializeAs="String">
<setting name="AnalyticsDisplayOptIn" serializeAs="String">


Configure to use System installed Git 

<setting name="GitWhichOne" serializeAs="String">
<setting name="GitSystemPath" serializeAs="String">
<value>C:\Program Files (x86)\Git</value>

*NB.* You don't need to define the Git System Path if it is in the standard location as SourceTree will find it there.

Disable Hg support 

<setting name="HgWhichOne" serializeAs="String">
<setting name="EnableHgSupport" serializeAs="String">
<setting name="FirstLaunchSinceHgAdded" serializeAs="String">


Configure PuTTY 

<setting name="SSHClientType" serializeAs="String">

3. Zip the SourceTree folder

4. Unzip on the target machine

The %localappdata% folders, including the user.config will be created when SourceTree first runs.

Note: There are many more options and configurations you can use and edit in the SourceTree.exe.config.

Pushing SourceTree license:

There's a file called sourcetree.license in %USERPROFILE%\AppData\Local\Atlassian\SourceTree which gets created when you register SourceTree. You can either automatically distribute that to the right location, or you can put a copy of this file on a fileserver somewhere and let the users to to use the Import License option in the Registration page if they get prompted.



Last modified on Nov 2, 2017

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.