Exemplo n.º 1
0
        public void Chew()
        {
            // Calculalte the file hash.
            FileHash = FileHasher.ComputeHash(PackageFilePath);

            // TODO: Extract the infomation from the package.
        }
Exemplo n.º 2
0
        public void Chew()
        {
            // Calculalte the file hash.
            FileHash = FileHasher.ComputeHash(PackageFilePath);

            // TODO: Extract the infomation from the package.

            // Extract *cab files from .msu file.
            extractMsuPackage(PackageFilePath, DestinationDirectoryPath);

            // Extract the inner *.cab files.
            string innerCabFilePath = getInnerCabFilePath();
            string innerCabDestinationDirectoryPath = getInnerCabDestinationDirectoryPath(DestinationDirectoryPath);

            extractInnerCabFiles(innerCabFilePath, innerCabDestinationDirectoryPath);

            // TODO: file information collection.
        }