0

是否可以获得尚未下载的 Windows 更新文件的 MD5 校验和?

这样做的原因是要以某种方式获取该校验和,从 Microsoft 提供的链接下载文件,然后检查该哈希以确保文件正常。

我在搜索:IUpdate 属性

但没有找到任何包含此信息的特定属性。

4

1 回答 1

1

Figured this out , the Checksum is already included in the URI!

For example:

http://download.windowsupdate.com/msdownload/update/software/crup/2012/10/windows8-rt-kb2768703-x64_5c165f45d01373eb3aa01b85f387089fd1742acd.cab

The bold part is the SHA1, In this case we can extract the checksum with the following:

string uri = "http://download.windowsupdate.com/msdownload/update/software/crup/2012/10/windows8-rt-kb2768703-x64_5c165f45d01373eb3aa01b85f387089fd1742acd.cab";

string[] SHAtmp = uri.Split('_');
string[] SHA1SUM = SHAtmp[1].Split('.');

Console.Writeline(SHA1SUM[0]); //Provides the hash

Then if we wish to manually verify we can use a tool provided by Microsoft: File Checksum Integrity Verifier

于 2013-04-29T08:29:43.227 回答