There's another library, 
http://www.codeproject.com/KB/files/CABCompressExtract.aspx, that does a good 
job of creating CABs. It has callbacks with which you can build progress.

dB. @ dblock.org 
Moscow|Geneva|Seattle|New York



-----Original Message-----
From: Îșevin bui [mailto:freedompe...@live.com.au] 
Sent: Monday, April 26, 2010 6: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

Reply via email to