示例#1
0
        /// <summary>
        /// Will unzip archive to specified destination. This uses the DotNetZip library under the hood. For more information go to http://dotnetzip.codeplex.com/
        /// </summary>
        /// <param name="install"></param>
        /// <param name="filePath">Path to zip file</param>
        /// <param name="destPath">Path to where archive content should be extracted</param>
        /// <returns></returns>
        public static IOfferRemoteInstallation UnZip(this IOfferRemoteInstallation install, string filePath, string destPath)
        {
            var zipOperation = new UnZipOperation(filePath, destPath);

            Configure.Operation(install, zipOperation);
            return(install);
        }
示例#2
0
        /// <summary>
        /// Will unzip archive to specified destination. This uses the DotNetZip library under the hood. For more information go to http://dotnetzip.codeplex.com/
        /// </summary>
        /// <param name="install"></param>
        /// <param name="filePath">Path to zip file</param>
        /// <param name="destPath">Path to where archive content should be extracted</param>
        /// <returns></returns>
        public static IOfferRemoteInstallation UnZip(this IOfferRemoteInstallation install, string filePath, string destPath)
        {
            var zipOperation = new UnZipOperation(filePath, destPath);

            OperationExecutor.Execute((RemoteBuilder)install, zipOperation);
            return(install);
        }