[wix-users] Reducing WiX light.exe build time when packaging third party installation packages
neil at x2systems.com
Tue Feb 2 09:30:55 PST 2016
For an exe light has to generate a payload, this can take a while so if the exe is fairly static I tend to get "heat" to generate a RemotePayload and then use that in my ExePackage element.
The heat syntax is:
heat payload ThirdPartPackage.exe -o ThirdPartPackage.wxs
You can then use this like this:
Hope that helps.
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of David Bernstein
Sent: 02 February 2016 17:09
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Reducing WiX light.exe build time when packaging third party installation packages
I have a couple of WiX bundles which I'd like to come bundled with some common third party packages or bundles.
See simplified rough outline below.
When I turn Compressed="yes" on for the ExePackage I get the desired functionality, however WiX seems to spend a lot of time in the build process due to this (roughly 5 seconds for a single 65MB ThirdPartPackage.exe). This is on a strong server using an SSD.
Naturally, this gets worse when more bundles are built and more third-party packages are added.
Examining the VS build logs I can see that most time is spent in Light.exe.
Turning on pedantic logs it appears like most time is spent during "Loading payload '... ThirdPartyPackage.exe' into container." (this is an impression - no times are logged).
Why is Light.exe taking so long to load a large payload into a container?
Are there any settings to play with which can speed this up?
For example (wild guesses), increasing the I/O buffer size or notifying Light that ThirdPartyPackage.exe is already compressed and no attempt should be made to compress it or split it?
<PackageGroupRef Id="ThirdPartyPackageGroup" />
<ExePackage Id="ThirdPartyPackage" Compressed="yes" SourceFile="$(sys.SOURCEFILEDIR)\Prerequisites\ThirdPartyPackage.exe" .../>
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users