The progress delegate you pass as the progressHandler will receive a series of events during archive compression or decompression, which describe in extreme detail how far long the process is.
Did you see the event sequence examples in the documentation for the ArchiveProgressType enum? I've pasted it here: ------ UNPACKING EXAMPLE: The following sequence of events might be received when extracting a simple archive file with 2 files. MESSAGE TYPE DESCRPITION StartArchive Begin extracting archive StartFile Begin extracting first file PartialFile Extracting first file PartialFile Extracting first file FinishFile Finished extracting first file StartFile Begin extracting second file PartialFile Extracting second file FinishFile Finished extracting second file FinishArchive Finished extracting archive PACKING EXAMPLE: Packing 3 files into 2 archive chunks, where the second file is continued to the second archive chunk. MESSAGE TYPE DESCRPITION StartFile Begin compressing first file FinishFile Finished compressing first file StartFile Begin compressing second file PartialFile Compressing second file PartialFile Compressing second file FinishFile Finished compressing second file StartArchive Begin writing first archive PartialArchive Writing first archive FinishArchive Finished writing first archive StartFile Begin compressing third file PartialFile Compressing third file FinishFile Finished compressing third file StartArchive Begin writing second archive PartialArchive Writing second archive FinishArchive Finished writing second archive ------ Each of these events contains more detail about how far along the process is -- See the CurrentFileNumber, TotalFiles, CurrentFileBytesProcessed, CurrentFileTotalBytes, FileBytesProcessed, TotalFileBytes properties of the ArchiveProgressEventArgs class. The "XPack" DTF sample in the WiX sources has an example of a simple progress handler callback, though it ignores most of the progress message types. Let me know if you have any more questions. -Jason- -----Original Message----- From: Îșevin bui [mailto:freedompe...@live.com.au] Sent: Monday, April 26, 2010 3:39 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] C# Pack a Cab with Progress Hey, I've installed WiX 3.0 for Visual Studio 2008, and referenced the Microsoft.Deployment.Compression and Microsoft.Deployment.Compression.Cab libraries to pack my Cab file. Then, I use the following code to pack a cab file: CabInfo cab = new CabInfo(Destination); cab.Pack(Source, true, CompressionLevel.None, null); It works, though some large archives take a long time to process, and I'd like to display a progress bar showing the progress of the operation. I've tried what I could, and used Google as well, but haven't been able to find how to use the last parameter, EventHandler<ArchiveProgressEventArgs> progressHandler, but I never strike it right. Can I please have some help? Thanks in advance! PS. I'm building a standard application, not an installer. _________________________________________________________________ Browse profiles for FREE! Meet local singles online. http://clk.atdmt.com/NMN/go/150855801/direct/01/ ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users