[wix-users] How to set DefaultCompressionLevel in the wixproj

Bob Arnson bob at firegiant.com
Wed Feb 3 09:52:31 PST 2016


Works for me with WiX v3.10.2. Check a verbose MSBuild log to see if the property's getting set and/or if -dcl is passed on the Light.exe command line.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of David Bernstein
Sent: Wednesday, 3 February, 2016 11:24
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] How to set DefaultCompressionLevel in the wixproj

Hi,

How can I set the DefaultCompressionLevel in the wixproj so it works also for VS and also for msbuild?

Running Light.exe with an explicit "-dcl:level" switch works well.
So does setting the environment variable "WIX_COMPRESSION_LEVEL=level" and using VS or msbuild.
However, adding the following to wixproj
  <PropertyGroup>
    <DefaultCompressionLevel>level</DefaultCompressionLevel>
  </PropertyGroup>
doesn't seem to work, despite of what I understood from https://www.joyofsetup.com/2008/01/28/new-wix-feature-defaultcompressionlevel/

(I tested with level=none)

Thanks,
David

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list