MicrosoftEdge相关笔记

版本更新相关

PorEdgeUpd便携更新工具

  1. Releases · UndertakerBen/PorEdgeUpd
  2. PorEdgeUpd/Form1.cs at master · UndertakerBen/PorEdgeUpd · GitHub
    1. 先打开 https://www.microsoft.com/en-us/edge/business/download 网页
    2. 提取最新的版本号
    3. 使用以下API进行下载地址查询
      "https://msedge.api.cdp.microsoft.com/api/v1.1/internal/contents/Browser/namespaces/Default/names/msedge-" + ring[a] + "-win-" + architektur[c] + "/versions/" + buildversion[a] + "/files?action=GenerateDownloadInfo&foregroundPriority=true");

获取特定版本的EXE下载地址

  1. 从MS官网下载可解压缩的Edge的powershell脚本-远景论坛-微软极客社区 得知
  2. 或者从 Microsoft Edge Download and configure Microsoft Edge for business
  3. 拿到要下载的最新版本
  4. 例如Windows 7 只支持109, 可以拿到截止2023年3月20日最新的版本为109.0.1518.78
  5. 将以下链接里的版本号替换为最新版本号
  6. 使用各种开发调试工具发起以下请求(其不支持直接GET请求)
POST https://msedge.api.cdp.microsoft.com/api/v1.1/internal/contents/Browser/namespaces/Default/names/msedge-stable-win-x64/versions/109.0.1518.78/files?action=GenerateDownloadInfo&foregroundPriority=true
  1. 即可得到一个JSON如下, 必须找到FileId文件名完全一致的"MicrosoftEdge_X64_109.0.1518.78.exe"或者尺寸最大的(其它的下载地址都是增量升级补丁包,下载来没有用)

  {
    "FileId": "MicrosoftEdge_X64_109.0.1518.78.exe",
    "Url": "http://msedge.f.tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/1d4cb13b-b2dd-4fc4-948d-5b9f142487f4?P1=1679911530&P2=404&P3=2&P4=FHFMQCPsvTYXuZNVkuQOuGipGO%2ftxhlFu%2b1bGSoGdw2ZAqQu%2bfNxuvs%2bERYiPoaLYUfyIWXkNSjRk4JME9QF8g%3d%3d",
    "SizeInBytes": 140790200,
    "Hashes": {
      "Sha1": "Eal7UbMenvFWrnmjiyMfiQcvFkE=",
      "Sha256": "eVO/iXqC6xqel6LeovLMj5gV2BKFrWDtlGNT1d4kmnk="
    },
    "DeliveryOptimization": {
      "CatalogId": "eVO_iXqC6xqel6LeovLMj5gV2BKFrWDtlGNT1d4kmnk=",
      "Properties": {
        "IntegrityCheckInfo": {
          "PiecesHashFileUrl": "http://msedge.f.dl.delivery.mp.microsoft.com/filestreamingservice/files/1d4cb13b-b2dd-4fc4-948d-5b9f142487f4/pieceshash",
          "HashOfHashes": "HLTQWu4PLNs1UzTT8qPBvd9/eaivPI4+J3tDRCu06GU="
        }
      }
    }
  }
  1. 下载后改一下文件名即可正常使用.

获取所有渠道对应的最新版本(可惜是msi安装包格式)

  1. Microsoft Edge Download and configure Microsoft Edge for business
  2. 从MS官网下载可解压缩的Edge的powershell脚本-远景论坛-微软极客社区 得知
    直接访问https://edgeupdates.microsoft.com/api/products网址即可得到所有最新的浏览器版本地址
[
  {
    "Product": "Stable",
    "Releases": [
      {
        "Platform": "Windows",
        "Architecture": "x64",
        "ProductVersion": "111.0.1661.44",
        "Artifacts": [
          {
            "ArtifactName": "msi",
            "Location": "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/0ac7e1bd-ebbe-4895-8694-1952a345a987/MicrosoftEdgeEnterpriseX64.msi",
            "Hash": "B8C25D97D51C057A027113969CAFC6F52833B38AB26C4B742CB657C6F7AFF058",
            "HashAlgorithm": "SHA256",
            "SizeInBytes": 147034112
          }
        ],
        "PublishedTime": "2023-03-18T22:35:00",
        "ExpectedExpiryDate": "2024-03-16T18:55:00"
      }
    ]
  },
  {
    "Product": "Beta",
    "Releases": []
  },
  {
    "Product": "Dev",
    "Releases": []
  },
  {
    "Product": "Canary",
    "Releases": []
  }
]
posted @ 2023-03-20 18:54  Asion Tang  阅读(242)  评论(0编辑  收藏  举报