MsiFileHash 數據表
MsiFileHash 數據表是用來儲存 Windows Installer 套件所提供來源檔案的 128 位哈希。 哈希會分割成四個 32 位值,並儲存在數據表的個別數據行中。
Windows Installer 可以使用檔案哈希作為偵測和消除不必要的檔案複製的方法。 儲存在 MsiFileHash 數據表中的檔案哈希,可能會與 呼叫 msiGetFileHash取得之使用者電腦上現有檔案的哈希進行比較。 MsiFileHash 數據表只能與未版本檔案搭配使用。
MsiFileHash 數據表具有下列數據行。
列 | 類型 | 鑰匙 | 空 |
---|---|---|---|
檔案_ | 識別碼 | Y | N |
選項 | 整數 | N | N |
HashPart1 | DoubleInteger | N | N |
HashPart2 | DoubleInteger | N | N |
HashPart3 | DoubleInteger | N | N |
Hashpart4 | DoubleInteger | N | N |
列
-
File_
-
選項
-
此數據行必須是 0,並保留供日後使用。
-
HashPart1
-
前32個哈希位。 您必須呼叫 MsiGetFileHash 或 FileHash 方法來取得此欄位中輸入的檔案哈希,。 請勿使用其他方法。
-
HashPart2
-
第二個 32 位的哈希。 您必須呼叫 MsiGetFileHash 或 FileHash 方法來取得此欄位中輸入的檔案哈希,。 請勿使用其他哈希方法。
-
HashPart3
-
第三個 32 位的哈希。 您必須呼叫 MsiGetFileHash 或 FileHash 方法來取得此欄位中輸入的檔案哈希,。 請勿使用其他方法。
-
HashPart4
-
第四個 32 位的哈希。 您必須呼叫 MsiGetFileHash 或 FileHash 方法來取得此欄位中輸入的檔案哈希,。 請勿使用其他方法。
驗證
相關主題