Just as an example I decided to try this out with a large installer of ours (900 MB uncompressed, 400 MB MSI with embedded CAB).
With a single Media Element (CompressionLevel="high") it took 23 minutes to build (approximately). As I've a quad core CPU (Intel Core2 Q6600 running at stock 2.4 GHz per core, unfortunately I'm not allowed to overclock my office machines) in my build machine I added 3 more Media Elements as per the original & simply incremented the Id's & appended the number to the Cabinet attribute. The installer in question is conveniently split into 4 main areas. I modified the DiskId attributes on the Components within 3 of those areas so they changed from "1" to either "2", "3" or "4". This was roughly a couple of minutes work using the find & replace tool in Visual Studio (simply changing DiskId="1" to DiskId="[2-4]" in 3 Fragments, easy when you have 1 Fragment per file). I then rebuilt the MSI & the build time is now 12 minutes (approximately) so a couple of quick changes has almost halved the build time. Looking at the CPU history in Process Explorer it doesn't run 4 threads for the entire build time, it drops to 2 threads about 40% through. The files for the cabs are split into 350 MB, 290 MB, 180 MB & 90 MB uncompressed so a more even split would likely further reduce the time taken. Bear in mind that different compression levels & greater/fewer CPUs will give different results. I used the Visual Studio 2005 IDE to build my .wixproj in all tests. If only I could get the same sort of improvements out of msimsp.exe too (can't even use MSI v5.0 msimsp.exe with this installer as it crashes while v4.5, v4.0 & v3.1 work quite happily). P.S. I would've posted this as a comment on Bob A's blog but comments are closed on the article linked below. Palbinder Sandher Software Deployment & IT Administrator T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: Bob Arnson [mailto:b...@joyofsetup.com] Sent: 17 April 2010 15:21 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Speeding up Light command On 4/17/2010 5:53 AM, S.P wrote: > I want to create an install package with WiX,but "light" command is very very slow. It takes about 5 hours to run and create the install package. My install package will copy 45478 files and 2190 folder on system.So it includes a large number of files to copy.Could you please help me if there is anyway to speed this up, without increasing the size of the resulting file? > http://www.joyofsetup.com/2008/03/29/wix-performance-tip-use-multiple-ca binets/ -- sig://boB http://joyofsetup.com/ ------------------------------------------------------------------------ ------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ 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