MsiFileHash 表
MsiFileHash 表用于存储 Windows Installer 包提供的源文件的 128 位哈希。 哈希拆分为四个 32 位值,并存储在表的单独列中。
Windows Installer 可以使用文件哈希作为检测和消除不必要的文件复制的方法。 将 存储在 MsiFileHash 表中的文件哈希与通过调用 MsiGetFileHash 获取的用户计算机上的现有文件的哈希进行比较。 MsiFileHash 表只能与未转换的文件一起使用。
MsiFileHash 表包含以下列。
列 | 类型 | 密钥 | Nullable |
---|---|---|---|
File_ | Identifier | Y | N |
选项 | 整数 | N | N |
HashPart1 | DoubleInteger | N | N |
HashPart2 | DoubleInteger | N | N |
HashPart3 | DoubleInteger | N | N |
Hashpart4 | DoubleInteger | N | N |
列
-
File_
-
文件表的外键。 72 字符字符串。
-
选项
-
此列必须为 0,并且保留以供将来使用。
-
HashPart1
-
前 32 位哈希。 必须通过调用 MsiGetFileHash 或 FileHash 方法获取在此字段中输入的文件哈希。 请勿使用其他方法。
-
HashPart2
-
第二个 32 位哈希。 必须通过调用 MsiGetFileHash 或 FileHash 方法获取在此字段中输入的文件哈希。 请勿使用其他哈希方法。
-
HashPart3
-
第三个 32 位哈希。 必须通过调用 MsiGetFileHash 或 FileHash 方法获取在此字段中输入的文件哈希。 请勿使用其他方法。
-
HashPart4
-
第四个 32 位哈希。 必须通过调用 MsiGetFileHash 或 FileHash 方法获取在此字段中输入的文件哈希。 请勿使用其他方法。
验证
相关主题