Esempio n. 1
0
        /// <summary>
        /// Creates a cabinet.
        /// </summary>
        /// <param name="cabName">Name of cabinet to create.</param>
        /// <param name="cabDir">Directory to create cabinet in.</param>
        /// <param name="maxSize">Maximum size of cabinet.</param>
        /// <param name="maxThresh">Maximum threshold for each cabinet.</param>
        /// <param name="compressionLevel">Level of compression to apply.</param>
        public WixCreateCab(string cabName, string cabDir, int maxSize, int maxThresh, CompressionLevel compressionLevel)
        {
            int error = CabInterop.CreateCabBegin(cabName, cabDir, (uint)maxSize, (uint)maxThresh, (uint)compressionLevel, out this.handle);

            if (0 != error)
            {
                throw new WixCabCreationException(error);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Creates a cabinet.
 /// </summary>
 /// <param name="cabName">Name of cabinet to create.</param>
 /// <param name="cabDir">Directory to create cabinet in.</param>
 /// <param name="maxSize">Maximum size of cabinet.</param>
 /// <param name="maxThresh">Maximum threshold for each cabinet.</param>
 /// <param name="compressionLevel">Level of compression to apply.</param>
 public WixCreateCab(string cabName, string cabDir, int maxSize, int maxThresh, CompressionLevel compressionLevel)
 {
     CabInterop.CreateCabBegin(cabName, cabDir, (uint)maxSize, (uint)maxThresh, (uint)compressionLevel, out this.handle);
 }