

Deployment Tools Foundation
GetFileHash Method (path, hash)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Installer ► GetFileHash(String, array<Int32>[]()[][])
Gets a 128-bit hash of the specified file.

C# | Visual Basic | Visual C++ |
public static void GetFileHash( string path, int[] hash )
Public Shared Sub GetFileHash ( path As String, hash As Integer() )
public: static void GetFileHash( String^ path, array<int>^ hash )

Win32 MSI API: MsiGetFileHash

Exception | Condition |
---|---|
FileNotFoundException | the file does not exist or
could not be read |
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.9.1006.0)