跳過SourceTree的注冊步驟,SourceTreeSetup-3.3.8版本


一、背景說明

  SourceTreeSetup-3.3.8是最新的版本,安裝了好多次,只配置accounts.json后,還是不能跳過注冊步驟; 所以找了一些資料,記錄一下安裝過程。

 

二、找到SourceTree的安裝路徑,新增文件

  1、找到本地文件夾里的SourceTree路徑:

    %LocalAppData%\Atlassian\SourceTree\

  2、在該路徑下,新建文件accounts.json

  3、往accounts.json寫入以下內容:

 [{
  "$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
}]

 

三、找到SourceTree的另一個文件夾,在文件中新增內容

  1、其路徑如下:

    %LocalAppData%\Atlassian\SourceTree.exe_Url_2qhsvotkhzbojgv35nzesc3mwcycmzps

    注:以上加粗路徑每個用戶可能不一樣,可先到%LocalAppData%\Atlassian,再選擇如下文件夾

  

  2、進入到指定文件夾后,在它的下級目錄中,找到user.config文件

  3、打開user.config文件,按照格式插入以下內容:

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

 

四、重新點擊SourceTreeSetup-3.3.8安裝包,進行安裝

 

 

至此,SourceTreeSetup-3.3.8就成功安裝,可以隨便使用啦。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM