【转】Windows 安装 SourceTree3.3.8 跳过注册

转载自:windows 安装sourceTree3.3.8 install 时无反应,如何跳过注册安装


我的电脑是windows7, sourceTree是3.3.8

1、访问官网下载最新版本的sourceTree ,官网连接:

https://www.sourcetreeapp.com/

2、先安装sourceTree, 他会提示缺少.NET Framework 4.7.1, 少什么就安装什么,安装成功后, 需要重启电脑,然后执行步骤3; 如果没有缺少,请忽略,直接执行步骤3

3、选择bitbucket的界面退出

4、打开我的电脑, 在地址栏, 输入

%LocalAppData%\Atlassian\SourceTree\

5、在此目录下新建名为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
  }
]

6、打开 %LocalAppData%\Atlassian,进入“SourceTree.exe_Url_iayhtc13zv3obzuz5vchezjs1az2q5ef”(注:该目录可能和版本相关,不同版本的路径可能不完全一样。)

进入 3.3.8.3848 目录, 打开user.config 加入这几句话

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

7、重新点击seourceTree.exe 安装, 弹框选择最后一项安装即可

发表评论