예제 #1
0
        public override void Extract()
        {
            Trace.Assert(string.IsNullOrWhiteSpace(SourcePackagePath));
            Trace.Assert(string.IsNullOrWhiteSpace(DestinationDirectoryPath));

            if (!Directory.Exists(DestinationDirectoryPath))
            {
                Directory.CreateDirectory(DestinationDirectoryPath);
            }

            //msiexec.exe /a windows8.1-kb3081403-x64.msi /qb TargetDir=\\localhost\D$\HotfixDB\qfe-2015-09\handextract\windows8.1-kb3081403-x64
            ExtractHelper.ExecuteExternalCommand(CommandFilePath, string.Format(@"/a ""{0}"" /qb TargetDir=""{1}""", SourcePackagePath, DestinationDirectoryPath));
        }
예제 #2
0
        public override void Extract()
        {
            Trace.Assert(!string.IsNullOrWhiteSpace(SourcePackagePath));
            Trace.Assert(!string.IsNullOrWhiteSpace(DestinationDirectoryPath));

            // Create destination directory if not exist.
            if (!Directory.Exists(DestinationDirectoryPath))
            {
                Directory.CreateDirectory(DestinationDirectoryPath);
            }

            // Extract files from .cab file.
            string commandParameter = string.Format(@"-f:* ""{0}"" ""{1}""", SourcePackagePath, DestinationDirectoryPath);

            ExtractHelper.ExecuteExternalCommand(CommandFilePath, commandParameter);
        }
예제 #3
0
        public override void Extract()
        {
            Trace.Assert(!string.IsNullOrWhiteSpace(SourcePackagePath));
            Trace.Assert(!string.IsNullOrWhiteSpace(DestinationDirectoryPath));

            // Create destination directory if not exist.
            if (!Directory.Exists(DestinationDirectoryPath))
            {
                Directory.CreateDirectory(DestinationDirectoryPath);
            }

            // Extract files from NDP*.exe file.
            string commandFilePath  = SourcePackagePath;
            string commandParameter = string.Format(@"/x:{0} /q", DestinationDirectoryPath);

            ExtractHelper.ExecuteExternalCommand(commandFilePath, commandParameter);

            //msix.exe NDP46-KB3057781.msp /out NDP46 - KB3057781 / ext
            //mkdir NDP46-KB3057781\NetFxSecurityUpdate
            //expand.exe "NDP46-KB3057781\NetFxSecurity Update.cab.cab" - F:*NDP46 - KB3057781\NetFxSecurityUpdate
        }
예제 #4
0
        public override void Extract()
        {
            Trace.Assert(!string.IsNullOrWhiteSpace(SourcePackagePath));
            Trace.Assert(!string.IsNullOrWhiteSpace(DestinationDirectoryPath));

            // Create destination directory if not exist.
            if (!Directory.Exists(DestinationDirectoryPath))
            {
                Directory.CreateDirectory(DestinationDirectoryPath);
            }

            // Extract *cab files from .msu file.
            string commandParameter = string.Format(@"-f:*.cab ""{0}"" ""{1}""", SourcePackagePath, DestinationDirectoryPath);

            ExtractHelper.ExecuteExternalCommand(CommandFilePath, commandParameter);

            // Retrieve inner cab file path.
            //string innerCabFilePath = getInnerCabFilePath();

            // Extract inner *.cab files.
            //extractInnerCabFiles(innerCabFilePath);
        }