The Windows documentation states that the MsiVerifyPackage function verifies that a file is an installation package. How much is verified here? If a byte in a content file is corrupted/incorrect, will this be caught? Or is it just a check that the MSI data is readable?
The MSDN page for the function is here: http://msdn.microsoft.com/en-us/library/windows/desktop/aa370508(v=vs.85).aspx
ERROR_SUCCESSso it most probably check just something in the header of a file. - TLama