Example #1
0
 private static bool ValidateInstaller(string installerFile, PackageMetadata data)
 {
     Console.WriteLine("Validating installer package " + installerFile);
     using (GameInstall install = new GameInstall(installerFile))
     {
         using (Stream stream = new FileStream(installerFile, FileMode.Open, FileAccess.Read, FileShare.Read))
         {
             data.MD5 = stream.ComputeMD5();
         }
         return(ValidateInstaller(install, data));
     }
 }