Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which hash-function is used by Windows Installer?

An MSI-database contains a table MsiFileHash. According to the documentation The MsiFileHash table is used to store a 128-bit hash of a source file provided by the Windows Installer package.

Does someone know what hash algorithm is used/should be used to generate these hashes?
MD5?

like image 934
leiflundgren Avatar asked Jun 28 '26 07:06

leiflundgren


1 Answers

It's a custom hash algorithm used only by Windows Installer.

Since Windows Installer uses it only for unversioned files, it's not reliable for file validation or integrity check. So you should use your own algorithm if you want to use file hashes in a custom way.

like image 199
rmrrm Avatar answered Jul 02 '26 05:07

rmrrm