c# - Get checksum of files contained in a MSI package -


is possible programmaticaly (c#) obtain hashsum of files contained in msi package using microsoft.deployment.windowsinstaller or microsoft.deployment.windowsinstaller.package dlls?

i getting files using method: how can resolve msi paths in c#?

and not extract files onto fs, hashsum of files using c# code.

is possible?

windows installer contains msifilehash table. gets populated @ build time 128-bit hashes of files in file table. installpackage files property brings dictionary of of installpathmap objects. keys of collection have file key file table , can used query msifilehash hash.

if need calculate hash of installed file comparison against stored hash, installer class found in microsoft.deployment.windowsinstaller has getfilehash method class underlying msigetfilehash function.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -