Skip SourceTree registration step, SourceTreeSetup-3.3.8 version

First, background note

  SourceTreeSetup-3.3.8 is the latest version, installed many times, the only configuration accounts.json, still can not skip the registration step; so find some information, the record about the installation process.

 

Second, find the installation path SourceTree, the new file

  1. Find a local folder path of SourceTree:

    %LocalAppData%\Atlassian\SourceTree\

  2, in this path, the new file accounts.json

  3, to accounts.json writes the following:

 [{
  "$id": "1",
  "$type": "SourceTree.Api.Host.Identity.Model.IdentityAccount, SourceTree.Api.Host.Identity",
  "Authenticate": true,
  "HostInstance": {
    "$id": "2",
    "$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountInstance, SourceTree.Host.AtlassianAccount",
    "Host": {
      "$id": "3",
      "$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountHost, SourceTree.Host.AtlassianAccount",
      "Id": "atlassian account"
    },
    "BaseUrl": "https://id.atlassian.com/"
  },
  "Credentials": {
    "$id": "4",
    "$type": "SourceTree.Model.BasicAuthCredentials, SourceTree.Api.Account",
    "Username": "",
    "Email": null
  },
  "IsDefault": false
}]

 

Third, find another SourceTree file folder, the new content in a file

  1, its path is as follows:

    %LocalAppData%\Atlassian\SourceTree.exe_Url_2qhsvotkhzbojgv35nzesc3mwcycmzps

    Note: Bold path may be different for each user, it can be first-% LocalAppData% \ Atlassian, and then select the following folder

  

  2, into the specified folder in its lower directory, locate the file user.config

  3, open user.config file, insert the following in accordance with the format:

<setting name="AgreedToEULA" serializeAs="String">
    <value>True</value>                
</setting>
<setting name="AgreedToEULAVersion" serializeAs="String">
    <value>20160201</value>
</setting>

 

Fourth, re-click SourceTreeSetup-3.3.8 installation package, the installation

 

 

So far, SourceTreeSetup-3.3.8 successfully installed, you can not use it.

 

Guess you like

Origin www.cnblogs.com/yuanyuan124/p/12564105.html