ceshihao / windowsupdate

A Golang binding for Windows Update Agent API
https://pkg.go.dev/github.com/ceshihao/windowsupdate
Apache License 2.0
9 stars 7 forks source link

Fix bugs and update modules #2

Closed re3turn closed 2 years ago

re3turn commented 2 years ago
  1. The following property was always null in toIUpdate(), fixed 1b6766d2ea270ac39c29f3782b4dea4a490ca96a af74e0f57f00a5931cdd1f311d250e085e6b93b1

    • BundledUpdates
    • KBArticleIDs
    • Languages
    • MoreInfoUrls
    • SecurityBulletinIDs
    • SupersededUpdateIDs
    • UninstallationSteps
  2. The following property was always null in toIUpdateHistoryEntry(), fixed. 318af10175edb5db9cb406d24ccd4494981363fa

    • UninstallationSteps
  3. Update go-ole/go-ole v1.2.4 -> v1.2.6 https://github.com/ceshihao/windowsupdate/commit/b95ac5f0ceaf3c0e12d22afc55e396538710ed60

  4. Fix docs urls zh-cn -> en-us https://github.com/ceshihao/windowsupdate/commit/b0b1c8e4fa47143bde18a422abd493fb5b13730a

re3turn commented 2 years ago

before

      "BundledUpdates": null,
      "KBArticleIDs":null,
      "Languages":null,
      "MoreInfoUrls":null,
      "SecurityBulletinIDs":null,
      "SupersededUpdateIDs":null,
      "UninstallationSteps":null

after

      "BundledUpdates":[
         {
            "RevisionNumber":201,
            "UpdateID":"d0200c47-7080-490b-ad36-8eca4039c18e"
         },
         {
            "RevisionNumber":201,
            "UpdateID":"8cd15c50-985f-45e4-83ef-79fa3bd39967"
         },
         {
            "RevisionNumber":201,
            "UpdateID":"9617bafd-4ca5-4a8d-b0c6-59a266a7090e"
         },
         {
            "RevisionNumber":201,
            "UpdateID":"d0a0371c-3101-40be-86a2-3cd7eb033302"
         },
         {
            "RevisionNumber":201,
            "UpdateID":"b1d26fcf-862d-49ad-8467-86a5f3b48938"
         },
         {
            "RevisionNumber":201,
            "UpdateID":"c38cae3f-5b96-4b2a-8879-d4cdb597f147"
         }
      ],
      "KBArticleIDs":[
         "5015429"
      ],
      "Languages":[

      ],
     "MoreInfoUrls":[
         "https://go.microsoft.com/fwlink/?linkid=2181503\u0026amp;clcid=0x409"
      ],
      "SecurityBulletinIDs":[

      ],
      "SupersededUpdateIDs":[
         "06975244-419f-4c5e-8d06-e90a7c784393",
         "63380526-b284-4bee-a854-a9dd87214a81"
      ],
      "UninstallationSteps":[

      ]

before

   {
      "ClientApplicationID":"MoUpdateOrchestrator",
      "Date":"2022-06-16T15:43:10Z",
      "Description":"2022-06 .NET 6.0.6 Security Update for x64 Client (KB5015429)",
      "HResult":0,
      "Operation":1,
      "ResultCode":2,
      "ServerSelection":3,
      "ServiceID":"7971f918-a847-4430-9279-4a52d1efe18d",
      "SupportUrl":"https://go.microsoft.com/fwlink/?linkid=2181179\u0026amp;clcid=0x409",
      "Title":"2022-06 .NET 6.0.6 Security Update for x64 Client (KB5015429)",
      "UninstallationNotes":"This software update can be removed via Add or Remove Programs in Control Panel.",
      "UninstallationSteps":null,
      "UnmappedResultCode":0,
      "UpdateIdentity":{
         "RevisionNumber":201,
         "UpdateID":"7c9bc9cd-6fc7-4f01-a88c-xxxxxxxxxx"
      }
   },

after

{
    "ClientApplicationID":"MoUpdateOrchestrator",
    "Date":"2022-06-16T15:43:10Z",
    "Description":"2022-06 .NET 6.0.6 Security Update for x64 Client (KB5015429)",
    "HResult":0,
    "Operation":1,
    "ResultCode":2,
    "ServerSelection":3,
    "ServiceID":"7971f918-a847-4430-9279-4a52d1efe18d",
    "SupportUrl":"https://go.microsoft.com/fwlink/?linkid=2181179\u0026amp;clcid=0x409",
    "Title":"2022-06 .NET 6.0.6 Security Update for x64 Client (KB5015429)",
    "UninstallationNotes":"This software update can be removed via Add or Remove Programs in Control Panel.",
    "UninstallationSteps":[],
    "UnmappedResultCode":0,
    "UpdateIdentity":{
       "RevisionNumber":201,
       "UpdateID":"7c9bc9cd-6fc7-4f01-a88c-xxxxxxxxxx"
    }
 },
ceshihao commented 2 years ago

Good job! Welcome to contribute.